MNE-CPP
0.1.9
A Framework for Electrophysiology
|
The AverageLayoutView class provides a widget for a 2D average layout. More...
#include <averagelayoutview.h>
Public Types | |
typedef QSharedPointer< AverageLayoutView > | SPtr |
typedef QSharedPointer< const AverageLayoutView > | 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 |
Public Member Functions | |
AverageLayoutView (const QString &sSettingsPath="", QWidget *parent=0, Qt::WindowFlags f=Qt::Widget) | |
~AverageLayoutView () | |
void | updateOpenGLViewport () |
void | setChannelInfoModel (QSharedPointer< ChannelInfoModel > &pChannelInfoModel) |
void | setEvokedSetModel (QSharedPointer< EvokedSetModel > pEvokedSetModel) |
QSharedPointer< EvokedSetModel > | getEvokedSetModel () |
void | setBackgroundColor (const QColor &backgroundColor) |
QColor | getBackgroundColor () |
void | takeScreenshot (const QString &fileName) |
void | setScaleMap (const QMap< qint32, float > &scaleMap) |
QSharedPointer< QMap< QString, QColor > > | getAverageColor () const |
QSharedPointer< QMap< QString, bool > > | getAverageActivation () const |
void | setAverageColor (const QSharedPointer< QMap< QString, QColor > > qMapAverageColor) |
void | setSingleAverageColor (const QColor &avgColor) |
void | setAverageActivation (const QSharedPointer< QMap< QString, bool > > qMapAverageActivation) |
void | setFiffInfo (const QSharedPointer< FIFFLIB::FiffInfo > pFiffInfo) |
void | channelSelectionManagerChanged (const QList< QGraphicsItem * > &selectedChannelItems) |
void | channelSelectionChanged (const QVariant &data) |
void | updateData () |
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 | |
QSharedPointer< AverageScene > | m_pAverageScene |
QSharedPointer< DISPLIB::EvokedSetModel > | m_pEvokedSetModel |
QSharedPointer< DISPLIB::ChannelInfoModel > | m_pChannelInfoModel |
QSharedPointer< FIFFLIB::FiffInfo > | m_pFiffInfo |
QPointer< QGraphicsView > | m_pAverageLayoutView |
QSharedPointer< QMap< QString, QColor > > | m_qMapAverageColor |
QSharedPointer< QMap< QString, bool > > | m_qMapAverageActivation |
QMap< qint32, float > | m_scaleMap |
Protected Attributes inherited from DISPLIB::AbstractView | |
bool | m_bResearchModeIsActive |
bool | m_bOfflineModeIsActive |
QString | m_sSettingsPath |
Additional Inherited Members | |
Signals inherited from DISPLIB::AbstractView | |
void | guiStyleChanged (DISPLIB::AbstractView::StyleMode style) |
The AverageLayoutView class provides a widget for a 2D average layout.
DECLARE CLASS AverageLayoutView
Definition at line 85 of file averagelayoutview.h.
typedef QSharedPointer<const AverageLayoutView> DISPLIB::AverageLayoutView::ConstSPtr |
Const shared pointer type for AverageLayoutView.
Definition at line 91 of file averagelayoutview.h.
typedef QSharedPointer<AverageLayoutView> DISPLIB::AverageLayoutView::SPtr |
Shared pointer type for AverageLayoutView.
Definition at line 90 of file averagelayoutview.h.
AverageLayoutView::AverageLayoutView | ( | const QString & | sSettingsPath = "" , |
QWidget * | parent = 0 , |
||
Qt::WindowFlags | f = Qt::Widget |
||
) |
Constructs a AverageLayoutView which is a child of parent.
[in] | parent | parent of widget. |
Definition at line 76 of file averagelayoutview.cpp.
AverageLayoutView::~AverageLayoutView | ( | ) |
Destroys the AverageLayoutView.
Definition at line 110 of file averagelayoutview.cpp.
void AverageLayoutView::channelSelectionChanged | ( | const QVariant & | data | ) |
Sets the currently viewable channels using the corrent name and location parameters
[in] | data | QVariant containing a SelectionItem object with selected channel information. |
Definition at line 286 of file averagelayoutview.cpp.
void AverageLayoutView::channelSelectionManagerChanged | ( | const QList< QGraphicsItem * > & | selectedChannelItems | ) |
call this whenever the external channel selection manager changes
[in] | selectedChannelItems | list of selected graphic items |
Definition at line 270 of file averagelayoutview.cpp.
|
virtual |
Clears the view
Implements DISPLIB::AbstractView.
Definition at line 445 of file averagelayoutview.cpp.
QSharedPointer< QMap< QString, bool > > AverageLayoutView::getAverageActivation | ( | ) | const |
Get the current average activations
Definition at line 225 of file averagelayoutview.cpp.
QSharedPointer< QMap< QString, QColor > > AverageLayoutView::getAverageColor | ( | ) | const |
Get the current average colors
Definition at line 218 of file averagelayoutview.cpp.
QColor AverageLayoutView::getBackgroundColor | ( | ) |
Returns the background color of the scene.
Definition at line 161 of file averagelayoutview.cpp.
QSharedPointer< EvokedSetModel > AverageLayoutView::getEvokedSetModel | ( | ) |
Returns the currently set EvokedSetModel
Definition at line 438 of file averagelayoutview.cpp.
|
virtual |
Loads and inits all important settings of this view via QSettings.
Implements DISPLIB::AbstractView.
Definition at line 396 of file averagelayoutview.cpp.
|
virtual |
Saves all important settings of this view via QSettings.
Implements DISPLIB::AbstractView.
Definition at line 385 of file averagelayoutview.cpp.
void AverageLayoutView::setAverageActivation | ( | const QSharedPointer< QMap< QString, bool > > | qMapAverageActivation | ) |
Set the average activations
[in] | qMapAverageActivation | Pointer to the new average activations. |
Definition at line 257 of file averagelayoutview.cpp.
void AverageLayoutView::setAverageColor | ( | const QSharedPointer< QMap< QString, QColor > > | qMapAverageColor | ) |
Set the average colors
[in] | qMapAverageColor | Pointer to the new average colors. |
Definition at line 232 of file averagelayoutview.cpp.
void AverageLayoutView::setBackgroundColor | ( | const QColor & | backgroundColor | ) |
Sets the background color of the scene.
[in] | backgroundColor | The new background color. |
Definition at line 147 of file averagelayoutview.cpp.
void AverageLayoutView::setChannelInfoModel | ( | QSharedPointer< ChannelInfoModel > & | pChannelInfoModel | ) |
Sets the channel info model.
[in] | pChannelInfoModel | The new channel info model. |
Definition at line 128 of file averagelayoutview.cpp.
void AverageLayoutView::setEvokedSetModel | ( | QSharedPointer< EvokedSetModel > | pEvokedSetModel | ) |
Sets the evoked set model.
[in] | pEvokedSetModel | The new evoked set model. |
Definition at line 135 of file averagelayoutview.cpp.
void AverageLayoutView::setFiffInfo | ( | const QSharedPointer< FIFFLIB::FiffInfo > | pFiffInfo | ) |
Stores FiffInfo to local variable to be used for getting channel info
[in] | pFiffInfo | shared pointer to Fiff Info of currently loaded data. |
Definition at line 431 of file averagelayoutview.cpp.
void AverageLayoutView::setScaleMap | ( | const QMap< qint32, float > & | scaleMap | ) |
Sets the scale map to scaleMap.
[in] | scaleMap | map with all channel types and their current scaling value. |
Definition at line 202 of file averagelayoutview.cpp.
void AverageLayoutView::setSingleAverageColor | ( | const QColor & | avgColor | ) |
Sets the color used to draw the average to avgColor
[in] | avgColor | Color of averaged signal. |
Definition at line 245 of file averagelayoutview.cpp.
void AverageLayoutView::takeScreenshot | ( | const QString & | fileName | ) |
Renders a screenshot of the scene and saves it to the passed path. SVG and PNG supported.
[in] | fileName | The file name and path where to store the screenshot. |
Definition at line 173 of file averagelayoutview.cpp.
void AverageLayoutView::updateData | ( | ) |
call this function whenever the items' data needs to be updated
Definition at line 305 of file averagelayoutview.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 407 of file averagelayoutview.cpp.
void AverageLayoutView::updateOpenGLViewport | ( | ) |
Update the OpenGL viewport. This, e.g., necessary if this widget was set to a QDockWidget which changes its floating state.
Definition at line 117 of file averagelayoutview.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 419 of file averagelayoutview.cpp.
|
protected |
View for 2D average layout scene.
Definition at line 283 of file averagelayoutview.h.
|
protected |
The pointer to the average scene.
Definition at line 277 of file averagelayoutview.h.
|
protected |
Channel info model.
Definition at line 279 of file averagelayoutview.h.
|
protected |
The data model.
Definition at line 278 of file averagelayoutview.h.
|
protected |
FiffInfo for currently loaded file.
Definition at line 281 of file averagelayoutview.h.
|
protected |
Average activation status.
Definition at line 286 of file averagelayoutview.h.
|
protected |
Average colors.
Definition at line 285 of file averagelayoutview.h.
|
protected |
The current scaling map.
Definition at line 287 of file averagelayoutview.h.