MNE-CPP  beta 1.0
brainhemisphere.h
Go to the documentation of this file.
1 //=============================================================================================================
36 #ifndef BRAINHEMISPHERE_H
37 #define BRAINHEMISPHERE_H
38 
39 
40 //*************************************************************************************************************
41 //=============================================================================================================
42 // INCLUDES
43 //=============================================================================================================
44 
45 #include "disp3DNew_global.h"
46 
47 #include "brainsurfacemesh.h"
48 #include "../helpers/renderableentity.h"
49 
50 #include <fs/surfaceset.h>
51 
52 
53 //*************************************************************************************************************
54 //=============================================================================================================
55 // QT INCLUDES
56 //=============================================================================================================
57 
58 #include <Qt3DRenderer/qt3drenderer_global.h>
59 #include <Qt3DRenderer/QPhongMaterial>
60 #include <Qt3DRenderer/QDiffuseMapMaterial>
61 #include <Qt3DRenderer/QPerVertexColorMaterial>
62 
63 #include <QRgb>
64 
65 
66 //*************************************************************************************************************
67 //=============================================================================================================
68 // Eigen INCLUDES
69 //=============================================================================================================
70 
71 
72 //*************************************************************************************************************
73 //=============================================================================================================
74 // DEFINE NAMESPACE DISP3DLIB
75 //=============================================================================================================
76 
77 namespace DISP3DNEWLIB
78 {
79 
80 //*************************************************************************************************************
81 //=============================================================================================================
82 // FORWARD DECLARATIONS
83 //=============================================================================================================
84 
85 
86 //*************************************************************************************************************
87 //=============================================================================================================
88 // USED NAMESPACES
89 //=============================================================================================================
90 
91 using namespace Qt3D;
92 using namespace FSLIB;
93 
94 
95 //*************************************************************************************************************
96 //=============================================================================================================
97 // FORWARD DECLARATIONS
98 //=============================================================================================================
99 
100 
101 //=============================================================================================================
107 class DISP3DNEWSHARED_EXPORT BrainHemisphere : public RenderableEntity
108 {
109  Q_OBJECT
110 public:
111  typedef QSharedPointer<BrainHemisphere> SPtr;
112  typedef QSharedPointer<const BrainHemisphere> ConstSPtr;
114  //=========================================================================================================
120  explicit BrainHemisphere(QNode *parent = 0);
121 
122  //=========================================================================================================
130  explicit BrainHemisphere(const Surface &surf, const QMap<int, QColor> &qmVertexColors, QNode *parent = 0);
131 
132  void updateActivation(const QMap<int, QColor> &vertexColor);
133 
134 protected:
135  void init();
136 
137  BrainSurfaceMesh* m_pSurfaceMesh;
138 
139  Surface m_surface;
140  QMap<int, QColor> m_qmVertexColors;
141 
142 private:
143 };
144 
145 } // NAMESPACE
146 
147 #endif // HEMISPHERE_H
Holds the data of one hemisphere in form of a mesh.
SurfaceSet class declaration.
QSharedPointer< const BrainHemisphere > ConstSPtr
Declaration of BrainSurfaceMesh which holds the data of one hemisphere in form of a mesh...
FreeSurfer surface mesh.
Definition: surface.h:92
Holds the data of one hemisphere in form of a mesh.
QSharedPointer< BrainHemisphere > SPtr