QRhi-accelerated butterfly viewer overlaying every channel of one or more averaged conditions. 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 | updateViewport () |
| 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 | paintEvent (QPaintEvent *event) |
| 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 |
QRhi-accelerated butterfly viewer overlaying every channel of one or more averaged conditions.
Renders all visible traces in a single shader pass for smooth zoom / pan; visibility per modality and per condition is driven by ModalitySelectionView and AverageSelectionView. Used as the main evoked viewer in MNE-Scan.
Definition at line 75 of file butterflyview.h.

| typedef QSharedPointer<const ButterflyView> DISPLIB::ButterflyView::ConstSPtr |
Const shared pointer type for ButterflyView.
Definition at line 81 of file butterflyview.h.
| typedef QSharedPointer<ButterflyView> DISPLIB::ButterflyView::SPtr |
Shared pointer type for ButterflyView.
Definition at line 80 of file butterflyview.h.
|
explicit |
The constructor.
Definition at line 48 of file butterflyview.cpp.
| ButterflyView::~ButterflyView | ( | ) |
Destroys the ButterflyView.
Definition at line 84 of file butterflyview.cpp.
| void ButterflyView::clearView | ( | ) |
Clears the view
Definition at line 593 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 477 of file butterflyview.cpp.
| void ButterflyView::dataUpdate | ( | ) |
Perform a data update.
Definition at line 108 of file butterflyview.cpp.
| QSharedPointer< QMap< QString, bool > > ButterflyView::getAverageActivation | ( | ) | const |
Get the current average activations
Definition at line 205 of file butterflyview.cpp.
| QSharedPointer< QMap< QString, QColor > > ButterflyView::getAverageColor | ( | ) | const |
Get the current average colors
Definition at line 198 of file butterflyview.cpp.
| const QColor & ButterflyView::getBackgroundColor | ( | ) |
Returns the background color.
Definition at line 167 of file butterflyview.cpp.
| QSharedPointer< EvokedSetModel > ButterflyView::getEvokedSetModel | ( | ) |
Returns the currently set EvokedSetModel
Definition at line 586 of file butterflyview.cpp.
| QMap< QString, bool > ButterflyView::getModalityMap | ( | ) |
Get the activation of the already created modality check boxes.
Definition at line 121 of file butterflyview.cpp.
| void ButterflyView::loadSettings | ( | ) |
Loads and inits all important settings of this view via QSettings.
Definition at line 292 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 304 of file butterflyview.cpp.
| void ButterflyView::saveSettings | ( | ) |
Saves all important settings of this view via QSettings.
Definition at line 280 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 228 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 212 of file butterflyview.cpp.
| void ButterflyView::setBackgroundColor | ( | const QColor & | backgroundColor | ) |
Set the background color.
| [in] | backgroundColor | The new background color. |
Definition at line 159 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 236 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 98 of file butterflyview.cpp.
| void ButterflyView::setModalityMap | ( | const QMap< QString, bool > & | modalityMap | ) |
Set the modality checkboxes.
| [in] | modalityMap | The modality map. |
Definition at line 128 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 136 of file butterflyview.cpp.
| void ButterflyView::setSelectedChannels | ( | const QList< int > & | selectedChannels | ) |
Set the selected channels.
| [in] | selectedChannels | The new selected channels. |
Definition at line 144 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 220 of file butterflyview.cpp.
| void ButterflyView::showAllChannels | ( | ) |
Shows all channels in view
Definition at line 267 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 260 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 243 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 174 of file butterflyview.cpp.
| void ButterflyView::updateView | ( | ) |
Perform a view update from outside of this class.
Definition at line 152 of file butterflyview.cpp.
| void ButterflyView::updateViewport | ( | ) |
Update the viewport. This, e.g., necessary if this widget was set to a QDockWidget which changes its floating state.
Definition at line 91 of file butterflyview.cpp.
|
protected |
Whether this class has been initialized.
Definition at line 299 of file butterflyview.h.
|
protected |
Show EEG channels.
Definition at line 296 of file butterflyview.h.
|
protected |
Show EEG channels.
Definition at line 297 of file butterflyview.h.
|
protected |
Show Gradiometers channels.
Definition at line 295 of file butterflyview.h.
|
protected |
Show Magnetometers channels.
Definition at line 294 of file butterflyview.h.
|
protected |
Show Miscellaneous channels.
Definition at line 298 of file butterflyview.h.
|
protected |
The current background color.
Definition at line 303 of file butterflyview.h.
|
protected |
The currently selected channels.
Definition at line 305 of file butterflyview.h.
|
protected |
Map of different modalities.
Definition at line 307 of file butterflyview.h.
|
protected |
The channel info model.
Definition at line 311 of file butterflyview.h.
|
protected |
The evoked model.
Definition at line 310 of file butterflyview.h.
|
protected |
Average activation status.
Definition at line 313 of file butterflyview.h.
|
protected |
Average colors.
Definition at line 314 of file butterflyview.h.
|
protected |
Map with all channel types and their current scaling value.
Definition at line 308 of file butterflyview.h.
|
protected |
The settings path to store the GUI settings to.
Definition at line 301 of file butterflyview.h.