QGraphicsObject painting one channel's averaged evoked traces inside AverageScene. 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) |
QGraphicsObject painting one channel's averaged evoked traces inside AverageScene.
Stores per-condition data vectors and colours and paints overlaid traces, the t = 0 marker and the baseline inside its bounding rect during paint().
Definition at line 68 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 48 of file averagesceneitem.cpp.
| QRectF AverageSceneItem::boundingRect | ( | ) | const |
Reimplemented virtual functions
Definition at line 71 of file averagesceneitem.cpp.
| void AverageSceneItem::mousePressEvent | ( | QGraphicsSceneMouseEvent * | event | ) |
Definition at line 78 of file averagesceneitem.cpp.
| void AverageSceneItem::mouseReleaseEvent | ( | QGraphicsSceneMouseEvent * | event | ) |
Definition at line 87 of file averagesceneitem.cpp.
|
virtual |
Definition at line 96 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 146 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 208 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 245 of file averagesceneitem.cpp.
| bool DISPLIB::AverageSceneItem::m_bIsBad |
Whether this channel is bad.
Definition at line 110 of file averagesceneitem.h.
| QColor DISPLIB::AverageSceneItem::m_colorDefault |
The color for the avergaed signal.
Definition at line 123 of file averagesceneitem.h.
| QPair<int,int> DISPLIB::AverageSceneItem::m_firstLastSample |
The first and last sample.
Definition at line 115 of file averagesceneitem.h.
| int DISPLIB::AverageSceneItem::m_iChannelKind |
The channel kind.
Definition at line 103 of file averagesceneitem.h.
| int DISPLIB::AverageSceneItem::m_iChannelNumber |
The channel number.
Definition at line 102 of file averagesceneitem.h.
| int DISPLIB::AverageSceneItem::m_iChannelUnit |
The channel unit.
Definition at line 104 of file averagesceneitem.h.
| int DISPLIB::AverageSceneItem::m_iFontTextSize |
The font text size of the electrode names.
Definition at line 106 of file averagesceneitem.h.
| int DISPLIB::AverageSceneItem::m_iMaxHeigth |
The max heigth.
Definition at line 108 of file averagesceneitem.h.
| int DISPLIB::AverageSceneItem::m_iMaxWidth |
The max width.
Definition at line 107 of file averagesceneitem.h.
| int DISPLIB::AverageSceneItem::m_iTotalNumberChannels |
The total number of channels loaded in the curent evoked data set.
Definition at line 105 of file averagesceneitem.h.
| QList<QPair<QString, RowVectorPair> > DISPLIB::AverageSceneItem::m_lAverageData |
The channels average data which is to be plotted.
Definition at line 113 of file averagesceneitem.h.
| QMap<QString, bool> DISPLIB::AverageSceneItem::m_qMapAverageActivation |
The average activation information.
Definition at line 118 of file averagesceneitem.h.
| QMap<QString, QColor> DISPLIB::AverageSceneItem::m_qMapAverageColor |
The average color information.
Definition at line 119 of file averagesceneitem.h.
| QPointF DISPLIB::AverageSceneItem::m_qpChannelPosition |
The channels 2D position in the scene.
Definition at line 112 of file averagesceneitem.h.
| QRectF DISPLIB::AverageSceneItem::m_rectBoundingRect |
The bounding rect.
Definition at line 121 of file averagesceneitem.h.
| QMap<qint32,float> DISPLIB::AverageSceneItem::m_scaleMap |
Map with all channel types and their current scaling value.
Definition at line 117 of file averagesceneitem.h.
| QString DISPLIB::AverageSceneItem::m_sChannelName |
The channel name.
Definition at line 101 of file averagesceneitem.h.