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

SSP projector enable / disable checkbox list. 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

SSP projector enable / disable checkbox list.

One QCheckBox per FiffProj plus a master toggle; emits projSelectionChanged so the rtprocessing pipeline can (de)project the streaming data on the fly.

Definition at line 69 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 75 of file projectorsview.h.

◆ SPtr

Shared pointer type for ProjectorsView.

Definition at line 74 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 46 of file projectorsview.cpp.

◆ ~ProjectorsView()

ProjectorsView::~ProjectorsView ( )

Destroys the ProjectorsView.

Definition at line 63 of file projectorsview.cpp.

Member Function Documentation

◆ clearView()

void ProjectorsView::clearView ( )
virtual

Clears the view

Implements DISPLIB::AbstractView.

Definition at line 258 of file projectorsview.cpp.

◆ getProjectors()

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

Get the current projectors

Returns
The current projectors.

Definition at line 70 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 166 of file projectorsview.cpp.

◆ onCheckProjStatusChanged()

void ProjectorsView::onCheckProjStatusChanged ( )
protected

Slot called when the projector check state changes

Definition at line 234 of file projectorsview.cpp.

◆ onEnableDisableAllProj()

void ProjectorsView::onEnableDisableAllProj ( bool status)
protected

Slot called when user enables/disables all projectors

Definition at line 209 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 94 of file projectorsview.cpp.

◆ saveSettings()

void ProjectorsView::saveSettings ( )
virtual

Saves all important settings of this view via QSettings.

Implements DISPLIB::AbstractView.

Definition at line 145 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 77 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 185 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 197 of file projectorsview.cpp.

Member Data Documentation

◆ m_mapProjActive

QMap<QString,bool> DISPLIB::ProjectorsView::m_mapProjActive
protected

Definition at line 169 of file projectorsview.h.

◆ m_pEnableDisableProjectors

QCheckBox* DISPLIB::ProjectorsView::m_pEnableDisableProjectors
protected

Holds the enable disable all check box.

Definition at line 163 of file projectorsview.h.

◆ m_pProjs

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

The current projectors.

Definition at line 165 of file projectorsview.h.

◆ m_qListProjCheckBox

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

List of projection CheckBox.

Definition at line 162 of file projectorsview.h.

◆ m_sSettingsPath

QString DISPLIB::ProjectorsView::m_sSettingsPath
protected

The settings path to store the GUI settings to.

Definition at line 167 of file projectorsview.h.


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