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{
53class HpiSettingsViewWidget;
54}
55
56namespace FIFFLIB
57{
58class FiffDigPointSet;
59}
60
61//=============================================================================================================
62// DEFINE NAMESPACE DISPLIB
63//=============================================================================================================
64
65namespace DISPLIB
66{
67
68//=============================================================================================================
77{
78 Q_OBJECT
79
80public:
81 //=========================================================================================================
89 HpiSettingsView(const QString& sSettingsPath = "",
90 QWidget* parent = 0,
91 Qt::WindowFlags f = Qt::Widget);
92
94
95 //=========================================================================================================
102 void setErrorLabels(const QVector<double>& vError,
103 const double dMeanErrorDist);
104
105 //=========================================================================================================
112
113 void setGoFLabels(const Eigen::VectorXd& vGoF,
114 const double dMeanGof);
115
116 //=========================================================================================================
123 void setMovementResults(double dMovement,
124 double dRotation);
125
126 //=========================================================================================================
132 bool getSspStatusChanged();
133
134 //=========================================================================================================
141
142 //=========================================================================================================
149
150 //=========================================================================================================
157
158 //=========================================================================================================
165
166 //=========================================================================================================
173
174 //=========================================================================================================
181
182 //=========================================================================================================
188 void newDigitizerList(QList<FIFFLIB::FiffDigPoint> pointList);
189
190 //=========================================================================================================
196 void loadCoilPresets(const QString& sFilePath);
197
198 //=========================================================================================================
202 void saveSettings();
203
204 //=========================================================================================================
208 void loadSettings();
209
210 //=========================================================================================================
214 void clearView();
215
216protected:
217 //=========================================================================================================
223 void updateGuiMode(GuiMode mode);
224
225 //=========================================================================================================
232
233 //=========================================================================================================
237 void onLoadDigitizers();
238
239 //=========================================================================================================
246 void onFrequencyCellChanged(int row,
247 int col);
248
249 //=========================================================================================================
253 void onAddCoil();
254
255 //=========================================================================================================
259 void onRemoveCoil();
260
261 //=========================================================================================================
269 QList<FIFFLIB::FiffDigPoint> readDigitizersFromFile(const QString& fileName);
270
271 //=========================================================================================================
277 void setupCoilPresets(int iNumCoils);
278
279 //=========================================================================================================
285 void populatePresetGUI(const QJsonArray& presetData);
286
287 //=========================================================================================================
291 void populateCoilGUI();
292
293 //=========================================================================================================
299 void selectCoilPreset(int iCoilPresetIndex);
300
301 //=========================================================================================================
307 void addCoilFreqToGUI(int iCoilFreq);
308
309 //=========================================================================================================
313 void addCoilErrorToGUI();
314
315 //=========================================================================================================
319 void clearCoilGUI();
320
321 //=========================================================================================================
328
329 Ui::HpiSettingsViewWidget* m_pUi;
330
331 QVector<int> m_vCoilFreqs;
332
334
335 QJsonDocument m_CoilPresets;
336
337signals:
338 //=========================================================================================================
344 void coilFrequenciesChanged(const QVector<int>& vCoilFreqs);
345
346 //=========================================================================================================
353 void digitizersChanged(const QList<FIFFLIB::FiffDigPoint>& lDigitzers,
354 const QString& sFilePath);
355
356 //=========================================================================================================
361
362 //=========================================================================================================
367
368 //=========================================================================================================
374 void sspStatusChanged(bool bChecked);
375
376 //=========================================================================================================
382 void compStatusChanged(bool bChecked);
383
384 //=========================================================================================================
390 void contHpiStatusChanged(bool bChecked);
391
392 //=========================================================================================================
398 void fittingWindowSizeChanged(int iFitsPerSecond);
399
400 //=========================================================================================================
406 void allowedMeanErrorDistChanged(double dAllowedMeanErrorDist);
407
408 //=========================================================================================================
414 void allowedMovementChanged(double dAllowedMovement);
415
416 //=========================================================================================================
422 void allowedRotationChanged(double dAllowedRotation);
423};
424
425} //NAMESPACE
426
427#endif // HPISETTINGSVIEW_H
Single digitization point (FIFF_DIG_POINT) with kind (cardinal/HPI/EEG/extra), identifier and 3D coor...
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)
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.