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{
51class CoregSettingsViewWidget;
52}
53
54namespace FIFFLIB
55{
56class FiffCoordTrans;
57}
58//=============================================================================================================
59// DEFINE NAMESPACE NAMESPACE
60//=============================================================================================================
61
62namespace DISPLIB
63{
64
65//=============================================================================================================
66// NAMESPACE FORWARD DECLARATIONS
67//=============================================================================================================
68
69//=============================================================================================================
79{
80 Q_OBJECT
81
82public:
83 typedef QSharedPointer<CoregSettingsView> SPtr;
84 typedef QSharedPointer<const CoregSettingsView> ConstSPtr;
85
86 //=========================================================================================================
94 explicit CoregSettingsView(const QString& sSettingsPath = "",
95 QWidget* parent = 0,
96 Qt::WindowFlags f = Qt::Widget);
97
99
100 //=========================================================================================================
104 void saveSettings();
105
106 //=========================================================================================================
110 void loadSettings();
111
112 //=========================================================================================================
118 void updateGuiMode(GuiMode mode);
119
120 //=========================================================================================================
127
128 //=========================================================================================================
133 void clearSelectionBem();
134
135 //=========================================================================================================
141 void addSelectionBem(const QString& sBemName);
142
143 //=========================================================================================================
149 QString getCurrentSelectedBem();
150
151 //=========================================================================================================
157 int getCurrentFiducial();
158
159 //=========================================================================================================
165 void setFiducials(const QVector3D vecAxialPosition);
166
167 //=========================================================================================================
173 int getMaxIter();
174
175 //=========================================================================================================
181 float getConvergence();
182
183 //=========================================================================================================
189 bool getAutoScale();
190
191 //=========================================================================================================
197 float getOmmitDistance();
198
199 //=========================================================================================================
205 void setOmittedPoints(const int iN);
206
207 //=========================================================================================================
213 void setRMSE(const float fRMSE);
214
215 //=========================================================================================================
221 float getWeightLPA();
222 float getWeightRPA();
223 float getWeightNAS();
224 float getWeightEEG();
225 float getWeightHSP();
226 float getWeightHPI();
227
228 //=========================================================================================================
234 QList<int> getDigitizerCheckState();
235
236 //=========================================================================================================
245 void getTransParams(Eigen::Vector3f& vecRot,
246 Eigen::Vector3f& vecTrans,
247 Eigen::Vector3f& vecScale);
248
249 //=========================================================================================================
258 void setTransParams(const Eigen::Vector3f& vecTrans,
259 const Eigen::Vector3f& vecRot,
260 const Eigen::Vector3f& vecScale);
261
262 //=========================================================================================================
266 void clearView();
267
268private:
269 //=========================================================================================================
273 void onLoadFidFile();
274
275 //=========================================================================================================
279 void onPickingStatus();
280
281 //=========================================================================================================
285 void onFiducialChanged();
286 //=========================================================================================================
290 void onFitFiducials();
291
292 //=========================================================================================================
296 void onFitICP();
297
298 //=========================================================================================================
302 void onStoreFidFile();
303
304 //=========================================================================================================
308 void onLoadDigFile();
309
310 //=========================================================================================================
314 void onLoadTrans();
315
316 //=========================================================================================================
320 void onStoreTrans();
321
322 //=========================================================================================================
326 void onScalingModeChanges();
327
328 //=========================================================================================================
332 void setToolTipInfo();
333
334 Ui::CoregSettingsViewWidget* m_pUi;
335 QString m_sSettingsPath;
336
337 QVector3D m_vecLPA;
338 QVector3D m_vecNAS;
339 QVector3D m_vecRPA;
340
341signals:
342 //=========================================================================================================
348 void fidFileChanged(const QString& sFilePath);
349
350 //=========================================================================================================
356 void fiducialChanged(const int iFiducial);
357
358 //=========================================================================================================
364 void fidStoreFileChanged(const QString& sFilePath);
365
366 //=========================================================================================================
372 void digFileChanged(const QString& sFilePath);
373
374 //=========================================================================================================
379
380 //=========================================================================================================
384 void fitICP();
385
386 //=========================================================================================================
392 void storeTrans(const QString& sFilePath);
393
394 //=========================================================================================================
400 void loadTrans(const QString& sFilePath);
401
402 //=========================================================================================================
408 void changeSelectedBem(const QString& sText);
409
410 //=========================================================================================================
415
416 //=========================================================================================================
420 void pickFiducials(bool bActivatePicking);
421};
422
423//=============================================================================================================
424// INLINE DEFINITIONS
425//=============================================================================================================
426
427} // NAMESPACE
428
429#endif // COREGSETTINGSVIEW_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.
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.