v2.0.0
Loading...
Searching...
No Matches
projectorsview.h
Go to the documentation of this file.
1//=============================================================================================================
22
23#ifndef PROJECTORSVIEW_H
24#define PROJECTORSVIEW_H
25
26//=============================================================================================================
27// INCLUDES
28//=============================================================================================================
29
30#include "../disp_global.h"
31#include "abstractview.h"
32#include <fiff/fiff_proj.h>
33
34//=============================================================================================================
35// QT INCLUDES
36//=============================================================================================================
37
38#include <QMap>
39
40//=============================================================================================================
41// EIGEN INCLUDES
42//=============================================================================================================
43
44//=============================================================================================================
45// FORWARD DECLARATIONS
46//=============================================================================================================
47
48class QCheckBox;
49
50//=============================================================================================================
51// DEFINE NAMESPACE DISPLIB
52//=============================================================================================================
53
54namespace DISPLIB
55{
56
57//=============================================================================================================
58// DISPLIB FORWARD DECLARATIONS
59//=============================================================================================================
60
61//=============================================================================================================
70{
71 Q_OBJECT
72
73public:
74 typedef QSharedPointer<ProjectorsView> SPtr;
75 typedef QSharedPointer<const ProjectorsView> ConstSPtr;
76
77 //=========================================================================================================
83 ProjectorsView(const QString& sSettingsPath = "",
84 QWidget *parent = 0,
85 Qt::WindowFlags f = Qt::Widget);
86
87 //=========================================================================================================
92
93 //=========================================================================================================
99 QList<FIFFLIB::FiffProj> getProjectors() const;
100
101 //=========================================================================================================
107 void setProjectors(const QList<FIFFLIB::FiffProj>& projs);
108
109 //=========================================================================================================
113 void redrawGUI();
114
115 //=========================================================================================================
119 void saveSettings();
120
121 //=========================================================================================================
125 void loadSettings();
126
127 //=========================================================================================================
131 void clearView();
132
133protected:
134 //=========================================================================================================
140 void updateGuiMode(GuiMode mode);
141
142 //=========================================================================================================
149
150 //=========================================================================================================
154 void onEnableDisableAllProj(bool status);
155
156 //=========================================================================================================
161
162 QList<QCheckBox*> m_qListProjCheckBox;
164
165 QList<FIFFLIB::FiffProj> m_pProjs;
166
168
169 QMap<QString,bool> m_mapProjActive;
170
171signals:
172 //=========================================================================================================
176 void projSelectionChanged(const QList<FIFFLIB::FiffProj>& projs);
177};
178} // NAMESPACE
179
180#endif // PROJECTORSVIEW_H
Common base widget for every dockable Quick-Control settings panel in DISPLIB.
Export macros and build-info hooks for the DISPLIB shared library.
#define DISPSHARED_EXPORT
Definition disp_global.h:38
SSP projection item: a named projection vector set with active/desired flags, parsed from FIFFB_PROJ_...
2-D display widgets and visualisation helpers (charts, topography, colour maps).
AbstractView(QWidget *parent=0, Qt::WindowFlags f=Qt::Widget)
void setProjectors(const QList< FIFFLIB::FiffProj > &projs)
void updateProcessingMode(ProcessingMode mode)
QCheckBox * m_pEnableDisableProjectors
QSharedPointer< ProjectorsView > SPtr
void onEnableDisableAllProj(bool status)
ProjectorsView(const QString &sSettingsPath="", QWidget *parent=0, Qt::WindowFlags f=Qt::Widget)
void projSelectionChanged(const QList< FIFFLIB::FiffProj > &projs)
QSharedPointer< const ProjectorsView > ConstSPtr
QMap< QString, bool > m_mapProjActive
void updateGuiMode(GuiMode mode)
QList< QCheckBox * > m_qListProjCheckBox
QList< FIFFLIB::FiffProj > getProjectors() const
QList< FIFFLIB::FiffProj > m_pProjs