ButterflyView
Namespace: DISPLIB · Library: Display Library
#include <disp/butterflyview.h>
class DISPLIB::ButterflyView
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.
Inheritance
Public Methods
ButterflyView(sSettingsPath, parent, f)
The constructor.
~ButterflyView()
Destroys the ButterflyView.
updateViewport()
Update the viewport.
This, e.g., necessary if this widget was set to a QDockWidget which changes its floating state.
setEvokedSetModel(model)
Set the evoked set model.
Parameters:
- model : QSharedPointer<EvokedSetModel> The new evoked set model.
getEvokedSetModel()
Returns the currently set EvokedSetModel.
Returns:
- QSharedPointer<EvokedSetModel> — the currently set
EvokedSetModel.
dataUpdate()
Perform a data update.
getModalityMap()
Get the activation of the already created modality check boxes.
Returns:
- QMap< QString, bool > — The current modality map.
setModalityMap(modalityMap)
Set the modality checkboxes.
Parameters:
- modalityMap : const QMap< QString, bool > & The modality map.
setScaleMap(scaleMap)
Sets the scale map to scaleMap.
Parameters:
- scaleMap : const QMap< qint32, float > & map with all channel types and their current scaling value.
setSelectedChannels(selectedChannels)
Set the selected channels.
Parameters:
- selectedChannels : const QList< int > & The new selected channels.
updateView()
Perform a view update from outside of this class.
setBackgroundColor(backgroundColor)
Set the background color.
Parameters:
- backgroundColor : const QColor & The new background color.
getBackgroundColor()
Returns the background color.
Returns:
- const QColor & — The current background color.
takeScreenshot(fileName)
Renders a screenshot of the view and saves it to the passed path.
SVG and PNG supported.
Parameters:
- fileName : const QString & The file name and path where to store the screenshot.
getAverageColor()
Get the current average colors.
Returns:
- QSharedPointer< QMap< QString, QColor > > — Pointer to the current average colors.
getAverageActivation()
Get the current average activations.
Returns:
- QSharedPointer< QMap< QString, bool > > — Pointer to the current average activations.
setAverageColor(qMapAverageColor)
Set the average colors.
Parameters:
- qMapAverageColor : const QSharedPointer< QMap< QString, QColor > > Pointer to the new average colors.
setSingleAverageColor(avgColor)
Sets the color used to draw the average to avgColor.
Parameters:
- avgColor : const QColor & Color of averaged signal.
setAverageActivation(qMapAverageActivation)
Set the average activations.
Parameters:
- qMapAverageActivation : const QSharedPointer< QMap< QString, bool > > Pointer to the new average activations.
setChannelInfoModel(pChannelInfoModel)
Set the channel info model.
Parameters:
- pChannelInfoModel : QSharedPointer<ChannelInfoModel> & The new channel info model.
showSelectedChannelsOnly(selectedChannels)
Only shows the channels defined in the QStringList selectedChannels.
Parameters:
- selectedChannels : const QStringList & list of all channel names which are currently selected in the selection manager.
showSelectedChannels(selectedChannelsIndexes)
Shows selected channels based on a list of selected channel indices.
Parameters:
- selectedChannelsIndexes : const QList< int > list of indices of channels channels to be displayed.
showAllChannels()
Shows all channels in view.
saveSettings()
Saves all important settings of this view via QSettings.
loadSettings()
Loads and inits all important settings of this view via QSettings.
clearView()
Clears the view.
Authors of this file
- Lorenz Esch <lorenz.esch@tu-ilmenau.de>
- Gabriel Motta <gabrielbenmotta@gmail.com>
- Juan GPC <jgarciaprieto@mgh.harvard.edu>
- Andreas Griesshammer <ag@fieldlineinc.com>
- Christoph Dinh <christoph.dinh@mne-cpp.org>