MNE-CPP  beta 1.0
tmsiimpedancescene.h
Go to the documentation of this file.
1 //=============================================================================================================
37 #ifndef TMSIIMPEDANCESCENE_H
38 #define TMSIIMPEDANCESCENE_H
39 
40 //*************************************************************************************************************
41 //=============================================================================================================
42 // INCLUDES
43 //=============================================================================================================
44 #include <tmsielectrodeitem.h>
45 
46 
47 //*************************************************************************************************************
48 //=============================================================================================================
49 // QT INCLUDES
50 //=============================================================================================================
51 #include <QGraphicsScene>
52 #include <QGraphicsView>
53 #include <QGraphicsSceneMouseEvent>
54 
55 
56 //*************************************************************************************************************
57 //=============================================================================================================
58 // DEFINE NAMESPACE TMSIPlugin
59 //=============================================================================================================
60 
61 namespace TMSIPlugin
62 {
63 
64 //=============================================================================================================
70 class TMSIImpedanceScene : public QGraphicsScene
71 {
72  Q_OBJECT
73 
74 public:
75  //=========================================================================================================
79  explicit TMSIImpedanceScene(QGraphicsView* view, QObject *parent = 0);
80 
81 private:
82  QPointF m_mousePosition;
83  bool m_bRightMouseKeyPressed;
84  QGraphicsView* m_qvView;
86  //=========================================================================================================
90  void mousePressEvent(QGraphicsSceneMouseEvent * event);
91 
92  //=========================================================================================================
96  void mouseMoveEvent(QGraphicsSceneMouseEvent * event);
97 
98  //=========================================================================================================
102  void mouseReleaseEvent(QGraphicsSceneMouseEvent * event);
103 
104  //=========================================================================================================
108  void scaleElectrodePositions(double scaleFactor);
109 
110 };
111 
112 } // NAMESPACE
113 
114 #endif // TMSIIMPEDANCESCENE_H
Contains the declaration of the TMSIElectrodeItem class.
The TMSIImpedanceScene class provides a reimplemented QGraphicsScene.
TMSIImpedanceScene(QGraphicsView *view, QObject *parent=0)