MNE-CPP  0.1.9
A Framework for Electrophysiology
Signals | Public Member Functions | Public Attributes | Protected Member Functions | List of all members
DISPLIB::AverageSceneItem Class Reference

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)
 

Detailed Description

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.

Inheritance diagram for DISPLIB::AverageSceneItem:
Inheritance graph

Constructor & Destructor Documentation

◆ AverageSceneItem()

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.

Member Function Documentation

◆ boundingRect()

QRectF AverageSceneItem::boundingRect ( ) const

Reimplemented virtual functions

Definition at line 90 of file averagesceneitem.cpp.

◆ paintAveragePath()

void AverageSceneItem::paintAveragePath ( QPainter *  painter)
protected

Create a plot path and paint the average data

Parameters
[in]painterThe painter used to plot in this item.

Definition at line 167 of file averagesceneitem.cpp.

◆ paintStimLine()

void AverageSceneItem::paintStimLine ( QPainter *  painter)
protected

Create a plot path and paint the average data

Parameters
[in]painterThe painter used to plot in this item.

Definition at line 239 of file averagesceneitem.cpp.

◆ sceneUpdateRequested

void DISPLIB::AverageSceneItem::sceneUpdateRequested ( )
signal

Signal to request a scene update.

◆ setDefaultColor()

void AverageSceneItem::setDefaultColor ( const QColor &  viewColor)

Sets the item color to the input parameter viewColor

Parameters
[in]viewColordesired item color.

Definition at line 274 of file averagesceneitem.cpp.

Member Data Documentation

◆ m_bIsBad

bool DISPLIB::AverageSceneItem::m_bIsBad

Whether this channel is bad.

Definition at line 121 of file averagesceneitem.h.

◆ m_colorDefault

QColor DISPLIB::AverageSceneItem::m_colorDefault

The color for the avergaed signal.

Definition at line 134 of file averagesceneitem.h.

◆ m_firstLastSample

QPair<int,int> DISPLIB::AverageSceneItem::m_firstLastSample

The first and last sample.

Definition at line 126 of file averagesceneitem.h.

◆ m_iChannelKind

int DISPLIB::AverageSceneItem::m_iChannelKind

The channel kind.

Definition at line 114 of file averagesceneitem.h.

◆ m_iChannelNumber

int DISPLIB::AverageSceneItem::m_iChannelNumber

The channel number.

Definition at line 113 of file averagesceneitem.h.

◆ m_iChannelUnit

int DISPLIB::AverageSceneItem::m_iChannelUnit

The channel unit.

Definition at line 115 of file averagesceneitem.h.

◆ m_iFontTextSize

int DISPLIB::AverageSceneItem::m_iFontTextSize

The font text size of the electrode names.

Definition at line 117 of file averagesceneitem.h.

◆ m_iMaxHeigth

int DISPLIB::AverageSceneItem::m_iMaxHeigth

The max heigth.

Definition at line 119 of file averagesceneitem.h.

◆ m_iMaxWidth

int DISPLIB::AverageSceneItem::m_iMaxWidth

The max width.

Definition at line 118 of file averagesceneitem.h.

◆ m_iTotalNumberChannels

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.

◆ m_lAverageData

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.

◆ m_qMapAverageActivation

QMap<QString, bool> DISPLIB::AverageSceneItem::m_qMapAverageActivation

The average activation information.

Definition at line 129 of file averagesceneitem.h.

◆ m_qMapAverageColor

QMap<QString, QColor> DISPLIB::AverageSceneItem::m_qMapAverageColor

The average color information.

Definition at line 130 of file averagesceneitem.h.

◆ m_qpChannelPosition

QPointF DISPLIB::AverageSceneItem::m_qpChannelPosition

The channels 2D position in the scene.

Definition at line 123 of file averagesceneitem.h.

◆ m_rectBoundingRect

QRectF DISPLIB::AverageSceneItem::m_rectBoundingRect

The bounding rect.

Definition at line 132 of file averagesceneitem.h.

◆ m_scaleMap

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.

◆ m_sChannelName

QString DISPLIB::AverageSceneItem::m_sChannelName

The channel name.

Definition at line 112 of file averagesceneitem.h.


The documentation for this class was generated from the following files: