v2.0.0
Loading...
Searching...
No Matches
projectorsview.h
Go to the documentation of this file.
1//=============================================================================================================
34
35#ifndef PROJECTORSVIEW_H
36#define PROJECTORSVIEW_H
37
38//=============================================================================================================
39// INCLUDES
40//=============================================================================================================
41
42#include "../disp_global.h"
43#include "abstractview.h"
44#include <fiff/fiff_proj.h>
45
46//=============================================================================================================
47// QT INCLUDES
48//=============================================================================================================
49
50#include <QMap>
51
52//=============================================================================================================
53// EIGEN INCLUDES
54//=============================================================================================================
55
56//=============================================================================================================
57// FORWARD DECLARATIONS
58//=============================================================================================================
59
60class QCheckBox;
61
62//=============================================================================================================
63// DEFINE NAMESPACE DISPLIB
64//=============================================================================================================
65
66namespace DISPLIB
67{
68
69//=============================================================================================================
70// DISPLIB FORWARD DECLARATIONS
71//=============================================================================================================
72
73//=============================================================================================================
80{
81 Q_OBJECT
82
83public:
84 typedef QSharedPointer<ProjectorsView> SPtr;
85 typedef QSharedPointer<const ProjectorsView> ConstSPtr;
86
87 //=========================================================================================================
93 ProjectorsView(const QString& sSettingsPath = "",
94 QWidget *parent = 0,
95 Qt::WindowFlags f = Qt::Widget);
96
97 //=========================================================================================================
102
103 //=========================================================================================================
109 QList<FIFFLIB::FiffProj> getProjectors() const;
110
111 //=========================================================================================================
117 void setProjectors(const QList<FIFFLIB::FiffProj>& projs);
118
119 //=========================================================================================================
123 void redrawGUI();
124
125 //=========================================================================================================
129 void saveSettings();
130
131 //=========================================================================================================
135 void loadSettings();
136
137 //=========================================================================================================
141 void clearView();
142
143protected:
144 //=========================================================================================================
150 void updateGuiMode(GuiMode mode);
151
152 //=========================================================================================================
159
160 //=========================================================================================================
164 void onEnableDisableAllProj(bool status);
165
166 //=========================================================================================================
171
172 QList<QCheckBox*> m_qListProjCheckBox;
174
175 QList<FIFFLIB::FiffProj> m_pProjs;
176
178
179 QMap<QString,bool> m_mapProjActive;
180
181signals:
182 //=========================================================================================================
186 void projSelectionChanged(const QList<FIFFLIB::FiffProj>& projs);
187};
188} // NAMESPACE
189
190#endif // PROJECTORSVIEW_H
Declaration of the AbstractView Class.
disp library export/import macros.
#define DISPSHARED_EXPORT
Definition disp_global.h:51
FiffProj class declaration.
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