MNE-CPP  0.1.9
A Framework for Electrophysiology
Public Types | Signals | Public Member Functions | List of all members
DISPLIB::CoregSettingsView Class Reference

#include <coregsettingsview.h>

Public Types

typedef QSharedPointer< CoregSettingsViewSPtr
 
typedef QSharedPointer< const CoregSettingsViewConstSPtr
 
- Public Types inherited from DISPLIB::AbstractView
enum  StyleMode { Default, Dark }
 
enum  GuiMode { Clinical, Research }
 
enum  ProcessingMode { RealTime, Offline }
 
typedef QSharedPointer< AbstractViewSPtr
 
typedef QSharedPointer< const AbstractViewConstSPtr
 

Signals

void fidFileChanged (const QString &sFilePath)
 
void fiducialChanged (const int iFiducial)
 
void fidStoreFileChanged (const QString &sFilePath)
 
void digFileChanged (const QString &sFilePath)
 
void fitFiducials ()
 
void fitICP ()
 
void storeTrans (const QString &sFilePath)
 
void loadTrans (const QString &sFilePath)
 
void changeSelectedBem (const QString &sText)
 
void transParamChanged ()
 
void pickFiducials (bool bActivatePicking)
 
- Signals inherited from DISPLIB::AbstractView
void guiStyleChanged (DISPLIB::AbstractView::StyleMode style)
 

Public Member Functions

 CoregSettingsView (const QString &sSettingsPath="", QWidget *parent=0, Qt::WindowFlags f=Qt::Widget)
 
void saveSettings ()
 
void loadSettings ()
 
void updateGuiMode (GuiMode mode)
 
void updateProcessingMode (ProcessingMode mode)
 
void clearSelectionBem ()
 
void addSelectionBem (const QString &sBemName)
 
QString getCurrentSelectedBem ()
 
int getCurrentFiducial ()
 
void setFiducials (const QVector3D vecAxialPosition)
 
int getMaxIter ()
 
float getConvergence ()
 
bool getAutoScale ()
 
float getOmmitDistance ()
 
void setOmittedPoints (const int iN)
 
void setRMSE (const float fRMSE)
 
float getWeightLPA ()
 
float getWeightRPA ()
 
float getWeightNAS ()
 
float getWeightEEG ()
 
float getWeightHSP ()
 
float getWeightHPI ()
 
QList< int > getDigitizerCheckState ()
 
void getTransParams (Eigen::Vector3f &vecRot, Eigen::Vector3f &vecTrans, Eigen::Vector3f &vecScale)
 
void setTransParams (const Eigen::Vector3f &vecTrans, const Eigen::Vector3f &vecRot, const Eigen::Vector3f &vecScale)
 
void clearView ()
 
- Public Member Functions inherited from DISPLIB::AbstractView
 AbstractView (QWidget *parent=0, Qt::WindowFlags f=Qt::Widget)
 
virtual void setGuiMode (GuiMode mode)
 
virtual void setProcessingMode (ProcessingMode mode)
 

Additional Inherited Members

- Protected Attributes inherited from DISPLIB::AbstractView
bool m_bResearchModeIsActive
 
bool m_bOfflineModeIsActive
 
QString m_sSettingsPath
 

Detailed Description

This class provides the interface to the coregistration setting view.

Definition at line 84 of file coregsettingsview.h.

Inheritance diagram for DISPLIB::CoregSettingsView:
Inheritance graph

Member Typedef Documentation

◆ ConstSPtr

Const shared pointer type for DISPLIB.

Definition at line 90 of file coregsettingsview.h.

◆ SPtr

Shared pointer type for DISPLIB.

Definition at line 89 of file coregsettingsview.h.

Constructor & Destructor Documentation

◆ CoregSettingsView()

CoregSettingsView::CoregSettingsView ( const QString &  sSettingsPath = "",
QWidget *  parent = 0,
Qt::WindowFlags  f = Qt::Widget 
)
explicit

Constructs a CoregSettingsView object.

Definition at line 82 of file coregsettingsview.cpp.

