MNE-CPP  0.1.9
A Framework for Electrophysiology
types.h
Go to the documentation of this file.
1 //=============================================================================================================
37 #ifndef DISP3DLIB_TYPES_H
38 #define DISP3DLIB_TYPES_H
39 
40 //=============================================================================================================
41 // INCLUDES
42 //=============================================================================================================
43 
44 #include <fs/label.h>
46 #include <fiff/fiff_info.h>
47 
48 //=============================================================================================================
49 // QT INCLUDES
50 //=============================================================================================================
51 
52 #include <QStandardItem>
53 #include <QByteArray>
54 #include <QSharedPointer>
55 
56 //=============================================================================================================
57 // EIGEN INCLUDES
58 //=============================================================================================================
59 
60 #include <Eigen/Core>
61 #include <Eigen/Sparse>
62 
63 //=============================================================================================================
64 // DEFINE NAMESPACE DISP3DLIB
65 //=============================================================================================================
66 
67 namespace DISP3DLIB
68 {
69 // Typedefs
70 
71 // Model item types
72 namespace Data3DTreeModelItemTypes
73 {
74  enum ItemType{UnknownItem = QStandardItem::UserType,
75  MeasurementItem = QStandardItem::UserType + 1,
76  HemisphereItem = QStandardItem::UserType + 2,
77  SurfaceItem = QStandardItem::UserType + 3,
78  AnnotationItem = QStandardItem::UserType + 4,
79  MNEDataItem = QStandardItem::UserType + 5,
80  SourceSpaceItem = QStandardItem::UserType + 6,
81  NetworkItem = QStandardItem::UserType + 7,
82  SubjectItem = QStandardItem::UserType + 8,
83  BemItem = QStandardItem::UserType + 9,
84  BemSurfaceItem = QStandardItem::UserType + 10,
85  DigitizerSetItem = QStandardItem::UserType + 11,
86  DigitizerItem = QStandardItem::UserType + 12,
87  ECDDataItem = QStandardItem::UserType + 13,
88  MriItem = QStandardItem::UserType + 14,
89  SensorSetItem = QStandardItem::UserType + 15,
90  SensorSurfaceItem = QStandardItem::UserType + 16,
91  SensorPositionItem = QStandardItem::UserType + 17,
92  AbstractMeshItem = QStandardItem::UserType + 18,
93  SensorDataItem = QStandardItem::UserType + 19,
94  GpuInterpolationItem = QStandardItem::UserType + 21};
95 }
96 
97 namespace MetaTreeItemTypes
98 {
99  enum ItemType{FileName = QStandardItem::UserType + 100,
100  FilePath = QStandardItem::UserType + 101,
101  SurfaceColorGyri = QStandardItem::UserType + 102,
102  SurfaceColorSulci = QStandardItem::UserType + 103,
103  SurfaceColorVert = QStandardItem::UserType + 104,
104  AlphaValue = QStandardItem::UserType + 105,
105  StreamStatus = QStandardItem::UserType + 106,
106  SourceSpaceType = QStandardItem::UserType + 107,
107  ColormapType = QStandardItem::UserType + 108,
108  StreamingTimeInterval = QStandardItem::UserType + 109,
109  LoopedStreaming = QStandardItem::UserType + 110,
110  NumberAverages = QStandardItem::UserType + 111,
111  DataThreshold = QStandardItem::UserType + 112,
112  VisualizationType = QStandardItem::UserType + 113,
113  Color = QStandardItem::UserType + 114,
114  UnknownItem = QStandardItem::UserType + 115,
115  TranslateX = QStandardItem::UserType + 116,
116  TranslateY = QStandardItem::UserType + 117,
117  TranslateZ = QStandardItem::UserType + 118,
118  InterpolationFunction = QStandardItem::UserType + 119,
119  NetworkMatrix = QStandardItem::UserType + 120,
120  SurfaceTessInner = QStandardItem::UserType + 121,
121  SurfaceTessOuter = QStandardItem::UserType + 122,
122  SurfaceTriangleScale = QStandardItem::UserType + 123,
123  NumberDipoles = QStandardItem::UserType + 124,
124  MaterialType = QStandardItem::UserType + 125,
125  ShowNormals = QStandardItem::UserType + 126,
126  Scale = QStandardItem::UserType + 127,
127  CancelDistance = QStandardItem::UserType + 128};
128 }
129 
130 // Model item roles
131 namespace MetaTreeItemRoles
132 {
133  enum ItemRole{SurfaceFileName = Qt::UserRole,
134  SurfaceType = Qt::UserRole + 1,
135  SurfaceColorSulci = Qt::UserRole + 2,
136  SurfaceColorGyri = Qt::UserRole + 3,
137  SurfaceFilePath = Qt::UserRole + 4,
138  AnnotName = Qt::UserRole + 5,
139  AnnotFilePath = Qt::UserRole + 6,
140  AlphaValue = Qt::UserRole + 7,
141  StreamStatus = Qt::UserRole + 8,
142  SourceSpaceType = Qt::UserRole + 9,
143  ColormapType = Qt::UserRole + 10,
144  StreamingTimeInterval = Qt::UserRole + 11,
145  LoopedStreaming = Qt::UserRole + 12,
146  NumberAverages = Qt::UserRole + 13,
147  DataThreshold = Qt::UserRole + 14,
148  VisualizationType = Qt::UserRole + 15,
149  Color = Qt::UserRole + 16,
150  TranslateX = Qt::UserRole + 17,
151  TranslateY = Qt::UserRole + 18,
152  TranslateZ = Qt::UserRole + 19,
153  InterpolationFunction = Qt::UserRole + 20,
154  SurfaceTessInner = Qt::UserRole + 21,
155  SurfaceTessOuter = Qt::UserRole + 22,
156  SurfaceTriangleScale = Qt::UserRole + 23,
157  SurfaceMaterial = Qt::UserRole + 24,
158  Scale = Qt::UserRole + 25,
159  CancelDistance = Qt::UserRole + 26};
160 }
161 
162 namespace Data3DTreeModelItemRoles
163 {
164  enum ItemRole{SurfaceCurrentColorVert = Qt::UserRole + 100,
165  NumberVertices = Qt::UserRole + 101,
166  SurfaceCurv = Qt::UserRole + 102,
167  NetworkData = Qt::UserRole + 103,
168  SurfaceHemi = Qt::UserRole + 104,
169  AnnotColors = Qt::UserRole + 105,
170  FileName = Qt::UserRole + 106,
171  FilePath = Qt::UserRole + 107,
172  Data = Qt::UserRole + 108,
173  VertexBased = Qt::UserRole + 109,
174  InterpolationBased = Qt::UserRole + 110,
175  AnnotationBased = Qt::UserRole + 111};
176 }
177 } //NAMESPACE DISP3DLIB
178 
179 // Metatype declaration for correct QVariant usage
180 // DO NOT FORGET TO REGISTER THESE TYPES IF YOU WANT TO USE THEM IN SIGNAL SLOT/SLOT SYSTEM (SEE Data3DTreeModel initMetatypes())
181 #ifndef metatype_matrixx3i
182 #define metatype_matrixx3i
183 Q_DECLARE_METATYPE(Eigen::MatrixX3i);
184 #endif
185 
186 #ifndef metatype_matrixXd
187 #define metatype_matrixXd
188 Q_DECLARE_METATYPE(Eigen::MatrixXd);
189 #endif
190 
191 #ifndef metatype_matrixx3f
192 #define metatype_matrixx3f
193 Q_DECLARE_METATYPE(Eigen::MatrixX3f);
194 #endif
195 
196 #ifndef metatype_matrixx4f
197 #define metatype_matrixx4f
198 Q_DECLARE_METATYPE(Eigen::MatrixX4f);
199 #endif
200 
201 #ifndef metatype_vectorxf
202 #define metatype_vectorxf
203 Q_DECLARE_METATYPE(Eigen::VectorXf);
204 #endif
205 
206 #ifndef metatype_vectorxi
207 #define metatype_vectorxi
208 Q_DECLARE_METATYPE(Eigen::VectorXi);
209 #endif
210 
211 #ifndef metatype_vectorxd
212 #define metatype_vectorxd
213 Q_DECLARE_METATYPE(Eigen::VectorXd);
214 #endif
215 
216 #ifndef metatype_rowvectorxf
217 #define metatype_rowvectorxf
218 Q_DECLARE_METATYPE(Eigen::RowVectorXf);
219 #endif
220 
221 #ifndef metatype_vector3f
222 #define metatype_vector3f
223 Q_DECLARE_METATYPE(Eigen::Vector3f);
224 #endif
225 
226 #ifndef metatype_fiffinfo
227 #define metatype_fiffinfo
229 #endif
230 
231 #ifndef metatype_qvectorvector3f
232 #define metatype_qvectorvector3f
233 Q_DECLARE_METATYPE(QVector<Eigen::Vector3f>);
234 #endif
235 
236 #ifndef metatype_qvectorvectorint
237 #define metatype_qvectorvectorint
238 Q_DECLARE_METATYPE(QVector<QVector<int> >);
239 #endif
240 
241 #ifndef metatype_qvectorint
242 #define metatype_qvectorint
243 Q_DECLARE_METATYPE(QVector<int>);
244 #endif
245 
246 #ifndef metatype_sparsematf
247 #define metatype_sparsematf
248 Q_DECLARE_METATYPE(Eigen::SparseMatrix<float>);
249 #endif
250 
251 #ifndef metatype_sharedptrsparsematf
252 #define metatype_sharedptrsparsematf
253 Q_DECLARE_METATYPE(QSharedPointer<Eigen::SparseMatrix<float> >);
254 #endif
255 
256 #ifndef metatype_listlabel
257 #define metatype_listlabel
258 Q_DECLARE_METATYPE(QList<FSLIB::Label>);
259 #endif
260 
261 #endif // DISP3DLIB_TYPES_H
Q_DECLARE_METATYPE
Q_DECLARE_METATYPE(Eigen::MatrixXf)
FIFFLIB::FiffInfo
FIFF measurement file information.
Definition: fiff_info.h:84
ecd_set.h
FiffDigPointSet class declaration.
label.h
Label class declaration.
fiff_info.h
FiffInfo class declaration.