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{
50class FiffCtfComp;
51}
52
53//=============================================================================================================
54// DEFINE NAMESPACE DISPLIB
55//=============================================================================================================
56
57namespace DISPLIB
58{
59
60//=============================================================================================================
61// DISPLIB FORWARD DECLARATIONS
62//=============================================================================================================
63
64//=============================================================================================================
73{
74 Q_OBJECT
75
76public:
77 typedef QSharedPointer<CompensatorView> SPtr;
78 typedef QSharedPointer<const CompensatorView> ConstSPtr;
79
80 //=========================================================================================================
88 CompensatorView(const QString& sSettingsPath = "",
89 QWidget* parent = 0,
90 Qt::WindowFlags f = Qt::Widget);
91
92 //=========================================================================================================
97
98 //=========================================================================================================
104 QList<FIFFLIB::FiffCtfComp> getCompensators() const;
105
106 //=========================================================================================================
112 int getLastTo() const;
113
114 //=========================================================================================================
120 void setCompensators(const QList<FIFFLIB::FiffCtfComp>& comps);
121
122 //=========================================================================================================
126 void saveSettings();
127
128 //=========================================================================================================
132 void loadSettings();
133
134 //=========================================================================================================
140 void updateGuiMode(GuiMode mode);
141
142 //=========================================================================================================
149
150 //=========================================================================================================
154 void clearView();
155
156protected:
157 //=========================================================================================================
161 void redrawGUI();
162
163 //=========================================================================================================
168
169 QList<QCheckBox*> m_qListCompCheckBox;
170
171 QList<FIFFLIB::FiffCtfComp> m_pComps;
172
174
176
177 QMap<int, bool> m_mapCompActive;
178
179signals:
180 //=========================================================================================================
184 void compClicked(const QString& text);
185
186 //=========================================================================================================
191};
192} // NAMESPACE
193
194#endif // COMPENSATORVIEW_H
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.
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)
QMap< int, bool > m_mapCompActive
void setCompensators(const QList< FIFFLIB::FiffCtfComp > &comps)
QList< QCheckBox * > m_qListCompCheckBox
QSharedPointer< CompensatorView > SPtr
One CTF software-gradient compensation matrix: grade kind, calibration flag and the gradiometer × ref...