Member Function Documentation

◆ addSelectionBem()

void CoregSettingsView::addSelectionBem ( const QString &  sBemName)

Add a new Bem to the drop down menu.

Parameters
[in]sBemNameThe name of the bem.

Definition at line 526 of file coregsettingsview.cpp.

◆ changeSelectedBem

void DISPLIB::CoregSettingsView::changeSelectedBem ( const QString &  sText)
signal

Emit this signal whenever the selected Bem changed.

Parameters
[in]sTextThe file name of the currently selected Bem.

◆ clearSelectionBem()

void CoregSettingsView::clearSelectionBem ( )

Clear/Emüpty the selection menu for bem models.

Definition at line 517 of file coregsettingsview.cpp.

◆ clearView()

void CoregSettingsView::clearView ( )
virtual

Clears the view

Implements DISPLIB::AbstractView.

Definition at line 651 of file coregsettingsview.cpp.

◆ digFileChanged

void DISPLIB::CoregSettingsView::digFileChanged ( const QString &  sFilePath)
signal

Emit this signal whenever new digitizers were loaded.

Parameters
[in]sFilePathThe file path to the digitizers.

◆ fidFileChanged

void DISPLIB::CoregSettingsView::fidFileChanged ( const QString &  sFilePath)
signal

Emit this signal whenever new fiducials were loaded.

Parameters
[in]sFilePathThe file path to the fiduical file.

◆ fidStoreFileChanged

void DISPLIB::CoregSettingsView::fidStoreFileChanged ( const QString &  sFilePath)
signal

Emit this signal whenever the file to store the fiducials changed.

Parameters
[in]sFilePathThe file path to the stored fiducials.

◆ fiducialChanged

void DISPLIB::CoregSettingsView::fiducialChanged ( const int  iFiducial)
signal

Emit this signal whenever the picked fiducial changed.

Parameters
[in]iFiducialThe picked fiducial.

◆ fitFiducials

void DISPLIB::CoregSettingsView::fitFiducials ( )
signal

Emit this signal whenever fiducial alignment is requested.

◆ fitICP

void DISPLIB::CoregSettingsView::fitICP ( )
signal

Emit this signal whenever icp alignment is requested.

◆ getAutoScale()

bool CoregSettingsView::getAutoScale ( )

Get the auto scale state. If activated, unform scaling is applied for any icp iteration.

Returns
The auto scale state.

Definition at line 441 of file coregsettingsview.cpp.

◆ getConvergence()

float CoregSettingsView::getConvergence ( )

Get the onvergence value.

Returns
The convergence value.

Definition at line 434 of file coregsettingsview.cpp.

◆ getCurrentFiducial()

int CoregSettingsView::getCurrentFiducial ( )

Get the checked radio box for fiducial picking.

Returns
The currently selected fiducial.

Definition at line 412 of file coregsettingsview.cpp.

◆ getCurrentSelectedBem()

QString CoregSettingsView::getCurrentSelectedBem ( )

Return the currently selected bem.

Returns
The name of the currently selected bem.

Definition at line 533 of file coregsettingsview.cpp.

◆ getDigitizerCheckState()

QList< int > CoregSettingsView::getDigitizerCheckState ( )

Get the types of digitizers to use for coregistration.

Returns
The list containing the digitizer types to use for coregistration.

Definition at line 497 of file coregsettingsview.cpp.

◆ getMaxIter()

int CoregSettingsView::getMaxIter ( )

Get the maximum number of icp iterations.

Returns
The maximum number of iterations.

Definition at line 427 of file coregsettingsview.cpp.

◆ getOmmitDistance()

float CoregSettingsView::getOmmitDistance ( )

Get the the maximum distance for digitizers from the surface.

Returns
The maximum distance in m.

Definition at line 490 of file coregsettingsview.cpp.

◆ getTransParams()

void CoregSettingsView::getTransParams ( Eigen::Vector3f &  vecRot,
Eigen::Vector3f &  vecTrans,
Eigen::Vector3f &  vecScale 
)

