MNE-CPP
0.1.9
A Framework for Electrophysiology
|
The ButterflyView class provides a butterfly view. More...
#include <butterflyview.h>
Public Types | |
typedef QSharedPointer< ButterflyView > | SPtr |
typedef QSharedPointer< const ButterflyView > | ConstSPtr |
Public Member Functions | |
ButterflyView (const QString &sSettingsPath="", QWidget *parent=0, Qt::WindowFlags f=Qt::Widget) | |
~ButterflyView () | |
void | updateOpenGLViewport () |
void | setEvokedSetModel (QSharedPointer< EvokedSetModel > model) |
QSharedPointer< EvokedSetModel > | getEvokedSetModel () |
void | dataUpdate () |
QMap< QString, bool > | getModalityMap () |
void | setModalityMap (const QMap< QString, bool > &modalityMap) |
void | setScaleMap (const QMap< qint32, float > &scaleMap) |
void | setSelectedChannels (const QList< int > &selectedChannels) |
void | updateView () |
void | setBackgroundColor (const QColor &backgroundColor) |
const QColor & | getBackgroundColor () |
void | takeScreenshot (const QString &fileName) |
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 | setChannelInfoModel (QSharedPointer< ChannelInfoModel > &pChannelInfoModel) |
void | showSelectedChannelsOnly (const QStringList &selectedChannels) |
void | showSelectedChannels (const QList< int > selectedChannelsIndexes) |
void | showAllChannels () |
void | saveSettings () |
void | loadSettings () |
void | clearView () |
Protected Member Functions | |
virtual void | paintGL () |
void | createPlotPath (qint32 row, QPainter &painter) const |
Protected Attributes | |
bool | m_bShowMAG |
bool | m_bShowGRAD |
bool | m_bShowEEG |
bool | m_bShowEOG |
bool | m_bShowMISC |
bool | m_bIsInit |
QString | m_sSettingsPath |
QColor | m_colCurrentBackgroundColor |
QList< int > | m_lSelectedChannels |
QMap< QString, bool > | m_modalityMap |
QMap< qint32, float > | m_scaleMap |
QSharedPointer< EvokedSetModel > | m_pEvokedSetModel |
QSharedPointer< ChannelInfoModel > | m_pChannelInfoModel |
QSharedPointer< QMap< QString, bool > > | m_qMapAverageActivation |
QSharedPointer< QMap< QString, QColor > > | m_qMapAverageColor |
The ButterflyView class provides a butterfly view.
DECLARE CLASS ButterflyView
Definition at line 88 of file butterflyview.h.
typedef QSharedPointer<const ButterflyView> DISPLIB::ButterflyView::ConstSPtr |
Const shared pointer type for ButterflyView.
Definition at line 97 of file butterflyview.h.
typedef QSharedPointer<ButterflyView> DISPLIB::ButterflyView::SPtr |
Shared pointer type for ButterflyView.
Definition at line 96 of file butterflyview.h.
|
explicit |
The constructor.
Definition at line 69 of file butterflyview.cpp.
ButterflyView::~ButterflyView | ( | ) |
Destroys the ButterflyView.
Definition at line 100 of file butterflyview.cpp.
void ButterflyView::clearView | ( | ) |
Clears the view
Definition at line 620 of file butterflyview.cpp.
|
protected |
createPlotPath creates the QPointer path for the data plot.
[in] | index | QModelIndex for accessing associated data and model object. |
Definition at line 504 of file butterflyview.cpp.
void ButterflyView::dataUpdate | ( | ) |
Perform a data update.
Definition at line 127 of file butterflyview.cpp.
QSharedPointer< QMap< QString, bool > > ButterflyView::getAverageActivation | ( | ) | const |
Get the current average activations
Definition at line 224 of file butterflyview.cpp.
QSharedPointer< QMap< QString, QColor > > ButterflyView::getAverageColor | ( | ) | const |
Get the current average colors
Definition at line 217 of file butterflyview.cpp.
const QColor & ButterflyView::getBackgroundColor | ( | ) |
Returns the background color.
Definition at line 186 of file butterflyview.cpp.
QSharedPointer< EvokedSetModel > ButterflyView::getEvokedSetModel | ( | ) |
Returns the currently set EvokedSetModel
Definition at line 613 of file butterflyview.cpp.
QMap< QString, bool > ButterflyView::getModalityMap | ( | ) |
Get the activation of the already created modality check boxes.
Definition at line 140 of file butterflyview.cpp.
void ButterflyView::loadSettings | ( | ) |
Loads and inits all important settings of this view via QSettings.
Definition at line 311 of file butterflyview.cpp.
|
protectedvirtual |
Is called to paint the incoming real-time data block. Function is painting the real-time butterfly plot
[in] | event | pointer to PaintEvent -> not used. |
Definition at line 324 of file butterflyview.cpp.
void ButterflyView::saveSettings | ( | ) |
Saves all important settings of this view via QSettings.
Definition at line 299 of file butterflyview.cpp.
void ButterflyView::setAverageActivation | ( | const QSharedPointer< QMap< QString, bool > > | qMapAverageActivation | ) |
Set the average activations
[in] | qMapAverageActivation | Pointer to the new average activations. |
Definition at line 247 of file butterflyview.cpp.
void ButterflyView::setAverageColor | ( | const QSharedPointer< QMap< QString, QColor > > | qMapAverageColor | ) |
Set the average colors
[in] | qMapAverageColor | Pointer to the new average colors. |
Definition at line 231 of file butterflyview.cpp.
void ButterflyView::setBackgroundColor | ( | const QColor & | backgroundColor | ) |
Set the background color.
[in] | backgroundColor | The new background color. |
Definition at line 178 of file butterflyview.cpp.
void ButterflyView::setChannelInfoModel | ( | QSharedPointer< ChannelInfoModel > & | pChannelInfoModel | ) |
Set the channel info model.
[in] | pChannelInfoModel | The new channel info model. |
Definition at line 255 of file butterflyview.cpp.
void ButterflyView::setEvokedSetModel | ( | QSharedPointer< EvokedSetModel > | model | ) |
Set the evoked set model.
[in] | model | The new evoked set model. |
Definition at line 117 of file butterflyview.cpp.
void ButterflyView::setModalityMap | ( | const QMap< QString, bool > & | modalityMap | ) |
Set the modality checkboxes.
[in] | modalityMap | The modality map. |
Definition at line 147 of file butterflyview.cpp.
void ButterflyView::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 155 of file butterflyview.cpp.
void ButterflyView::setSelectedChannels | ( | const QList< int > & | selectedChannels | ) |
Set the selected channels.
[in] | selectedChannels | The new selected channels. |
Definition at line 163 of file butterflyview.cpp.
void ButterflyView::setSingleAverageColor | ( | const QColor & | avgColor | ) |
Sets the color used to draw the average to avgColor
[in] | avgColor | Color of averaged signal. |
Definition at line 239 of file butterflyview.cpp.
void ButterflyView::showAllChannels | ( | ) |
Shows all channels in view
Definition at line 286 of file butterflyview.cpp.
void ButterflyView::showSelectedChannels | ( | const QList< int > | selectedChannelsIndexes | ) |
Shows selected channels based on a list of selected channel indices
[in] | selectedChannelsIndexes | list of indices of channels channels to be displayed. |
Definition at line 279 of file butterflyview.cpp.
void ButterflyView::showSelectedChannelsOnly | ( | const QStringList & | selectedChannels | ) |
Only shows the channels defined in the QStringList selectedChannels
[in] | selectedChannels | list of all channel names which are currently selected in the selection manager. |
Definition at line 262 of file butterflyview.cpp.
void ButterflyView::takeScreenshot | ( | const QString & | fileName | ) |
Renders a screenshot of the view 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 193 of file butterflyview.cpp.
void ButterflyView::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 107 of file butterflyview.cpp.
void ButterflyView::updateView | ( | ) |
Perform a view update from outside of this class.
Definition at line 171 of file butterflyview.cpp.
|
protected |
Whether this class has been initialized.
Definition at line 319 of file butterflyview.h.
|
protected |
Show EEG channels.
Definition at line 316 of file butterflyview.h.
|
protected |
Show EEG channels.
Definition at line 317 of file butterflyview.h.
|
protected |
Show Gradiometers channels.
Definition at line 315 of file butterflyview.h.
|
protected |
Show Magnetometers channels.
Definition at line 314 of file butterflyview.h.
|
protected |
Show Miscellaneous channels.
Definition at line 318 of file butterflyview.h.
|
protected |
The current background color.
Definition at line 323 of file butterflyview.h.
|
protected |
The currently selected channels.
Definition at line 325 of file butterflyview.h.
|
protected |
Map of different modalities.
Definition at line 327 of file butterflyview.h.
|
protected |
The channel info model.
Definition at line 331 of file butterflyview.h.
|
protected |
The evoked model.
Definition at line 330 of file butterflyview.h.
|
protected |
Average activation status.
Definition at line 333 of file butterflyview.h.
|
protected |
Average colors.
Definition at line 334 of file butterflyview.h.
|
protected |
Map with all channel types and their current scaling value.
Definition at line 328 of file butterflyview.h.
|
protected |
The settings path to store the GUI settings to.
Definition at line 321 of file butterflyview.h.