MNE-CPP 0.1.9
A Framework for Electrophysiology
Loading...
Searching...
No Matches
coregsettingsview.h
Go to the documentation of this file.
1//=============================================================================================================
35#ifndef COREGSETTINGSVIEW_H
36#define COREGSETTINGSVIEW_H
37
38//=============================================================================================================
39// INCLUDES
40//=============================================================================================================
41
42#include "../disp_global.h"
43#include "abstractview.h"
44
45//=============================================================================================================
46// QT INCLUDES
47//=============================================================================================================
48
49#include <QSharedPointer>
50#include <QVector3D>
51
52//=============================================================================================================
53// EIGEN INCLUDES
54//=============================================================================================================
55
56#include <Eigen/Core>
57//=============================================================================================================
58// FORWARD DECLARATIONS
59//=============================================================================================================
60
61namespace Ui {
62 class CoregSettingsViewWidget;
63}
64
65namespace FIFFLIB {
66 class FiffCoordTrans;
67}
68//=============================================================================================================
69// DEFINE NAMESPACE NAMESPACE
70//=============================================================================================================
71
72namespace DISPLIB
73{
74
75//=============================================================================================================
76// NAMESPACE FORWARD DECLARATIONS
77//=============================================================================================================
78
79//=============================================================================================================
85{
86 Q_OBJECT
87
88public:
89 typedef QSharedPointer<CoregSettingsView> SPtr;
90 typedef QSharedPointer<const CoregSettingsView> ConstSPtr;
92 //=========================================================================================================
96 explicit CoregSettingsView(const QString& sSettingsPath = "",
97 QWidget *parent = 0,
98 Qt::WindowFlags f = Qt::Widget);
99
101
102 //=========================================================================================================
106 void saveSettings();
107
108 //=========================================================================================================
112 void loadSettings();
113
114 //=========================================================================================================
120 void updateGuiMode(GuiMode mode);
121
122 //=========================================================================================================
128 void updateProcessingMode(ProcessingMode mode);
129
130 //=========================================================================================================
135 void clearSelectionBem();
136
137 //=========================================================================================================
143 void addSelectionBem(const QString& sBemName);
144
145 //=========================================================================================================
151 QString getCurrentSelectedBem();
152
153 //=========================================================================================================
159 int getCurrentFiducial();
160
161 //=========================================================================================================
167 void setFiducials(const QVector3D vecAxialPosition);
168
169 //=========================================================================================================
175 int getMaxIter();
176
177 //=========================================================================================================
183 float getConvergence();
184
185 //=========================================================================================================
191 bool getAutoScale();
192
193 //=========================================================================================================
199 float getOmmitDistance();
200
201 //=========================================================================================================
207 void setOmittedPoints(const int iN);
208
209 //=========================================================================================================
215 void setRMSE(const float fRMSE);
216
217 //=========================================================================================================
223 float getWeightLPA();
224 float getWeightRPA();
225 float getWeightNAS();
226 float getWeightEEG();
227 float getWeightHSP();
228 float getWeightHPI();
229
230 //=========================================================================================================
236 QList<int> getDigitizerCheckState();
237
238 //=========================================================================================================
247 void getTransParams(Eigen::Vector3f& vecRot,
248 Eigen::Vector3f& vecTrans,
249 Eigen::Vector3f& vecScale);
250
251 //=========================================================================================================
260 void setTransParams(const Eigen::Vector3f& vecTrans,
261 const Eigen::Vector3f& vecRot,
262 const Eigen::Vector3f& vecScale);
263
264 //=========================================================================================================
268 void clearView();
269
270private:
271 //=========================================================================================================
275 void onLoadFidFile();
276
277 //=========================================================================================================
281 void onPickingStatus();
282
283 //=========================================================================================================
287 void onFiducialChanged();
288 //=========================================================================================================
292 void onFitFiducials();
293
294 //=========================================================================================================
298 void onFitICP();
299
300 //=========================================================================================================
304 void onStoreFidFile();
305
306 //=========================================================================================================
310 void onLoadDigFile();
311
312 //=========================================================================================================
316 void onLoadTrans();
317
318 //=========================================================================================================
322 void onStoreTrans();
323
324 //=========================================================================================================
328 void onScalingModeChanges();
329
330 //=========================================================================================================
334 void setToolTipInfo();
335
336 Ui::CoregSettingsViewWidget* m_pUi;
337 QString m_sSettingsPath;
339 QVector3D m_vecLPA;
340 QVector3D m_vecNAS;
341 QVector3D m_vecRPA;
343signals:
344 //=========================================================================================================
350 void fidFileChanged(const QString& sFilePath);
351
352 //=========================================================================================================
358 void fiducialChanged(const int iFiducial);
359
360 //=========================================================================================================
366 void fidStoreFileChanged(const QString& sFilePath);
367
368 //=========================================================================================================
374 void digFileChanged(const QString& sFilePath);
375
376 //=========================================================================================================
381
382 //=========================================================================================================
386 void fitICP();
387
388 //=========================================================================================================
394 void storeTrans(const QString& sFilePath);
395
396 //=========================================================================================================
402 void loadTrans(const QString& sFilePath);
403
404 //=========================================================================================================
410 void changeSelectedBem(const QString &sText);
411
412 //=========================================================================================================
417
418 //=========================================================================================================
422 void pickFiducials(bool bActivatePicking);
423};
424
425//=============================================================================================================
426// INLINE DEFINITIONS
427//=============================================================================================================
428
429} // NAMESPACE
430
431#endif // COREGSETTINGSVIEW_H
432
#define DISPSHARED_EXPORT
Definition disp_global.h:55
The AbstractView class provides the base calss for all Disp viewers.
void fidFileChanged(const QString &sFilePath)
void changeSelectedBem(const QString &sText)
void pickFiducials(bool bActivatePicking)
QSharedPointer< CoregSettingsView > SPtr
void loadTrans(const QString &sFilePath)
QSharedPointer< const CoregSettingsView > ConstSPtr
void fidStoreFileChanged(const QString &sFilePath)
void digFileChanged(const QString &sFilePath)
void storeTrans(const QString &sFilePath)
void fiducialChanged(const int iFiducial)
AbstractView class declaration.