v2.0.0
Loading...
Searching...
No Matches
selectionsceneitem.h
Go to the documentation of this file.
1//=============================================================================================================
35
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:
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
90class DISPSHARED_EXPORT SelectionSceneItem : public QGraphicsItem
91{
92
93public:
94 typedef QSharedPointer<SelectionSceneItem> SPtr;
95 typedef QSharedPointer<const SelectionSceneItem> ConstSPtr;
96
97 //=========================================================================================================
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 //=========================================================================================================
113 QRectF boundingRect() const;
114
115 //=========================================================================================================
119 void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget);
120
129};
130
131} // NAMESPACE DISPLIB
132#ifndef metatype_DISPLIB_selectionitem
133#define metatype_DISPLIB_selectionitem
136#endif
137
138#endif // SELECTIONSCENEITEM_H
Q_DECLARE_METATYPE(DISPLIB::SelectionItem)
disp library export/import macros.
#define DISPSHARED_EXPORT
Definition disp_global.h:51
2-D display widgets and visualisation helpers (charts, topography, colour maps).
The SelectionSceneItem class provides a new data structure for visualizing channels in a 2D layout.
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