v2.0.0
Loading...
Searching...
No Matches
compensatorview.h
Go to the documentation of this file.
1//=============================================================================================================
21
22#ifndef COMPENSATORVIEW_H
23#define COMPENSATORVIEW_H
24
25//=============================================================================================================
26// INCLUDES
27//=============================================================================================================
28
29#include "../disp_global.h"
30#include "abstractview.h"
31
32//=============================================================================================================
33// QT INCLUDES
34//=============================================================================================================
35
36#include <QMap>
37
38//=============================================================================================================
39// EIGEN INCLUDES
40//=============================================================================================================
41
42//=============================================================================================================
43// FORWARD DECLARATIONS
44//=============================================================================================================
45
46class QCheckBox;
47
48namespace FIFFLIB {
49 class FiffCtfComp;
50}
51
52//=============================================================================================================
53// DEFINE NAMESPACE DISPLIB
54//=============================================================================================================
55
56namespace DISPLIB
57{
58
59//=============================================================================================================
60// DISPLIB FORWARD DECLARATIONS
61//=============================================================================================================
62
63//=============================================================================================================
72{
73 Q_OBJECT
74
75public:
76 typedef QSharedPointer<CompensatorView> SPtr;
77 typedef QSharedPointer<const CompensatorView> ConstSPtr;
78
79 //=========================================================================================================
85 CompensatorView(const QString& sSettingsPath = "",
86 QWidget *parent = 0,
87 Qt::WindowFlags f = Qt::Widget);
88
89 //=========================================================================================================
94
95 //=========================================================================================================
101 QList<FIFFLIB::FiffCtfComp> getCompensators() const;
102
103 //=========================================================================================================
109 int getLastTo() const;
110
111 //=========================================================================================================
117 void setCompensators(const QList<FIFFLIB::FiffCtfComp>& comps);
118
119 //=========================================================================================================
123 void saveSettings();
124
125 //=========================================================================================================
129 void loadSettings();
130
131 //=========================================================================================================
137 void updateGuiMode(GuiMode mode);
138
139 //=========================================================================================================
146
147 //=========================================================================================================
151 void clearView();
152
153protected:
154 //=========================================================================================================
158 void redrawGUI();
159
160 //=========================================================================================================
165
166 QList<QCheckBox*> m_qListCompCheckBox;
167
168 QList<FIFFLIB::FiffCtfComp> m_pComps;
169
171
173
174 QMap<int,bool> m_mapCompActive;
175
176signals:
177 //=========================================================================================================
181 void compClicked(const QString& text);
182
183 //=========================================================================================================
188};
189} // NAMESPACE
190
191#endif // COMPENSATORVIEW_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
FIFF file I/O, in-memory data structures and high-level readers/writers.
2-D display widgets and visualisation helpers (charts, topography, colour maps).
AbstractView(QWidget *parent=0, Qt::WindowFlags f=Qt::Widget)
QSharedPointer< const CompensatorView > ConstSPtr
void updateProcessingMode(ProcessingMode mode)
CompensatorView(const QString &sSettingsPath="", QWidget *parent=0, Qt::WindowFlags f=Qt::Widget)
QList< FIFFLIB::FiffCtfComp > m_pComps
QList< FIFFLIB::FiffCtfComp > getCompensators() const
void updateGuiMode(GuiMode mode)
void compSelectionChanged(int to)
void compClicked(const QString &text)
void setCompensators(const QList< FIFFLIB::FiffCtfComp > &comps)
QList< QCheckBox * > m_qListCompCheckBox
QSharedPointer< CompensatorView > SPtr
QMap< int, bool > m_mapCompActive
One CTF software-gradient compensation matrix: grade kind, calibration flag and the gradiometer × ref...