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

Forward-solution computation control panel (BEM / source-space / EEG sphere model selectors). More...

#include <fwdsettingsview.h>

Signals

void recompStatusChanged (bool bChecked)
void clusteringStatusChanged (bool bChecked)
void atlasDirChanged (const QString &sDirPath, const FSLIB::FsAnnotationSet::SPtr pAnnotationSet)
void doForwardComputation ()
void clusterNumberChanged (int iNCluster)
Signals inherited from DISPLIB::AbstractView
void guiStyleChanged (DISPLIB::AbstractView::StyleMode style)

Public Member Functions

 FwdSettingsView (const QString &sSettingsPath="", QWidget *parent=0, Qt::WindowFlags f=Qt::Widget)
 ~FwdSettingsView ()
bool getRecomputationStatusChanged ()
void setRecomputationStatus (int iStatus)
bool getClusteringStatusChanged ()
int getClusterNumber ()
void showAtlasDirDialog ()
void setSolutionInformation (FIFFLIB::fiff_int_t iSourceOri, FIFFLIB::fiff_int_t iCoordFrame, int iNSource, int iNChan, int iNSpaces)
void setClusteredInformation (int iNSource)
void onClusteringStatusChanged (bool bChecked)
void saveSettings ()
void loadSettings ()
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)

Protected Member Functions

void updateGuiMode (GuiMode mode)
void updateProcessingMode (ProcessingMode mode)

Protected Attributes

bool m_bAnnotaionsLoaded
Ui::FwdSettingsViewWidget * m_pUi
QString m_sSettingsPath
Protected Attributes inherited from DISPLIB::AbstractView
bool m_bResearchModeIsActive
bool m_bOfflineModeIsActive
QString m_sSettingsPath

Additional Inherited Members

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

Detailed Description

Forward-solution computation control panel (BEM / source-space / EEG sphere model selectors).

Exposes the parameters required by the FWDLIB recomputation job and provides a Recompute trigger plus live status labels showing the currently loaded BEM and dipole / sensor counts.

Definition at line 74 of file fwdsettingsview.h.

Inheritance diagram for DISPLIB::FwdSettingsView:
Inheritance graph

Constructor & Destructor Documentation

◆ FwdSettingsView()

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

Constructs a FwdSettingsView object.

Definition at line 55 of file fwdsettingsview.cpp.

◆ ~FwdSettingsView()

FwdSettingsView::~FwdSettingsView ( )

Definition at line 112 of file fwdsettingsview.cpp.

Member Function Documentation

◆ atlasDirChanged

void DISPLIB::FwdSettingsView::atlasDirChanged ( const QString & sDirPath,
const FSLIB::FsAnnotationSet::SPtr pAnnotationSet )
signal

Emit this signal whenever the atlas directory is set.

Parameters
[in]sDirPathThe path to the atlas.
[in]pAnnotationSetThe FsAnnotation set.

◆ clearView()

void FwdSettingsView::clearView ( )
virtual

Clears the view

Implements DISPLIB::AbstractView.

Definition at line 303 of file fwdsettingsview.cpp.

◆ clusteringStatusChanged

void DISPLIB::FwdSettingsView::clusteringStatusChanged ( bool bChecked)
signal

Emit this signal whenever clustering checkbox changed.

Parameters
[in]bCheckedWhether the clustering check box is checked.

◆ clusterNumberChanged

void DISPLIB::FwdSettingsView::clusterNumberChanged ( int iNCluster)
signal

Emit this signal whenever a forward computation is supposed to be triggered.

Parameters
[in]iNClusterNumber of desired sources in the clustered source space.

◆ doForwardComputation

void DISPLIB::FwdSettingsView::doForwardComputation ( )
signal

Emit this signal whenever a forward computation is supposed to be triggered.

◆ getClusteringStatusChanged()

bool FwdSettingsView::getClusteringStatusChanged ( )

Get status of clustering check box.

