MNE-CPP
0.1.9
A Framework for Electrophysiology
|
The AverageSelectionView class provides a view to activate and choose colors for different averages. More...
#include <averageselectionview.h>
Public Types | |
typedef QSharedPointer< AverageSelectionView > | SPtr |
typedef QSharedPointer< const AverageSelectionView > | 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 | newAverageColorMap (const QSharedPointer< QMap< QString, QColor > > qMapAverageColor) |
void | newAverageActivationMap (const QSharedPointer< QMap< QString, bool > > qMapAverageActivation) |
Signals inherited from DISPLIB::AbstractView | |
void | guiStyleChanged (DISPLIB::AbstractView::StyleMode style) |
Public Member Functions | |
AverageSelectionView (const QString &sSettingsPath="", QWidget *parent=0, Qt::WindowFlags f=Qt::Widget) | |
~AverageSelectionView () | |
QSharedPointer< QMap< QString, QColor > > | getAverageColor () const |
QSharedPointer< QMap< QString, bool > > | getAverageActivation () const |
void | setAverageColor (const QSharedPointer< QMap< QString, QColor > > qMapAverageColor) |
void | setAverageActivation (const QSharedPointer< QMap< QString, bool > > qMapAverageActivation) |
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 | redrawGUI () |
void | onAverageSelectionColorChanged () |
Protected Attributes | |
int | m_iMaxNumAverages |
QSharedPointer< QMap< QString, QColor > > | m_qMapAverageColor |
QSharedPointer< QMap< QString, bool > > | m_qMapAverageActivation |
Protected Attributes inherited from DISPLIB::AbstractView | |
bool | m_bResearchModeIsActive |
bool | m_bOfflineModeIsActive |
QString | m_sSettingsPath |
The AverageSelectionView class provides a view to activate and choose colors for different averages.
DECLARE CLASS AverageSelectionView
Definition at line 76 of file averageselectionview.h.
typedef QSharedPointer<const AverageSelectionView> DISPLIB::AverageSelectionView::ConstSPtr |
Const shared pointer type for AverageSelectionView.
Definition at line 82 of file averageselectionview.h.
typedef QSharedPointer<AverageSelectionView> DISPLIB::AverageSelectionView::SPtr |
Shared pointer type for AverageSelectionView.
Definition at line 81 of file averageselectionview.h.
AverageSelectionView::AverageSelectionView | ( | const QString & | sSettingsPath = "" , |
QWidget * | parent = 0 , |
||
Qt::WindowFlags | f = Qt::Widget |
||
) |
Constructs a AverageSelectionView which is a child of parent.
[in] | parent | parent of widget. |
Definition at line 74 of file averageselectionview.cpp.
AverageSelectionView::~AverageSelectionView | ( | ) |
Destroys the AverageSelectionView.
Definition at line 93 of file averageselectionview.cpp.
|
virtual |
Clears the view
Implements DISPLIB::AbstractView.
Definition at line 296 of file averageselectionview.cpp.
QSharedPointer< QMap< QString, bool > > AverageSelectionView::getAverageActivation | ( | ) | const |
Get the current average activations
Definition at line 107 of file averageselectionview.cpp.
QSharedPointer< QMap< QString, QColor > > AverageSelectionView::getAverageColor | ( | ) | const |
Get the current average colors
Definition at line 100 of file averageselectionview.cpp.
|
virtual |
Loads and inits all important settings of this view via QSettings.
Implements DISPLIB::AbstractView.
Definition at line 157 of file averageselectionview.cpp.
|
signal |
Emmited when new average activation is available
[in] | qMapAverageActivation | the average activation map. |
|
signal |
Emmited when new average color is available
[in] | qMapAverageColor | the average color map. |
|
protected |
Call this slot whenever the average selection or color changed.
Definition at line 260 of file averageselectionview.cpp.
|
protected |
Redraw the GUI.
Definition at line 206 of file averageselectionview.cpp.
|
virtual |
Saves all important settings of this view via QSettings.
Implements DISPLIB::AbstractView.
Definition at line 130 of file averageselectionview.cpp.
void AverageSelectionView::setAverageActivation | ( | const QSharedPointer< QMap< QString, bool > > | qMapAverageActivation | ) |
Set the average activations
[in] | qMapAverageActivation | Pointer to the new average activations. |
Definition at line 122 of file averageselectionview.cpp.
void AverageSelectionView::setAverageColor | ( | const QSharedPointer< QMap< QString, QColor > > | qMapAverageColor | ) |
Set the average colors
[in] | qMapAverageColor | Pointer to the new average colors. |
Definition at line 114 of file averageselectionview.cpp.
|
protectedvirtual |
Update the views GUI based on the set GuiMode (Clinical=0, Research=1).
mode | The new mode (Clinical=0, Research=1). |
Implements DISPLIB::AbstractView.
Definition at line 182 of file averageselectionview.cpp.
|
protectedvirtual |
Update the views GUI based on the set ProcessingMode (RealTime=0, Offline=1).
mode | The new mode (RealTime=0, Offline=1). |
Implements DISPLIB::AbstractView.
Definition at line 194 of file averageselectionview.cpp.
|
protected |
Average activation status.
Definition at line 182 of file averageselectionview.h.
|
protected |
Average colors.
Definition at line 181 of file averageselectionview.h.