MNE-CPP
0.1.9
A Framework for Electrophysiology
|
The AverageSceneItem class provides a new data structure for visualizing averages in a 2D layout. More...
#include <averagesceneitem.h>
Signals | |
void | sceneUpdateRequested () |
Public Member Functions | |
AverageSceneItem (const QString &channelName, int channelNumber, const QPointF &channelPosition, int channelKind, int channelUnit, const QColor &color=Qt::yellow) | |
QRectF | boundingRect () const |
void | mousePressEvent (QGraphicsSceneMouseEvent *event) |
void | mouseReleaseEvent (QGraphicsSceneMouseEvent *event) |
virtual void | paint (QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget) |
void | setDefaultColor (const QColor &viewColor) |
Public Attributes | |
QString | m_sChannelName |
int | m_iChannelNumber |
int | m_iChannelKind |
int | m_iChannelUnit |
int | m_iTotalNumberChannels |
int | m_iFontTextSize |
int | m_iMaxWidth |
int | m_iMaxHeigth |
bool | m_bIsBad |
QPointF | m_qpChannelPosition |
QList< QPair< QString, RowVectorPair > > | m_lAverageData |
QPair< int, int > | m_firstLastSample |
QMap< qint32, float > | m_scaleMap |
QMap< QString, bool > | m_qMapAverageActivation |
QMap< QString, QColor > | m_qMapAverageColor |
QRectF | m_rectBoundingRect |
QColor | m_colorDefault |
Protected Member Functions | |
void | paintAveragePath (QPainter *painter) |
void | paintStimLine (QPainter *painter) |
The AverageSceneItem class provides a new data structure for visualizing averages in a 2D layout.
DECLARE CLASS AverageSceneItem
Definition at line 79 of file averagesceneitem.h.
AverageSceneItem::AverageSceneItem | ( | const QString & | channelName, |
int | channelNumber, | ||
const QPointF & | channelPosition, | ||
int | channelKind, | ||
int | channelUnit, | ||
const QColor & | color = Qt::yellow |
||
) |
Constructs a AverageSceneItem.
Definition at line 67 of file averagesceneitem.cpp.
QRectF AverageSceneItem::boundingRect | ( | ) | const |
Reimplemented virtual functions
Definition at line 90 of file averagesceneitem.cpp.
|
protected |
Create a plot path and paint the average data
[in] | painter | The painter used to plot in this item. |
Definition at line 167 of file averagesceneitem.cpp.
|
protected |
Create a plot path and paint the average data
[in] | painter | The painter used to plot in this item. |
Definition at line 239 of file averagesceneitem.cpp.
|
signal |
Signal to request a scene update.
void AverageSceneItem::setDefaultColor | ( | const QColor & | viewColor | ) |
Sets the item color to the input parameter viewColor
[in] | viewColor | desired item color. |
Definition at line 274 of file averagesceneitem.cpp.
bool DISPLIB::AverageSceneItem::m_bIsBad |
Whether this channel is bad.
Definition at line 121 of file averagesceneitem.h.
QColor DISPLIB::AverageSceneItem::m_colorDefault |
The color for the avergaed signal.
Definition at line 134 of file averagesceneitem.h.
QPair<int,int> DISPLIB::AverageSceneItem::m_firstLastSample |
The first and last sample.
Definition at line 126 of file averagesceneitem.h.
int DISPLIB::AverageSceneItem::m_iChannelKind |
The channel kind.
Definition at line 114 of file averagesceneitem.h.
int DISPLIB::AverageSceneItem::m_iChannelNumber |
The channel number.
Definition at line 113 of file averagesceneitem.h.
int DISPLIB::AverageSceneItem::m_iChannelUnit |
The channel unit.
Definition at line 115 of file averagesceneitem.h.
int DISPLIB::AverageSceneItem::m_iFontTextSize |
The font text size of the electrode names.
Definition at line 117 of file averagesceneitem.h.
int DISPLIB::AverageSceneItem::m_iMaxHeigth |
The max heigth.
Definition at line 119 of file averagesceneitem.h.
int DISPLIB::AverageSceneItem::m_iMaxWidth |
The max width.
Definition at line 118 of file averagesceneitem.h.
int DISPLIB::AverageSceneItem::m_iTotalNumberChannels |
The total number of channels loaded in the curent evoked data set.
Definition at line 116 of file averagesceneitem.h.
QList<QPair<QString, RowVectorPair> > DISPLIB::AverageSceneItem::m_lAverageData |
The channels average data which is to be plotted.
Definition at line 124 of file averagesceneitem.h.
QMap<QString, bool> DISPLIB::AverageSceneItem::m_qMapAverageActivation |
The average activation information.
Definition at line 129 of file averagesceneitem.h.
QMap<QString, QColor> DISPLIB::AverageSceneItem::m_qMapAverageColor |
The average color information.
Definition at line 130 of file averagesceneitem.h.
QPointF DISPLIB::AverageSceneItem::m_qpChannelPosition |
The channels 2D position in the scene.
Definition at line 123 of file averagesceneitem.h.
QRectF DISPLIB::AverageSceneItem::m_rectBoundingRect |
The bounding rect.
Definition at line 132 of file averagesceneitem.h.
QMap<qint32,float> DISPLIB::AverageSceneItem::m_scaleMap |
Map with all channel types and their current scaling value.
Definition at line 128 of file averagesceneitem.h.
QString DISPLIB::AverageSceneItem::m_sChannelName |
The channel name.
Definition at line 112 of file averagesceneitem.h.