v2.0.0
Loading...
Searching...
No Matches
selectionsceneitem.h
Go to the documentation of this file.
1//=============================================================================================================
21
22#ifndef SELECTIONSCENEITEM_H
23#define SELECTIONSCENEITEM_H
24
25//=============================================================================================================
26// INCLUDES
27//=============================================================================================================
28
29#include "../../disp_global.h"
30
31//=============================================================================================================
32// QT INCLUDES
33//=============================================================================================================
34
35#include <QGraphicsItem>
36
37//=============================================================================================================
38// FORWARD DECLARATIONS
39//=============================================================================================================
40
41//=============================================================================================================
42// DEFINE NAMESPACE DISPLIB
43//=============================================================================================================
44
45namespace DISPLIB
46{
47
48//=============================================================================================================
49// DISPLIB FORWARD DECLARATIONS
50//=============================================================================================================
51
52//=============================================================================================================
61public:
65
66 QList<QString> m_sViewsToApply;
67 QList<QString> m_sChannelName;
68 QList<int> m_iChannelNumber;
69 QList<int> m_iChannelKind;
70 QList<int> m_iChannelUnit;
71 QList<QPointF> m_qpChannelPosition;
73};
74
78class DISPSHARED_EXPORT SelectionSceneItem : public QGraphicsItem
79{
80
81public:
82 typedef QSharedPointer<SelectionSceneItem> SPtr;
83 typedef QSharedPointer<const SelectionSceneItem> ConstSPtr;
84
85 //=========================================================================================================
89 SelectionSceneItem(QString channelName,
90 int channelNumber,
91 QPointF channelPosition,
92 int channelKind,
93 int channelUnit,
94 QColor channelColor = Qt::blue,
95 bool bIsBadChannel = false);
96
97 //=========================================================================================================
101 QRectF boundingRect() const;
102
103 //=========================================================================================================
107 void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget);
108
117};
118
119} // NAMESPACE DISPLIB
120#ifndef metatype_DISPLIB_selectionitem
121#define metatype_DISPLIB_selectionitem
124#endif
125
126#endif // SELECTIONSCENEITEM_H
Q_DECLARE_METATYPE(DISPLIB::SelectionItem)
Export macros and build-info hooks for the DISPLIB shared library.
#define DISPSHARED_EXPORT
Definition disp_global.h:38
2-D display widgets and visualisation helpers (charts, topography, colour maps).
Value type describing one named selection group (label + list of channel names).
QList< QString > m_sViewsToApply
QList< QPointF > m_qpChannelPosition
QList< QString > m_sChannelName
void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget)
SelectionSceneItem(QString channelName, int channelNumber, QPointF channelPosition, int channelKind, int channelUnit, QColor channelColor=Qt::blue, bool bIsBadChannel=false)
QSharedPointer< SelectionSceneItem > SPtr
QSharedPointer< const SelectionSceneItem > ConstSPtr