v2.0.0
Loading...
Searching...
No Matches
DISPLIB::CoregSettingsView Class Reference

MRI ↔ head co-registration configuration / refinement panel. More...

#include <coregsettingsview.h>

Public Types

typedef QSharedPointer< CoregSettingsView > SPtr
typedef QSharedPointer< const CoregSettingsView > ConstSPtr
Public Types inherited from DISPLIB::AbstractView
enum  StyleMode { Default , Dark }
enum  GuiMode { Clinical , Research }
enum  ProcessingMode { RealTime , Offline }
typedef QSharedPointer< AbstractView > SPtr
typedef QSharedPointer< const AbstractView > ConstSPtr

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)
 ~CoregSettingsView ()
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

MRI ↔ head co-registration configuration / refinement panel.

Exposes the inputs of the ICP-based co-registration step (fiducial files, trans-file load / save paths, ICP iteration cap, outlier threshold) plus manual scale / rotation / translation tweak spinboxes.

Definition at line 78 of file coregsettingsview.h.

Inheritance diagram for DISPLIB::CoregSettingsView:
Inheritance graph

Member Typedef Documentation

◆ ConstSPtr

Const shared pointer type for DISPLIB.

Definition at line 84 of file coregsettingsview.h.

◆ SPtr

Shared pointer type for DISPLIB.

Definition at line 83 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.

Parameters
[in]sSettingsPathQSettings key prefix used to persist view settings (default empty).
[in]parentParent widget (default 0).
[in]fWindow flags passed to the widget (default Qt::Widget).

Definition at line 62 of file coregsettingsview.cpp.

◆ ~CoregSettingsView()

CoregSettingsView::~CoregSettingsView ( )

Definition at line 138 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 502 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 493 of file coregsettingsview.cpp.

◆ clearView()

void CoregSettingsView::clearView ( )
virtual

Clears the view

Implements DISPLIB::AbstractView.

Definition at line 627 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 417 of file coregsettingsview.cpp.

◆ getConvergence()

float CoregSettingsView::getConvergence ( )

Get the onvergence value.

Returns
The convergence value.

Definition at line 410 of file coregsettingsview.cpp.

◆ getCurrentFiducial()

int CoregSettingsView::getCurrentFiducial ( )

Get the checked radio box for fiducial picking.

Returns
The currently selected fiducial.

Definition at line 388 of file coregsettingsview.cpp.

◆ getCurrentSelectedBem()

QString CoregSettingsView::getCurrentSelectedBem ( )

Return the currently selected bem.

Returns
The name of the currently selected bem.

Definition at line 509 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 473 of file coregsettingsview.cpp.

◆ getMaxIter()

int CoregSettingsView::getMaxIter ( )

Get the maximum number of icp iterations.

Returns
The maximum number of iterations.

Definition at line 403 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 466 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 561 of file coregsettingsview.cpp.

◆ getWeightEEG()

float CoregSettingsView::getWeightEEG ( )

Definition at line 445 of file coregsettingsview.cpp.

◆ getWeightHPI()

float CoregSettingsView::getWeightHPI ( )

Definition at line 452 of file coregsettingsview.cpp.

◆ getWeightHSP()

float CoregSettingsView::getWeightHSP ( )

Definition at line 459 of file coregsettingsview.cpp.

◆ getWeightLPA()

float CoregSettingsView::getWeightLPA ( )

Get the weights for the digitizer types.

Returns
The weight.

Definition at line 424 of file coregsettingsview.cpp.

◆ getWeightNAS()

float CoregSettingsView::getWeightNAS ( )

Definition at line 438 of file coregsettingsview.cpp.

◆ getWeightRPA()

float CoregSettingsView::getWeightRPA ( )

Definition at line 431 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 158 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 146 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 267 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 516 of file coregsettingsview.cpp.

◆ setRMSE()

void CoregSettingsView::setRMSE ( const float fRMSE)

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

Parameters
[in]fRMSEThe RMSE in m.

Definition at line 523 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 530 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 170 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 182 of file coregsettingsview.cpp.


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