50 const QPointF& channelPosition,
101 painter->setRenderHint(QPainter::Antialiasing,
true);
104 painter->setOpacity(0.20);
124 pen.setColor(Qt::red);
126 pen.setCosmetic(
true);
128 QFont f = painter->font();
132 painter->setPen(pen);
157 double dScaleY = (
boundingRect.height()) / (2 * fMaxValue);
160 for (
int dataIndex = 0; dataIndex <
m_lAverageData.size(); ++dataIndex) {
165 const double* averageData =
m_lAverageData.at(dataIndex).second.first;
171 double xStep =
boundingRect.width() /
static_cast<double>(totalCols);
177 pen.setStyle(Qt::SolidLine);
185 pen.setCosmetic(
true);
186 painter->setPen(pen);
188 for (
int i = 0; i < totalCols; ++i) {
196 else if (val < -halfH)
200 path.lineTo(QPointF(xPos, centerY - val));
203 painter->drawPath(path);
221 double xStep =
boundingRect.width() /
static_cast<double>(totalCols);
224 pen.setStyle(Qt::SolidLine);
225 pen.setColor(Qt::red);
227 pen.setCosmetic(
true);
228 painter->setPen(pen);
242 painter->drawPath(path);
Primitive scalar typedefs and forward-compatible aliases backing the FIFF type system.
Per-modality vertical-scale spinbox panel (one spin per channel type).
QGraphicsObject painting one channel's averaged evoked trace at its sensor position.
2-D display widgets and visualisation helpers (charts, topography, colour maps).
float getScalingValue(const QMap< qint32, float > &qMapChScaling, int iChannelKind, int iChannelUnit)
virtual void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget)
void mousePressEvent(QGraphicsSceneMouseEvent *event)
QRectF m_rectBoundingRect
void paintStimLine(QPainter *painter)
QList< QPair< QString, RowVectorPair > > m_lAverageData
void paintAveragePath(QPainter *painter)
void sceneUpdateRequested()
int m_iTotalNumberChannels
QPointF m_qpChannelPosition
AverageSceneItem(const QString &channelName, int channelNumber, const QPointF &channelPosition, int channelKind, int channelUnit, const QColor &color=Qt::yellow)
void mouseReleaseEvent(QGraphicsSceneMouseEvent *event)
QMap< QString, bool > m_qMapAverageActivation
QPair< int, int > m_firstLastSample
void setDefaultColor(const QColor &viewColor)
QRectF boundingRect() const
QMap< QString, QColor > m_qMapAverageColor
QMap< qint32, float > m_scaleMap