Returns
Wheter clustering is checked or not.

Definition at line 241 of file fwdsettingsview.cpp.

◆ getClusterNumber()

int FwdSettingsView::getClusterNumber ( )

Get status of cluster size spin box.

Returns
Desired number of sources in clustered source space.

Definition at line 248 of file fwdsettingsview.cpp.

◆ getRecomputationStatusChanged()

bool FwdSettingsView::getRecomputationStatusChanged ( )

Get status of recomputation check box.

Returns
If recomputation status is checked.

Definition at line 169 of file fwdsettingsview.cpp.

◆ loadSettings()

void FwdSettingsView::loadSettings ( )
virtual

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

Implements DISPLIB::AbstractView.

Definition at line 133 of file fwdsettingsview.cpp.

◆ onClusteringStatusChanged()

void FwdSettingsView::onClusteringStatusChanged ( bool bChecked)

Updates clustered forward solution information

Parameters
[in]bCheckedWhether the clustering check box is checked..

Definition at line 255 of file fwdsettingsview.cpp.

◆ recompStatusChanged

void DISPLIB::FwdSettingsView::recompStatusChanged ( bool bChecked)
signal

Emit this signal whenever recomputation checkbox changed.

Parameters
[in]bCheckedWhether the recomputation check box is checked.

◆ saveSettings()

void FwdSettingsView::saveSettings ( )
virtual

Saves all important settings of this view via QSettings.

Implements DISPLIB::AbstractView.

Definition at line 121 of file fwdsettingsview.cpp.

◆ setClusteredInformation()

void FwdSettingsView::setClusteredInformation ( int iNSource)

Updates clustered forward solution information

Parameters
[in]iNSourceNumber of clustered source dipoles.

Definition at line 270 of file fwdsettingsview.cpp.

◆ setRecomputationStatus()

void FwdSettingsView::setRecomputationStatus ( int iStatus)

Updates the clustering status (0 Initializing, 1 Computing, 2 Recomputing, 3 Clustering, 4 Not Computed, 5 Finished).

Parameters
[in]iStatusstatus of recomputation.

Definition at line 176 of file fwdsettingsview.cpp.

◆ setSolutionInformation()

void FwdSettingsView::setSolutionInformation ( FIFFLIB::fiff_int_t iSourceOri,
FIFFLIB::fiff_int_t iCoordFrame,
int iNSource,
int iNChan,
int iNSpaces )

Updates forward solution information

Parameters
[in]iSourceOriSource orientation: fixed or free.
[in]iCoordFrameCoil coordinate system definition.
[in]iNSourceNumber of source dipoles.
[in]iNChanNumber of channels.
[in]iNSpacesNumber of source spaces.

Definition at line 204 of file fwdsettingsview.cpp.

◆ showAtlasDirDialog()

void FwdSettingsView::showAtlasDirDialog ( )

Shows atlas selection dialog

Definition at line 278 of file fwdsettingsview.cpp.

◆ updateGuiMode()

void FwdSettingsView::updateGuiMode ( GuiMode mode)
protectedvirtual

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 145 of file fwdsettingsview.cpp.

◆ updateProcessingMode()

void FwdSettingsView::updateProcessingMode ( ProcessingMode mode)
protectedvirtual

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 157 of file fwdsettingsview.cpp.

Member Data Documentation

◆ m_bAnnotaionsLoaded

bool DISPLIB::FwdSettingsView::m_bAnnotaionsLoaded
protected

If the annotationset is loaded.

Definition at line 199 of file fwdsettingsview.h.

◆ m_pUi

Ui::FwdSettingsViewWidget* DISPLIB::FwdSettingsView::m_pUi
protected

The rtFwd dialog.

Definition at line 201 of file fwdsettingsview.h.

◆ m_sSettingsPath

QString DISPLIB::FwdSettingsView::m_sSettingsPath
protected

The settings path to store the GUI settings to.

Definition at line 203 of file fwdsettingsview.h.


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