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

The FwdSettingsView class provides a QWidget for the real-time Forward Solution controls. More...

#include <fwdsettingsview.h>

Signals

void recompStatusChanged (bool bChecked)
 
void clusteringStatusChanged (bool bChecked)
 
void atlasDirChanged (const QString &sDirPath, const FSLIB::AnnotationSet::SPtr pAnnotationSet)
 
void doForwardComputation ()
 
- 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)
 
bool getRecomputationStatusChanged ()
 
void setRecomputationStatus (int iStatus)
 
bool getClusteringStatusChanged ()
 
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

The FwdSettingsView class provides a QWidget for the real-time Forward Solution controls.

The FwdSettingsView class provides a QWidget for the real-time Forward Solution controls.

Definition at line 82 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 72 of file fwdsettingsview.cpp.

Member Function Documentation

◆ atlasDirChanged

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

Emit this signal whenever the atlas directory is set.

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

◆ clearView()

void FwdSettingsView::clearView ( )
virtual

Clears the view

Implements DISPLIB::AbstractView.

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

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

◆ getRecomputationStatusChanged()

bool FwdSettingsView::getRecomputationStatusChanged ( )

Get status of recomputation check box.

Returns
If recomputation status is checked.

Definition at line 182 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 146 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 258 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 134 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 273 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 189 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 214 of file fwdsettingsview.cpp.

◆ showAtlasDirDialog()

void FwdSettingsView::showAtlasDirDialog ( )

Shows atlas selection dialog

Definition at line 281 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 158 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 170 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: