v2.0.0
Loading...
Searching...
No Matches
hpisettingsview.h
Go to the documentation of this file.
1//=============================================================================================================
35
36#ifndef HPISETTINGSVIEW_H
37#define HPISETTINGSVIEW_H
38
39//=============================================================================================================
40// INCLUDES
41//=============================================================================================================
42
43#include "../disp_global.h"
44#include "abstractview.h"
45#include <fiff/fiff_dig_point.h>
46
47//=============================================================================================================
48// QT INCLUDES
49//=============================================================================================================
50
51#include <QJsonDocument>
52
53//=============================================================================================================
54// EIGEN INCLUDES
55//=============================================================================================================
56
57#include <Eigen/Core>
58
59//=============================================================================================================
60// FORWARD DECLARATIONS
61//=============================================================================================================
62
63namespace Ui {
64 class HpiSettingsViewWidget;
65}
66
67namespace FIFFLIB {
68 class FiffDigPointSet;
69}
70
71//=============================================================================================================
72// DEFINE NAMESPACE DISPLIB
73//=============================================================================================================
74
75namespace DISPLIB
76{
77
78//=============================================================================================================
85{
86 Q_OBJECT
87
88public:
89 //=========================================================================================================
96 HpiSettingsView(const QString& sSettingsPath = "",
97 QWidget *parent = 0,
98 Qt::WindowFlags f = Qt::Widget);
99
101
102 //=========================================================================================================
109 void setErrorLabels(const QVector<double>& vError,
110 const double dMeanErrorDist);
111
112 //=========================================================================================================
119
120 void setGoFLabels(const Eigen::VectorXd & vGoF,
121 const double dMeanGof);
122
123 //=========================================================================================================
130 void setMovementResults(double dMovement,
131 double dRotation);
132
133 //=========================================================================================================
139 bool getSspStatusChanged();
140
141 //=========================================================================================================
148
149 //=========================================================================================================
156
157 //=========================================================================================================
164
165 //=========================================================================================================
172
173 //=========================================================================================================
180
181 //=========================================================================================================
188
189 //=========================================================================================================
195 void newDigitizerList(QList<FIFFLIB::FiffDigPoint> pointList);
196
197 //=========================================================================================================
203 void loadCoilPresets(const QString& sFilePath);
204
205 //=========================================================================================================
209 void saveSettings();
210
211 //=========================================================================================================
215 void loadSettings();
216
217 //=========================================================================================================
221 void clearView();
222
223protected:
224 //=========================================================================================================
230 void updateGuiMode(GuiMode mode);
231
232 //=========================================================================================================
239
240 //=========================================================================================================
244 void onLoadDigitizers();
245
246 //=========================================================================================================
253 void onFrequencyCellChanged(int row,
254 int col);
255
256 //=========================================================================================================
260 void onAddCoil();
261
262 //=========================================================================================================
266 void onRemoveCoil();
267
268 //=========================================================================================================
272 QList<FIFFLIB::FiffDigPoint> readDigitizersFromFile(const QString& fileName);
273
274 //=========================================================================================================
280 void setupCoilPresets(int iNumCoils);
281
282 //=========================================================================================================
288 void populatePresetGUI(const QJsonArray& presetData);
289
290 //=========================================================================================================
294 void populateCoilGUI();
295
296 //=========================================================================================================
302 void selectCoilPreset(int iCoilPresetIndex);
303
304 //=========================================================================================================
310 void addCoilFreqToGUI(int iCoilFreq);
311
312 //=========================================================================================================
316 void addCoilErrorToGUI();
317
318 //=========================================================================================================
322 void clearCoilGUI();
323
324 //=========================================================================================================
331
332 Ui::HpiSettingsViewWidget* m_pUi;
333
334 QVector<int> m_vCoilFreqs;
335
337
338 QJsonDocument m_CoilPresets;
339
340signals:
341 //=========================================================================================================
347 void coilFrequenciesChanged(const QVector<int>& vCoilFreqs);
348
349 //=========================================================================================================
356 void digitizersChanged(const QList<FIFFLIB::FiffDigPoint>& lDigitzers,
357 const QString& sFilePath);
358
359 //=========================================================================================================
364
365 //=========================================================================================================
370
371 //=========================================================================================================
377 void sspStatusChanged(bool bChecked);
378
379 //=========================================================================================================
385 void compStatusChanged(bool bChecked);
386
387 //=========================================================================================================
393 void contHpiStatusChanged(bool bChecked);
394
395 //=========================================================================================================
401 void fittingWindowSizeChanged(int iFitsPerSecond);
402
403 //=========================================================================================================
409 void allowedMeanErrorDistChanged(double dAllowedMeanErrorDist);
410
411 //=========================================================================================================
417 void allowedMovementChanged(double dAllowedMovement);
418
419 //=========================================================================================================
425 void allowedRotationChanged(double dAllowedRotation);
426};
427
428} //NAMESPACE
429
430#endif // HPISETTINGSVIEW_H
Declaration of the AbstractView Class.
disp library export/import macros.
#define DISPSHARED_EXPORT
Definition disp_global.h:51
FiffDigPoint class declaration.
FIFF file I/O and data structures (raw, epochs, evoked, covariance, forward).
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)
Holds a set of digitizer points.