v2.0.0
Loading...
Searching...
No Matches
dipolefitview.h
Go to the documentation of this file.
1//=============================================================================================================
21
22#ifndef DIPOLEFITVIEW_H
23#define DIPOLEFITVIEW_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 <QWidget>
37#include <QPointer>
38
39#include <memory>
40
41//=============================================================================================================
42// EIGEN INCLUDES
43//=============================================================================================================
44
45//=============================================================================================================
46// FORWARD DECLARATIONS
47//=============================================================================================================
48
49namespace Ui
50{
51class DipoleFitViewWidget;
52}
53
54//=============================================================================================================
55// DEFINE NAMESPACE DISPLIB
56//=============================================================================================================
57
58namespace DISPLIB
59{
60
61//=============================================================================================================
71{
72 Q_OBJECT
73
74public:
75 DipoleFitView(QWidget* parent = 0,
76 Qt::WindowFlags f = Qt::Widget);
77
78 ~DipoleFitView() override;
79
80 //=========================================================================================================
84 void saveSettings() override;
85
86 //=========================================================================================================
90 void loadSettings() override;
91
92 //=========================================================================================================
98 void addBem(const QString& sFileName);
99
100 //=========================================================================================================
106 void addMri(const QString& sFileName);
107
108 //=========================================================================================================
114 void addNoise(const QString& sFileName);
115
116 //=========================================================================================================
122 void addMeas(const QString& sFileName);
123
124 //=========================================================================================================
131 void removeModel(const QString& sModelName, int iType);
132
133 //=========================================================================================================
137 void requestParams();
138
139 //=========================================================================================================
143 void clearView() override;
144
145protected:
146 //=========================================================================================================
152 void updateGuiMode(GuiMode mode) override;
153
154 //=========================================================================================================
160 void updateProcessingMode(ProcessingMode mode) override;
161
162private:
163 //=========================================================================================================
167 void initGui();
168
169 std::unique_ptr<Ui::DipoleFitViewWidget> m_pUi;
170
171signals:
172 //=========================================================================================================
176 void performDipoleFit(const QString& sFitName);
177
178 //=========================================================================================================
185 void modalityChanged(bool bEEG,
186 bool bMEG);
187
188 //=========================================================================================================
197 void timeChanged(int iMin,
198 int iMax,
199 int iStep,
200 int iInt);
201
202 //=========================================================================================================
209 void fittingChanged(int iMinDistance,
210 int iSize);
211
212 //=========================================================================================================
219 void baselineChanged(int iBMin,
220 int iBMax);
221
222 //=========================================================================================================
230 void noiseChanged(double dGrad,
231 double dMag,
232 double dEeg);
233
234 //=========================================================================================================
242 void regChanged(double dRegGrad,
243 double dRegMag,
244 double dRegEeg);
245
246 //=========================================================================================================
252 void setChanged(int iSet);
253
254 //=========================================================================================================
263 void sphereChanged(double dX,
264 double dY,
265 double dZ,
266 double dRadius);
267
268 //=========================================================================================================
274 void selectedBem(const QString& sName);
275
276 //=========================================================================================================
282 void selectedMri(const QString& sName);
283
284 //=========================================================================================================
290 void selectedNoise(const QString& sName);
291
292 //=========================================================================================================
298 void selectedMeas(const QString& sName);
299};
300} //namespace
301
302#endif // DIPOLEFITVIEW_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.
2-D display widgets and visualisation helpers (charts, topography, colour maps).
AbstractView(QWidget *parent=0, Qt::WindowFlags f=Qt::Widget)
void addNoise(const QString &sFileName)
void selectedMeas(const QString &sName)
void addMri(const QString &sFileName)
void noiseChanged(double dGrad, double dMag, double dEeg)
void sphereChanged(double dX, double dY, double dZ, double dRadius)
void updateProcessingMode(ProcessingMode mode) override
void addBem(const QString &sFileName)
void selectedNoise(const QString &sName)
void saveSettings() override
void regChanged(double dRegGrad, double dRegMag, double dRegEeg)
void performDipoleFit(const QString &sFitName)
void removeModel(const QString &sModelName, int iType)
void selectedMri(const QString &sName)
void addMeas(const QString &sFileName)
void timeChanged(int iMin, int iMax, int iStep, int iInt)
void selectedBem(const QString &sName)
void baselineChanged(int iBMin, int iBMax)
void modalityChanged(bool bEEG, bool bMEG)
void clearView() override
void setChanged(int iSet)
DipoleFitView(QWidget *parent=0, Qt::WindowFlags f=Qt::Widget)
void loadSettings() override
void updateGuiMode(GuiMode mode) override
void fittingChanged(int iMinDistance, int iSize)