v2.0.0
Loading...
Searching...
No Matches
layoutscene.h
Go to the documentation of this file.
1//=============================================================================================================
21
22#ifndef LAYOUTSCENE_H
23#define LAYOUTSCENE_H
24
25//=============================================================================================================
26// INCLUDES
27//=============================================================================================================
28
29#include "../../disp_global.h"
30
31//=============================================================================================================
32// QT INCLUDES
33//=============================================================================================================
34
35#include <QGraphicsScene>
36
37//=============================================================================================================
38// EIGEN INCLUDES
39//=============================================================================================================
40
41//=============================================================================================================
42// FORWARD DECLARATIONS
43//=============================================================================================================
44
45class QGestureEvent;
46class QPanGesture;
47class QPinchGesture;
48class QSwipeGesture;
49
50//=============================================================================================================
51// DEFINE NAMESPACE DISPLIB
52//=============================================================================================================
53
54namespace DISPLIB
55{
56
57//=============================================================================================================
58// DISPLIB FORWARD DECLARATIONS
59//=============================================================================================================
60
61//=============================================================================================================
69class DISPSHARED_EXPORT LayoutScene : public QGraphicsScene
70{
71 Q_OBJECT
72
73public:
74 //=========================================================================================================
78 LayoutScene(QGraphicsView* view,
79 QObject *parent = 0);
80
81protected:
82 //=========================================================================================================
86 void wheelEvent(QGraphicsSceneWheelEvent* event);
87
88 //=========================================================================================================
92 void mouseDoubleClickEvent(QGraphicsSceneMouseEvent* mouseEvent);
93
94 //=========================================================================================================
98 void mousePressEvent(QGraphicsSceneMouseEvent *mouseEvent);
99
100 //=========================================================================================================
104 void mouseMoveEvent(QGraphicsSceneMouseEvent *mouseEvent);
105
106 //=========================================================================================================
110 void mouseReleaseEvent(QGraphicsSceneMouseEvent *mouseEvent);
111
112 //=========================================================================================================
116 void keyPressEvent(QKeyEvent *keyEvent);
117
118 //=========================================================================================================
122 void keyReleaseEvent(QKeyEvent *keyEvent);
123
124 //=========================================================================================================
128 bool event(QEvent *event);
129
130 //=========================================================================================================
134 bool gestureEvent(QGestureEvent *event);
135
136 //=========================================================================================================
140 void panTriggered(QPanGesture*);
141
142 //=========================================================================================================
146 void pinchTriggered(QPinchGesture*);
147
148 //=========================================================================================================
152 void swipeTriggered(QSwipeGesture*);
153
154 //=========================================================================================================
161 bool eventFilter(QObject *object, QEvent *event);
162
163 QGraphicsView* m_qvView;
164 //QList<QGraphicsItem *> m_selectedItems; /**< The currently selected items during extended selection mode.*/
165
167 //bool m_bExtendedSelectionMode; /**< Flag whether the extended selection mode.*/
169};
170} // NAMESPACE DISPLIB
171
172#endif // LAYOUTSCENE_H
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).
QGraphicsView * m_qvView
void keyPressEvent(QKeyEvent *keyEvent)
void mousePressEvent(QGraphicsSceneMouseEvent *mouseEvent)
LayoutScene(QGraphicsView *view, QObject *parent=0)
bool eventFilter(QObject *object, QEvent *event)
void mouseMoveEvent(QGraphicsSceneMouseEvent *mouseEvent)
void panTriggered(QPanGesture *)
void swipeTriggered(QSwipeGesture *)
void mouseDoubleClickEvent(QGraphicsSceneMouseEvent *mouseEvent)
void wheelEvent(QGraphicsSceneWheelEvent *event)
bool gestureEvent(QGestureEvent *event)
bool event(QEvent *event)
void keyReleaseEvent(QKeyEvent *keyEvent)
void mouseReleaseEvent(QGraphicsSceneMouseEvent *mouseEvent)
void pinchTriggered(QPinchGesture *)