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);
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) {
194 if(val > halfH) val = halfH;
195 else if(val < -halfH) val = -halfH;
198 path.lineTo(QPointF(xPos, centerY - val));
201 painter->drawPath(path);
219 double xStep =
boundingRect.width() /
static_cast<double>(totalCols);
222 pen.setStyle(Qt::SolidLine);
223 pen.setColor(Qt::red);
225 pen.setCosmetic(
true);
226 painter->setPen(pen);
240 painter->drawPath(path);
Per-modality vertical-scale spinbox panel (one spin per channel type).
QGraphicsObject painting one channel's averaged evoked trace at its sensor position.
Primitive scalar typedefs and forward-compatible aliases backing the FIFF type system.
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
QMap< qint32, float > m_scaleMap
void paintAveragePath(QPainter *painter)
QPair< int, int > m_firstLastSample
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
void setDefaultColor(const QColor &viewColor)
QRectF boundingRect() const
QMap< QString, QColor > m_qMapAverageColor