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 //=========================================================================================================
81 LayoutScene(QGraphicsView* view,
82 QObject* parent = 0);
83
84protected:
85 //=========================================================================================================
91 void wheelEvent(QGraphicsSceneWheelEvent* event);
92
93 //=========================================================================================================
99 void mouseDoubleClickEvent(QGraphicsSceneMouseEvent* mouseEvent);
100
101 //=========================================================================================================
107 void mousePressEvent(QGraphicsSceneMouseEvent* mouseEvent);
108
109 //=========================================================================================================
115 void mouseMoveEvent(QGraphicsSceneMouseEvent* mouseEvent);
116
117 //=========================================================================================================
123 void mouseReleaseEvent(QGraphicsSceneMouseEvent* mouseEvent);
124
125 //=========================================================================================================
131 void keyPressEvent(QKeyEvent* keyEvent);
132
133 //=========================================================================================================
139 void keyReleaseEvent(QKeyEvent* keyEvent);
140
141 //=========================================================================================================
149 bool event(QEvent* event);
150
151 //=========================================================================================================
159 bool gestureEvent(QGestureEvent* event);
160
161 //=========================================================================================================
165 void panTriggered(QPanGesture*);
166
167 //=========================================================================================================
171 void pinchTriggered(QPinchGesture*);
172
173 //=========================================================================================================
177 void swipeTriggered(QSwipeGesture*);
178
179 //=========================================================================================================
188 bool eventFilter(QObject* object, QEvent* event);
189
190 QGraphicsView* m_qvView;
191 //QList<QGraphicsItem *> m_selectedItems; /**< The currently selected items during extended selection mode.*/
192
194 //bool m_bExtendedSelectionMode; /**< Flag whether the extended selection mode.*/
196};
197} // NAMESPACE DISPLIB
198
199#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 *)