v2.0.0
Loading...
Searching...
No Matches
coregsettingsview.h
Go to the documentation of this file.
1//=============================================================================================================
22
23#ifndef COREGSETTINGSVIEW_H
24#define COREGSETTINGSVIEW_H
25
26//=============================================================================================================
27// INCLUDES
28//=============================================================================================================
29
30#include "../disp_global.h"
31#include "abstractview.h"
32
33//=============================================================================================================
34// QT INCLUDES
35//=============================================================================================================
36
37#include <QSharedPointer>
38#include <QVector3D>
39
40//=============================================================================================================
41// EIGEN INCLUDES
42//=============================================================================================================
43
44#include <Eigen/Core>
45//=============================================================================================================
46// FORWARD DECLARATIONS
47//=============================================================================================================
48
49namespace Ui {
50 class CoregSettingsViewWidget;
51}
52
53namespace FIFFLIB {
54 class FiffCoordTrans;
55}
56//=============================================================================================================
57// DEFINE NAMESPACE NAMESPACE
58//=============================================================================================================
59
60namespace DISPLIB
61{
62
63//=============================================================================================================
64// NAMESPACE FORWARD DECLARATIONS
65//=============================================================================================================
66
67//=============================================================================================================
77{
78 Q_OBJECT
79
80public:
81 typedef QSharedPointer<CoregSettingsView> SPtr;
82 typedef QSharedPointer<const CoregSettingsView> ConstSPtr;
83
84 //=========================================================================================================
88 explicit CoregSettingsView(const QString& sSettingsPath = "",
89 QWidget *parent = 0,
90 Qt::WindowFlags f = Qt::Widget);
91
93
94 //=========================================================================================================
98 void saveSettings();
99
100 //=========================================================================================================
104 void loadSettings();
105
106 //=========================================================================================================
112 void updateGuiMode(GuiMode mode);
113
114 //=========================================================================================================
121
122 //=========================================================================================================
127 void clearSelectionBem();
128
129 //=========================================================================================================
135 void addSelectionBem(const QString& sBemName);
136
137 //=========================================================================================================
143 QString getCurrentSelectedBem();
144
145 //=========================================================================================================
151 int getCurrentFiducial();
152
153 //=========================================================================================================
159 void setFiducials(const QVector3D vecAxialPosition);
160
161 //=========================================================================================================
167 int getMaxIter();
168
169 //=========================================================================================================
175 float getConvergence();
176
177 //=========================================================================================================
183 bool getAutoScale();
184
185 //=========================================================================================================
191 float getOmmitDistance();
192
193 //=========================================================================================================
199 void setOmittedPoints(const int iN);
200
201 //=========================================================================================================
207 void setRMSE(const float fRMSE);
208
209 //=========================================================================================================
215 float getWeightLPA();
216 float getWeightRPA();
217 float getWeightNAS();
218 float getWeightEEG();
219 float getWeightHSP();
220 float getWeightHPI();
221
222 //=========================================================================================================
228 QList<int> getDigitizerCheckState();
229
230 //=========================================================================================================
239 void getTransParams(Eigen::Vector3f& vecRot,
240 Eigen::Vector3f& vecTrans,
241 Eigen::Vector3f& vecScale);
242
243 //=========================================================================================================
252 void setTransParams(const Eigen::Vector3f& vecTrans,
253 const Eigen::Vector3f& vecRot,
254 const Eigen::Vector3f& vecScale);
255
256 //=========================================================================================================
260 void clearView();
261
262private:
263 //=========================================================================================================
267 void onLoadFidFile();
268
269 //=========================================================================================================
273 void onPickingStatus();
274
275 //=========================================================================================================
279 void onFiducialChanged();
280 //=========================================================================================================
284 void onFitFiducials();
285
286 //=========================================================================================================
290 void onFitICP();
291
292 //=========================================================================================================
296 void onStoreFidFile();
297
298 //=========================================================================================================
302 void onLoadDigFile();
303
304 //=========================================================================================================
308 void onLoadTrans();
309
310 //=========================================================================================================
314 void onStoreTrans();
315
316 //=========================================================================================================
320 void onScalingModeChanges();
321
322 //=========================================================================================================
326 void setToolTipInfo();
327
328 Ui::CoregSettingsViewWidget* m_pUi;
329 QString m_sSettingsPath;
330
331 QVector3D m_vecLPA;
332 QVector3D m_vecNAS;
333 QVector3D m_vecRPA;
334
335signals:
336 //=========================================================================================================
342 void fidFileChanged(const QString& sFilePath);
343
344 //=========================================================================================================
350 void fiducialChanged(const int iFiducial);
351
352 //=========================================================================================================
358 void fidStoreFileChanged(const QString& sFilePath);
359
360 //=========================================================================================================
366 void digFileChanged(const QString& sFilePath);
367
368 //=========================================================================================================
373
374 //=========================================================================================================
378 void fitICP();
379
380 //=========================================================================================================
386 void storeTrans(const QString& sFilePath);
387
388 //=========================================================================================================
394 void loadTrans(const QString& sFilePath);
395
396 //=========================================================================================================
402 void changeSelectedBem(const QString &sText);
403
404 //=========================================================================================================
409
410 //=========================================================================================================
414 void pickFiducials(bool bActivatePicking);
415};
416
417//=============================================================================================================
418// INLINE DEFINITIONS
419//=============================================================================================================
420
421} // NAMESPACE
422
423#endif // COREGSETTINGSVIEW_H
424
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
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 fidFileChanged(const QString &sFilePath)
void setRMSE(const float fRMSE)
void addSelectionBem(const QString &sBemName)
void updateProcessingMode(ProcessingMode mode)
void changeSelectedBem(const QString &sText)
void setOmittedPoints(const int iN)
void pickFiducials(bool bActivatePicking)
QSharedPointer< CoregSettingsView > SPtr
void loadTrans(const QString &sFilePath)
void setTransParams(const Eigen::Vector3f &vecTrans, const Eigen::Vector3f &vecRot, const Eigen::Vector3f &vecScale)
QSharedPointer< const CoregSettingsView > ConstSPtr
void fidStoreFileChanged(const QString &sFilePath)
void setFiducials(const QVector3D vecAxialPosition)
void digFileChanged(const QString &sFilePath)
void getTransParams(Eigen::Vector3f &vecRot, Eigen::Vector3f &vecTrans, Eigen::Vector3f &vecScale)
void storeTrans(const QString &sFilePath)
void fiducialChanged(const int iFiducial)
CoregSettingsView(const QString &sSettingsPath="", QWidget *parent=0, Qt::WindowFlags f=Qt::Widget)
Labelled 4x4 FIFF affine: source frame, destination frame, rotation, translation and cached inverse.