MNE-CPP 0.1.9
A Framework for Electrophysiology
Loading...
Searching...
No Matches
layoutscene.h
Go to the documentation of this file.
1//=============================================================================================================
36#ifndef LAYOUTSCENE_H
37#define LAYOUTSCENE_H
38
39//=============================================================================================================
40// INCLUDES
41//=============================================================================================================
42
43#include "../../disp_global.h"
44
45//=============================================================================================================
46// QT INCLUDES
47//=============================================================================================================
48
49#include <QGraphicsScene>
50
51//=============================================================================================================
52// EIGEN INCLUDES
53//=============================================================================================================
54
55//=============================================================================================================
56// FORWARD DECLARATIONS
57//=============================================================================================================
58
59class QGestureEvent;
60class QPanGesture;
61class QPinchGesture;
62class QSwipeGesture;
63
64//=============================================================================================================
65// DEFINE NAMESPACE DISPLIB
66//=============================================================================================================
67
68namespace DISPLIB
69{
70
71//=============================================================================================================
72// DISPLIB FORWARD DECLARATIONS
73//=============================================================================================================
74
75//=============================================================================================================
81class DISPSHARED_EXPORT LayoutScene : public QGraphicsScene
82{
83 Q_OBJECT
84
85public:
86 //=========================================================================================================
90 LayoutScene(QGraphicsView* view,
91 QObject *parent = 0);
92
93protected:
94 //=========================================================================================================
98 void wheelEvent(QGraphicsSceneWheelEvent* event);
99
100 //=========================================================================================================
104 void mouseDoubleClickEvent(QGraphicsSceneMouseEvent* mouseEvent);
105
106 //=========================================================================================================
110 void mousePressEvent(QGraphicsSceneMouseEvent *mouseEvent);
111
112 //=========================================================================================================
116 void mouseMoveEvent(QGraphicsSceneMouseEvent *mouseEvent);
117
118 //=========================================================================================================
122 void mouseReleaseEvent(QGraphicsSceneMouseEvent *mouseEvent);
123
124 //=========================================================================================================
128 void keyPressEvent(QKeyEvent *keyEvent);
129
130 //=========================================================================================================
134 void keyReleaseEvent(QKeyEvent *keyEvent);
135
136 //=========================================================================================================
140 bool event(QEvent *event);
141
142 //=========================================================================================================
146 bool gestureEvent(QGestureEvent *event);
147
148 //=========================================================================================================
152 void panTriggered(QPanGesture*);
153
154 //=========================================================================================================
158 void pinchTriggered(QPinchGesture*);
159
160 //=========================================================================================================
164 void swipeTriggered(QSwipeGesture*);
165
166 //=========================================================================================================
173 bool eventFilter(QObject *object, QEvent *event);
174
175 QGraphicsView* m_qvView;
176 //QList<QGraphicsItem *> m_selectedItems; /**< The currently selected items during extended selection mode.*/
177
179 //bool m_bExtendedSelectionMode; /**< Flag whether the extended selection mode.*/
181};
182} // NAMESPACE DISPLIB
183
184#endif // LAYOUTSCENE_H
#define DISPSHARED_EXPORT
Definition disp_global.h:55
The LayoutScene class provides a reimplemented QGraphicsScene for 2D layout plotting....
Definition layoutscene.h:82
QGraphicsView * m_qvView
void swipeTriggered(QSwipeGesture *)