v2.0.0
Loading...
Searching...
No Matches
hpisettingsview.h
Go to the documentation of this file.
1//=============================================================================================================
23
24#ifndef HPISETTINGSVIEW_H
25#define HPISETTINGSVIEW_H
26
27//=============================================================================================================
28// INCLUDES
29//=============================================================================================================
30
31#include "../disp_global.h"
32#include "abstractview.h"
33#include <fiff/fiff_dig_point.h>
34
35//=============================================================================================================
36// QT INCLUDES
37//=============================================================================================================
38
39#include <QJsonDocument>
40
41//=============================================================================================================
42// EIGEN INCLUDES
43//=============================================================================================================
44
45#include <Eigen/Core>
46
47//=============================================================================================================
48// FORWARD DECLARATIONS
49//=============================================================================================================
50
51namespace Ui {
52 class HpiSettingsViewWidget;
53}
54
55namespace FIFFLIB {
56 class FiffDigPointSet;
57}
58
59//=============================================================================================================
60// DEFINE NAMESPACE DISPLIB
61//=============================================================================================================
62
63namespace DISPLIB
64{
65
66//=============================================================================================================
75{
76 Q_OBJECT
77
78public:
79 //=========================================================================================================
86 HpiSettingsView(const QString& sSettingsPath = "",
87 QWidget *parent = 0,
88 Qt::WindowFlags f = Qt::Widget);
89
91
92 //=========================================================================================================
99 void setErrorLabels(const QVector<double>& vError,
100 const double dMeanErrorDist);
101
102 //=========================================================================================================
109
110 void setGoFLabels(const Eigen::VectorXd & vGoF,
111 const double dMeanGof);
112
113 //=========================================================================================================
120 void setMovementResults(double dMovement,
121 double dRotation);
122
123 //=========================================================================================================
129 bool getSspStatusChanged();
130
131 //=========================================================================================================
138
139 //=========================================================================================================
146
147 //=========================================================================================================
154
155 //=========================================================================================================
162
163 //=========================================================================================================
170
171 //=========================================================================================================
178
179 //=========================================================================================================
185 void newDigitizerList(QList<FIFFLIB::FiffDigPoint> pointList);
186
187 //=========================================================================================================
193 void loadCoilPresets(const QString& sFilePath);
194
195 //=========================================================================================================
199 void saveSettings();
200
201 //=========================================================================================================
205 void loadSettings();
206
207 //=========================================================================================================
211 void clearView();
212
213protected:
214 //=========================================================================================================
220 void updateGuiMode(GuiMode mode);
221
222 //=========================================================================================================
229
230 //=========================================================================================================
234 void onLoadDigitizers();
235
236 //=========================================================================================================
243 void onFrequencyCellChanged(int row,
244 int col);
245
246 //=========================================================================================================
250 void onAddCoil();
251
252 //=========================================================================================================
256 void onRemoveCoil();
257
258 //=========================================================================================================
262 QList<FIFFLIB::FiffDigPoint> readDigitizersFromFile(const QString& fileName);
263
264 //=========================================================================================================
270 void setupCoilPresets(int iNumCoils);
271
272 //=========================================================================================================
278 void populatePresetGUI(const QJsonArray& presetData);
279
280 //=========================================================================================================
284 void populateCoilGUI();
285
286 //=========================================================================================================
292 void selectCoilPreset(int iCoilPresetIndex);
293
294 //=========================================================================================================
300 void addCoilFreqToGUI(int iCoilFreq);
301
302 //=========================================================================================================
306 void addCoilErrorToGUI();
307
308 //=========================================================================================================
312 void clearCoilGUI();
313
314 //=========================================================================================================
321
322 Ui::HpiSettingsViewWidget* m_pUi;
323
324 QVector<int> m_vCoilFreqs;
325
327
328 QJsonDocument m_CoilPresets;
329
330signals:
331 //=========================================================================================================
337 void coilFrequenciesChanged(const QVector<int>& vCoilFreqs);
338
339 //=========================================================================================================
346 void digitizersChanged(const QList<FIFFLIB::FiffDigPoint>& lDigitzers,
347 const QString& sFilePath);
348
349 //=========================================================================================================
354
355 //=========================================================================================================
360
361 //=========================================================================================================
367 void sspStatusChanged(bool bChecked);
368
369 //=========================================================================================================
375 void compStatusChanged(bool bChecked);
376
377 //=========================================================================================================
383 void contHpiStatusChanged(bool bChecked);
384
385 //=========================================================================================================
391 void fittingWindowSizeChanged(int iFitsPerSecond);
392
393 //=========================================================================================================
399 void allowedMeanErrorDistChanged(double dAllowedMeanErrorDist);
400
401 //=========================================================================================================
407 void allowedMovementChanged(double dAllowedMovement);
408
409 //=========================================================================================================
415 void allowedRotationChanged(double dAllowedRotation);
416};
417
418} //NAMESPACE
419
420#endif // HPISETTINGSVIEW_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
Single digitization point (FIFF_DIG_POINT) with kind (cardinal/HPI/EEG/extra), identifier and 3D coor...
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)
void allowedRotationChanged(double dAllowedRotation)
void updateProcessingMode(ProcessingMode mode)
void sspStatusChanged(bool bChecked)
void updateDigitizerInfoGUI(const FIFFLIB::FiffDigPointSet &digSet)
void fittingWindowSizeChanged(int iFitsPerSecond)
void setMovementResults(double dMovement, double dRotation)
void loadCoilPresets(const QString &sFilePath)
void coilFrequenciesChanged(const QVector< int > &vCoilFreqs)
void newDigitizerList(QList< FIFFLIB::FiffDigPoint > pointList)
void addCoilFreqToGUI(int iCoilFreq)
void updateGuiMode(GuiMode mode)
void populatePresetGUI(const QJsonArray &presetData)
void setGoFLabels(const Eigen::VectorXd &vGoF, const double dMeanGof)
void compStatusChanged(bool bChecked)
void setupCoilPresets(int iNumCoils)
void onFrequencyCellChanged(int row, int col)
void setErrorLabels(const QVector< double > &vError, const double dMeanErrorDist)
void addCoilErrorToGUI()
addCoilErrorToGUI
HpiSettingsView(const QString &sSettingsPath="", QWidget *parent=0, Qt::WindowFlags f=Qt::Widget)
void allowedMovementChanged(double dAllowedMovement)
void allowedMeanErrorDistChanged(double dAllowedMeanErrorDist)
void selectCoilPreset(int iCoilPresetIndex)
Ui::HpiSettingsViewWidget * m_pUi
QList< FIFFLIB::FiffDigPoint > readDigitizersFromFile(const QString &fileName)
void digitizersChanged(const QList< FIFFLIB::FiffDigPoint > &lDigitzers, const QString &sFilePath)
void contHpiStatusChanged(bool bChecked)
Collection of FiffDigPoint records as parsed from a FIFFB_ISOTRAK block.