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

Public Types

typedef QSharedPointer< SelectionSceneItemSPtr
 
typedef QSharedPointer< const SelectionSceneItemConstSPtr
 

Public Member Functions

 SelectionSceneItem (QString channelName, int channelNumber, QPointF channelPosition, int channelKind, int channelUnit, QColor channelColor=Qt::blue, bool bIsBadChannel=false)
 
QRectF boundingRect () const
 
void paint (QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget)
 

Public Attributes

QString m_sChannelName
 
int m_iChannelNumber
 
int m_iChannelKind
 
int m_iChannelUnit
 
QPointF m_qpChannelPosition
 
QColor m_cChannelColor
 
bool m_bHighlightItem
 
bool m_bIsBadChannel
 

Detailed Description

Definition at line 87 of file selectionsceneitem.h.

Inheritance diagram for DISPLIB::SelectionSceneItem:
Inheritance graph

Member Typedef Documentation

◆ ConstSPtr

Const shared pointer type for SelectionSceneItem.

Definition at line 92 of file selectionsceneitem.h.

◆ SPtr

Shared pointer type for SelectionSceneItem.

Definition at line 91 of file selectionsceneitem.h.

Constructor & Destructor Documentation

◆ SelectionSceneItem()

SelectionSceneItem::SelectionSceneItem ( QString  channelName,
int  channelNumber,
QPointF  channelPosition,
int  channelKind,
int  channelUnit,
QColor  channelColor = Qt::blue,
bool  bIsBadChannel = false 
)

Constructs a SelectionSceneItem.

Definition at line 63 of file selectionsceneitem.cpp.

Member Function Documentation

◆ boundingRect()

QRectF SelectionSceneItem::boundingRect ( ) const

Returns the bounding rect of the electrode item. This rect describes the area which the item uses to plot in.

Definition at line 85 of file selectionsceneitem.cpp.

◆ paint()

void SelectionSceneItem::paint ( QPainter *  painter,
const QStyleOptionGraphicsItem *  option,
QWidget *  widget 
)

Reimplemented paint function.

Definition at line 92 of file selectionsceneitem.cpp.

Member Data Documentation

◆ m_bHighlightItem

bool DISPLIB::SelectionSceneItem::m_bHighlightItem

Whether this item is to be highlighted.

Definition at line 124 of file selectionsceneitem.h.

◆ m_bIsBadChannel

bool DISPLIB::SelectionSceneItem::m_bIsBadChannel

Whether this item is a bad channel.

Definition at line 125 of file selectionsceneitem.h.

◆ m_cChannelColor

QColor DISPLIB::SelectionSceneItem::m_cChannelColor

The current channel color.

Definition at line 123 of file selectionsceneitem.h.

◆ m_iChannelKind

int DISPLIB::SelectionSceneItem::m_iChannelKind

The channel kind.

Definition at line 120 of file selectionsceneitem.h.

◆ m_iChannelNumber

int DISPLIB::SelectionSceneItem::m_iChannelNumber

The channel number.

Definition at line 119 of file selectionsceneitem.h.

◆ m_iChannelUnit

int DISPLIB::SelectionSceneItem::m_iChannelUnit

The channel unit.

Definition at line 121 of file selectionsceneitem.h.

◆ m_qpChannelPosition

QPointF DISPLIB::SelectionSceneItem::m_qpChannelPosition

The channel's 2D position in the scene.

Definition at line 122 of file selectionsceneitem.h.

◆ m_sChannelName

QString DISPLIB::SelectionSceneItem::m_sChannelName

The channel's name.

Definition at line 118 of file selectionsceneitem.h.


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