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//=============================================================================================================
61{
62public:
64 {
65 }
67 {
68 }
70
71 QList<QString> m_sViewsToApply;
72 QList<QString> m_sChannelName;
73 QList<int> m_iChannelNumber;
74 QList<int> m_iChannelKind;
75 QList<int> m_iChannelUnit;
76 QList<QPointF> m_qpChannelPosition;
78};
79
83class DISPSHARED_EXPORT SelectionSceneItem : public QGraphicsItem
84{
85public:
86 typedef QSharedPointer<SelectionSceneItem> SPtr;
87 typedef QSharedPointer<const SelectionSceneItem> ConstSPtr;
88
89 //=========================================================================================================
101 SelectionSceneItem(QString channelName,
102 int channelNumber,
103 QPointF channelPosition,
104 int channelKind,
105 int channelUnit,
106 QColor channelColor = Qt::blue,
107 bool bIsBadChannel = false);
108
109 //=========================================================================================================
115 QRectF boundingRect() const;
116
117 //=========================================================================================================
125 void paint(QPainter* painter, const QStyleOptionGraphicsItem* option, QWidget* widget);
126
135};
136
137} // NAMESPACE DISPLIB
138#ifndef metatype_DISPLIB_selectionitem
139#define metatype_DISPLIB_selectionitem
142#endif
143
144#endif // SELECTIONSCENEITEM_H
Export macros and build-info hooks for the DISPLIB shared library.
#define DISPSHARED_EXPORT
Definition disp_global.h:38
Q_DECLARE_METATYPE(DISPLIB::SelectionItem)
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