MNE-CPP 0.1.9
A Framework for Electrophysiology
Loading...
Searching...
No Matches
selectionsceneitem.h
Go to the documentation of this file.
1//=============================================================================================================
36#ifndef SELECTIONSCENEITEM_H
37#define SELECTIONSCENEITEM_H
38
39//=============================================================================================================
40// INCLUDES
41//=============================================================================================================
42
43#include "../../disp_global.h"
44
45//=============================================================================================================
46// QT INCLUDES
47//=============================================================================================================
48
49#include <QGraphicsItem>
50
51//=============================================================================================================
52// FORWARD DECLARATIONS
53//=============================================================================================================
54
55//=============================================================================================================
56// DEFINE NAMESPACE DISPLIB
57//=============================================================================================================
58
59namespace DISPLIB
60{
61
62//=============================================================================================================
63// DISPLIB FORWARD DECLARATIONS
64//=============================================================================================================
65
66//=============================================================================================================
73public:
74 SelectionItem() {}
77
78 QList<QString> m_sViewsToApply;
79 QList<QString> m_sChannelName;
80 QList<int> m_iChannelNumber;
81 QList<int> m_iChannelKind;
82 QList<int> m_iChannelUnit;
83 QList<QPointF> m_qpChannelPosition;
85};
86
87class DISPSHARED_EXPORT SelectionSceneItem : public QGraphicsItem
88{
89
90public:
91 typedef QSharedPointer<SelectionSceneItem> SPtr;
92 typedef QSharedPointer<const SelectionSceneItem> ConstSPtr;
94 //=========================================================================================================
98 SelectionSceneItem(QString channelName,
99 int channelNumber,
100 QPointF channelPosition,
101 int channelKind,
102 int channelUnit,
103 QColor channelColor = Qt::blue,
104 bool bIsBadChannel = false);
105
106 //=========================================================================================================
110 QRectF boundingRect() const;
111
112 //=========================================================================================================
116 void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget);
117
126};
127
128} // NAMESPACE DISPLIB
129#ifndef metatype_DISPLIB_selectionitem
130#define metatype_DISPLIB_selectionitem
133#endif
134
135#endif // SELECTIONSCENEITEM_H
#define DISPSHARED_EXPORT
Definition disp_global.h:55
Q_DECLARE_METATYPE(Eigen::MatrixXf)
The SelectionSceneItem class provides a new data structure for visualizing channels in a 2D layout.
QList< QPointF > m_qpChannelPosition
QList< QString > m_sChannelName
QSharedPointer< SelectionSceneItem > SPtr
QSharedPointer< const SelectionSceneItem > ConstSPtr