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

The ProjectorsView class provides a view to select projectors. More...

#include <projectorsview.h>

Public Types

typedef QSharedPointer< ProjectorsViewSPtr
 
typedef QSharedPointer< const ProjectorsViewConstSPtr
 
- 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 projSelectionChanged (const QList< FIFFLIB::FiffProj > &projs)
 
- Signals inherited from DISPLIB::AbstractView
void guiStyleChanged (DISPLIB::AbstractView::StyleMode style)
 

Public Member Functions

 ProjectorsView (const QString &sSettingsPath="", QWidget *parent=0, Qt::WindowFlags f=Qt::Widget)
 
 ~ProjectorsView ()
 
QList< FIFFLIB::FiffProjgetProjectors () const
 
void setProjectors (const QList< FIFFLIB::FiffProj > &projs)
 
void redrawGUI ()
 
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)
 
void onEnableDisableAllProj (bool status)
 
void onCheckProjStatusChanged ()
 

Protected Attributes

QList< QCheckBox * > m_qListProjCheckBox
 
QCheckBox * m_pEnableDisableProjectors
 
QList< FIFFLIB::FiffProjm_pProjs
 
QString m_sSettingsPath
 
QMap< QString, bool > m_mapProjActive
 
- Protected Attributes inherited from DISPLIB::AbstractView
bool m_bResearchModeIsActive
 
bool m_bOfflineModeIsActive
 
QString m_sSettingsPath
 

Detailed Description

The ProjectorsView class provides a view to select projectors.

DECLARE CLASS ProjectorsView

Definition at line 79 of file projectorsview.h.

Inheritance diagram for DISPLIB::ProjectorsView:
Inheritance graph

Member Typedef Documentation

◆ ConstSPtr

typedef QSharedPointer<const ProjectorsView> DISPLIB::ProjectorsView::ConstSPtr

Const shared pointer type for ProjectorsView.

Definition at line 85 of file projectorsview.h.

◆ SPtr

Shared pointer type for ProjectorsView.

Definition at line 84 of file projectorsview.h.

Constructor & Destructor Documentation

◆ ProjectorsView()

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

Constructs a ProjectorsView which is a child of parent.

Parameters
[in]parentparent of widget.

Definition at line 65 of file projectorsview.cpp.

◆ ~ProjectorsView()

ProjectorsView::~ProjectorsView ( )

Destroys the ProjectorsView.

Definition at line 82 of file projectorsview.cpp.

Member Function Documentation

◆ clearView()

void ProjectorsView::clearView ( )
virtual

Clears the view

Implements DISPLIB::AbstractView.

Definition at line 277 of file projectorsview.cpp.

◆ getProjectors()

QList< FIFFLIB::FiffProj > ProjectorsView::getProjectors ( ) const

Get the current projectors

Returns
The current projectors.

Definition at line 89 of file projectorsview.cpp.

◆ loadSettings()

void ProjectorsView::loadSettings ( )
virtual

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

Implements DISPLIB::AbstractView.

Definition at line 185 of file projectorsview.cpp.

◆ onCheckProjStatusChanged()

void ProjectorsView::onCheckProjStatusChanged ( )
protected

Slot called when the projector check state changes

Definition at line 253 of file projectorsview.cpp.

◆ onEnableDisableAllProj()

void ProjectorsView::onEnableDisableAllProj ( bool  status)
protected

Slot called when user enables/disables all projectors

Definition at line 228 of file projectorsview.cpp.

◆ projSelectionChanged

void DISPLIB::ProjectorsView::projSelectionChanged ( const QList< FIFFLIB::FiffProj > &  projs)
signal

Emit this signal whenever the user changes the projections.

◆ redrawGUI()

void ProjectorsView::redrawGUI ( )

Redraw the view.

Definition at line 113 of file projectorsview.cpp.

◆ saveSettings()

void ProjectorsView::saveSettings ( )
virtual

Saves all important settings of this view via QSettings.

Implements DISPLIB::AbstractView.

Definition at line 164 of file projectorsview.cpp.

◆ setProjectors()

void ProjectorsView::setProjectors ( const QList< FIFFLIB::FiffProj > &  projs)

Set the current projectors

Parameters
[in]projsThe new projectors.

Definition at line 96 of file projectorsview.cpp.

◆ updateGuiMode()

void ProjectorsView::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 204 of file projectorsview.cpp.

◆ updateProcessingMode()

void ProjectorsView::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 216 of file projectorsview.cpp.

Member Data Documentation

◆ m_pEnableDisableProjectors

QCheckBox* DISPLIB::ProjectorsView::m_pEnableDisableProjectors
protected

Holds the enable disable all check box.

Definition at line 173 of file projectorsview.h.

◆ m_pProjs

QList<FIFFLIB::FiffProj> DISPLIB::ProjectorsView::m_pProjs
protected

The current projectors.

Definition at line 175 of file projectorsview.h.

◆ m_qListProjCheckBox

QList<QCheckBox*> DISPLIB::ProjectorsView::m_qListProjCheckBox
protected

List of projection CheckBox.

Definition at line 172 of file projectorsview.h.

◆ m_sSettingsPath

QString DISPLIB::ProjectorsView::m_sSettingsPath
protected

The settings path to store the GUI settings to.

Definition at line 177 of file projectorsview.h.


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