Get the parameters for the new transformation to build from the adjustment values.

Parameters
[out]vecRotThe rotation angle vector in rad (x,y,z).
[out]vecTransThe traslation vector (x,y,z).
[out]vecScaleThe vector with the scaling parameters (due to euler transformation: z,y,x).

Definition at line 585 of file coregsettingsview.cpp.

◆ getWeightLPA()

float CoregSettingsView::getWeightLPA ( )

Get the weights for the digitizer types.

Returns
The weight.

Definition at line 448 of file coregsettingsview.cpp.

◆ loadSettings()

void CoregSettingsView::loadSettings ( )
virtual

Loads and inits all important settings of this view via QSettings.

Implements DISPLIB::AbstractView.

Definition at line 180 of file coregsettingsview.cpp.

◆ loadTrans

void DISPLIB::CoregSettingsView::loadTrans ( const QString &  sFilePath)
signal

Emit this signal whenever the transformation should be loaded.

Parameters
[in]sFilePathThe file path to load the transformation.

◆ pickFiducials

void DISPLIB::CoregSettingsView::pickFiducials ( bool  bActivatePicking)
signal

Emit this signal whenever fiducial picking from 3DView should be activated.

◆ saveSettings()

void CoregSettingsView::saveSettings ( )
virtual

Saves all important settings of this view via QSettings.

Implements DISPLIB::AbstractView.

Definition at line 167 of file coregsettingsview.cpp.

◆ setFiducials()

void CoregSettingsView::setFiducials ( const QVector3D  vecAxialPosition)

Set the position of the fiducials.

Parameters
[in]vecAxialPositionThe vector containig x-,y- and x- Position for LPA, Nasion and RPA.

Definition at line 291 of file coregsettingsview.cpp.

◆ setOmittedPoints()

void CoregSettingsView::setOmittedPoints ( const int  iN)

Set the the number of omitted points.

Parameters
[in]iNThe number of omitted digitizer points.

Definition at line 540 of file coregsettingsview.cpp.

◆ setRMSE()

void CoregSettingsView::setRMSE ( const float  fRMSE)

Set the the Root-Mean-Square-Error (Digitizer-Surface) after icp.

Parameters
[in]fRMSEThe RMSE in m.

Definition at line 547 of file coregsettingsview.cpp.

◆ setTransParams()

void CoregSettingsView::setTransParams ( const Eigen::Vector3f &  vecTrans,
const Eigen::Vector3f &  vecRot,
const Eigen::Vector3f &  vecScale 
)

Set the transformation received from the ICP algorithm.

Parameters
[in]vecRotThe rotation angle vector in rad (x,y,z).
[in]vecTransThe traslation vector (x,y,z).
[in]vecScaleThe vector with the scaling parameters (due to euler transformation: z,y,x).

Definition at line 554 of file coregsettingsview.cpp.

◆ storeTrans

void DISPLIB::CoregSettingsView::storeTrans ( const QString &  sFilePath)
signal

Emit this signal whenever the transformation should be stored.

Parameters
[in]sFilePathThe file path to store the transformation.

◆ transParamChanged

void DISPLIB::CoregSettingsView::transParamChanged ( )
signal

Emit this signal whenever the scaling, translation or rotation parmeters have changed.

◆ updateGuiMode()

void CoregSettingsView::updateGuiMode ( GuiMode  mode)
virtual

Update the views GUI based on the set GuiMode (Clinical=0, Research=1).

Parameters
[in]modeThe new mode (Clinical=0, Research=1).

Implements DISPLIB::AbstractView.

Definition at line 193 of file coregsettingsview.cpp.

◆ updateProcessingMode()

void CoregSettingsView::updateProcessingMode ( ProcessingMode  mode)
virtual

Update the views GUI based on the set ProcessingMode (RealTime=0, Offline=1).

Parameters
[in]modeThe new mode (RealTime=0, Offline=1).

Implements DISPLIB::AbstractView.

Definition at line 205 of file coregsettingsview.cpp.


The documentation for this class was generated from the following files: