Graphics item representing a selectable electrode or channel in a 2-D layout scene. More...
#include <selectionsceneitem.h>
Public Types | |
| typedef QSharedPointer< SelectionSceneItem > | SPtr |
| typedef QSharedPointer< const SelectionSceneItem > | ConstSPtr |
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 |
Graphics item representing a selectable electrode or channel in a 2-D layout scene.
Definition at line 83 of file selectionsceneitem.h.

| typedef QSharedPointer<const SelectionSceneItem> DISPLIB::SelectionSceneItem::ConstSPtr |
Const shared pointer type for SelectionSceneItem.
Definition at line 87 of file selectionsceneitem.h.
| typedef QSharedPointer<SelectionSceneItem> DISPLIB::SelectionSceneItem::SPtr |
Shared pointer type for SelectionSceneItem.
Definition at line 86 of file selectionsceneitem.h.
| SelectionSceneItem::SelectionSceneItem | ( | QString | channelName, |
| int | channelNumber, | ||
| QPointF | channelPosition, | ||
| int | channelKind, | ||
| int | channelUnit, | ||
| QColor | channelColor = Qt::blue, | ||
| bool | bIsBadChannel = false ) |
Constructs a SelectionSceneItem.
| [in] | channelName | Name of the channel shown by this item. |
| [in] | channelNumber | Index of the channel in the measurement info. |
| [in] | channelPosition | 2-D layout position (scaled by 10 when painted). |
| [in] | channelKind | FIFF channel kind (e.g. FIFFV_MEG_CH). |
| [in] | channelUnit | FIFF unit of the channel data. |
| [in] | channelColor | Fill colour of the electrode marker (default Qt::blue). |
| [in] | bIsBadChannel | True to paint the channel as bad (red) (default false). |
Definition at line 42 of file selectionsceneitem.cpp.
| 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 64 of file selectionsceneitem.cpp.
| void SelectionSceneItem::paint | ( | QPainter * | painter, |
| const QStyleOptionGraphicsItem * | option, | ||
| QWidget * | widget ) |
Reimplemented paint function.
| [in] | painter | Painter used to draw the electrode marker and label. |
| [in] | option | Style options (unused). |
| [in] | widget | Widget being painted on (unused). |
Definition at line 71 of file selectionsceneitem.cpp.
| bool DISPLIB::SelectionSceneItem::m_bHighlightItem |
Whether this item is to be highlighted.
Definition at line 133 of file selectionsceneitem.h.
| bool DISPLIB::SelectionSceneItem::m_bIsBadChannel |
Whether this item is a bad channel.
Definition at line 134 of file selectionsceneitem.h.
| QColor DISPLIB::SelectionSceneItem::m_cChannelColor |
The current channel color.
Definition at line 132 of file selectionsceneitem.h.
| int DISPLIB::SelectionSceneItem::m_iChannelKind |
The channel kind.
Definition at line 129 of file selectionsceneitem.h.
| int DISPLIB::SelectionSceneItem::m_iChannelNumber |
The channel number.
Definition at line 128 of file selectionsceneitem.h.
| int DISPLIB::SelectionSceneItem::m_iChannelUnit |
The channel unit.
Definition at line 130 of file selectionsceneitem.h.
| QPointF DISPLIB::SelectionSceneItem::m_qpChannelPosition |
The channel's 2D position in the scene.
Definition at line 131 of file selectionsceneitem.h.
| QString DISPLIB::SelectionSceneItem::m_sChannelName |
The channel's name.
Definition at line 127 of file selectionsceneitem.h.