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 //=========================================================================================================
85 ProjectorsView(const QString& sSettingsPath = "",
86 QWidget* parent = 0,
87 Qt::WindowFlags f = Qt::Widget);
88
89 //=========================================================================================================
94
95 //=========================================================================================================
101 QList<FIFFLIB::FiffProj> getProjectors() const;
102
103 //=========================================================================================================
109 void setProjectors(const QList<FIFFLIB::FiffProj>& projs);
110
111 //=========================================================================================================
115 void redrawGUI();
116
117 //=========================================================================================================
121 void saveSettings();
122
123 //=========================================================================================================
127 void loadSettings();
128
129 //=========================================================================================================
133 void clearView();
134
135protected:
136 //=========================================================================================================
142 void updateGuiMode(GuiMode mode);
143
144 //=========================================================================================================
151
152 //=========================================================================================================
158 void onEnableDisableAllProj(bool status);
159
160 //=========================================================================================================
165
166 QList<QCheckBox*> m_qListProjCheckBox;
168
169 QList<FIFFLIB::FiffProj> m_pProjs;
170
172
173 QMap<QString, bool> m_mapProjActive;
174
175signals:
176 //=========================================================================================================
180 void projSelectionChanged(const QList<FIFFLIB::FiffProj>& projs);
181};
182} // NAMESPACE
183
184#endif // PROJECTORSVIEW_H
SSP projection item: a named projection vector set with active/desired flags, parsed from FIFFB_PROJ_...
Export macros and build-info hooks for the DISPLIB shared library.
#define DISPSHARED_EXPORT
Definition disp_global.h:38
Common base widget for every dockable Quick-Control settings panel in DISPLIB.
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)
QMap< QString, bool > m_mapProjActive
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
void updateGuiMode(GuiMode mode)
QList< QCheckBox * > m_qListProjCheckBox
QList< FIFFLIB::FiffProj > getProjectors() const
QList< FIFFLIB::FiffProj > m_pProjs