MNE-CPP  beta 1.0
geometryview.h
Go to the documentation of this file.
1 //=============================================================================================================
36 #ifndef GEOMETRYVIEW_H
37 #define GEOMETRYVIEW_H
38 
39 //*************************************************************************************************************
40 //=============================================================================================================
41 // INCLUDES
42 //=============================================================================================================
43 
44 #include "disp3D_global.h"
45 
46 
47 //*************************************************************************************************************
48 //=============================================================================================================
49 // MNE INCLUDES
50 //=============================================================================================================
51 
52 #include <fs/annotation.h>
53 #include <mne/mne_sourcespace.h>
54 
55 
56 //*************************************************************************************************************
57 //=============================================================================================================
58 // QT INCLUDES
59 //=============================================================================================================
60 
61 #include "qglview.h"
62 #include <QGeometryData>
63 #include <QGLColorMaterial>
64 
65 
66 //*************************************************************************************************************
67 //=============================================================================================================
68 // DEFINE NAMESPACE DISP3DLIB
69 //=============================================================================================================
70 
71 namespace DISP3DLIB
72 {
73 
74 //*************************************************************************************************************
75 //=============================================================================================================
76 // USED NAMESPACES
77 //=============================================================================================================
78 
79 using namespace MNELIB;
80 using namespace FSLIB;
81 
82 
83 //QT_BEGIN_NAMESPACE
84 //class QGLSceneNode;
85 //QT_END_NAMESPACE
86 
87 //=============================================================================================================
93 class DISP3DSHARED_EXPORT GeometryView : public QGLView
94 {
95  Q_OBJECT
96 public:
97 
98  //=========================================================================================================
105  GeometryView(const MNESourceSpace &p_sourceSpace, QWindow *parent = 0);
106 
107  //=========================================================================================================
111  ~GeometryView();
112 
113 protected:
114  //=========================================================================================================
120  void initializeGL(QGLPainter *painter);
121 
122  //=========================================================================================================
128  void paintGL(QGLPainter *painter);
129 
130  //=========================================================================================================
136  void keyPressEvent(QKeyEvent *e);
137 
138  //=========================================================================================================
144  void mouseMoveEvent(QMouseEvent *e);
145 
146  //=========================================================================================================
152  void mousePressEvent(QMouseEvent *e);
153 
154 private:
155 // MNEForwardSolution m_forwardSolution; /**< Holds the forward soultion -> ToDo change this to shraed data pointer */
156 
157  QGLLightModel *m_pLightModel;
158  QGLLightParameters *m_pLightParametersScene;
160  QGLColorMaterial material;
161 
162  QVector<Annotation::SPtr> m_vecAnnotation;
163 
164  QVector3D m_vecBoundingBoxMin;
165  QVector3D m_vecBoundingBoxMax;
166  QVector3D m_vecBoundingBoxCenter;
168  MNESourceSpace m_sourceSpace;
170  bool m_bStereo;
171 
172  float m_fOffsetZ;
173  float m_fOffsetZEye;
175  QGLSceneNode *m_pSceneNodeBrain;
176  QGLSceneNode *m_pSceneNode;
178 // QGLCamera *m_pCameraFrontal; /**< frontal camera. */
179 };
180 
181 } // NAMESPACE
182 
183 #endif // GEOMETRYVIEW_H
Source Space descritpion.
disp3D library export/import macros.
Annotation class declaration.
Geometry View.
Definition: geometryview.h:93
MNESourceSpace class declaration.
#define DISP3DSHARED_EXPORT
Definition: disp3D_global.h:57