MNE-CPP  beta 1.0
types.h
Go to the documentation of this file.
1 //=============================================================================================================
37 #ifndef TYPES_H
38 #define TYPES_H
39 
40 //*************************************************************************************************************
41 //=============================================================================================================
42 // INCLUDES
43 //=============================================================================================================
44 
45 #include <Eigen/Core>
46 #include <Eigen/SparseCore>
47 #include <fiff/fiff.h>
48 #include "filteroperator.h"
49 
50 
51 //*************************************************************************************************************
52 //=============================================================================================================
53 // Qt INCLUDES
54 //=============================================================================================================
55 
56 #include <QPair>
57 #include <QList>
58 #include <QSharedPointer>
59 
60 
61 //*************************************************************************************************************
62 //=============================================================================================================
63 // USED NAMESPACES
64 //=============================================================================================================
65 
66 using namespace Eigen;
67 
68 
69 //*************************************************************************************************************
70 //=============================================================================================================
71 // DEFINE NAMESPACE MNEBrowseRawQt
72 //=============================================================================================================
73 
74 namespace MNEBrowseRawQt
75 {
76 
77 typedef Matrix<double,Dynamic,Dynamic,RowMajor> MatrixXdR;
78 typedef QPair<const double*,qint32> RowVectorPair;
79 typedef QPair<const float*,qint32> RowVectorPairF;
80 typedef QPair<int,int> QPairInts;
81 
82 namespace RawModelRoles
83 {
84  enum ItemRole{GetChannelMean = Qt::UserRole + 1000};
85 }
86 
87 namespace AverageModelRoles
88 {
89  enum ItemRole{GetAverageData = Qt::UserRole + 1001,
90  GetFiffInfo = Qt::UserRole + 1002,
91  GetAspectKind = Qt::UserRole + 1003,
92  GetFirstSample = Qt::UserRole + 1004,
93  GetLastSample = Qt::UserRole + 1005,
94  GetComment = Qt::UserRole + 1006,
95  GetTimeData = Qt::UserRole + 1007,
96  GetProjections = Qt::UserRole + 1008};
97 }
98 
99 namespace ChInfoModelRoles
100 {
101  enum ItemRole{GetOrigChName = Qt::UserRole + 1009,
102  GetMappedLayoutChName = Qt::UserRole + 1010,
103  GetChNumber = Qt::UserRole + 1011,
104  GetChKind = Qt::UserRole + 1012,
105  GetMEGType = Qt::UserRole + 1013,
106  GetChUnit = Qt::UserRole + 1014,
107  GetChAlias = Qt::UserRole + 1015,
108  GetChPosition = Qt::UserRole + 1016,
109  GetChDigitizer = Qt::UserRole + 1017,
110  GetChActiveFilter = Qt::UserRole + 1018,
111  GetChCoilType = Qt::UserRole + 1019};
112 }
113 
114 namespace ProjectionModelRoles
115 {
116  enum ItemRole{GetProjectionData = Qt::UserRole + 1019,
117  GetProjectionName = Qt::UserRole + 1020,
118  GetProjectionState = Qt::UserRole + 1021,
119  GetProjectionDimension = Qt::UserRole + 1022};
120 }
121 
122 } //NAMESPACE
123 
124 Q_DECLARE_METATYPE(FIFFLIB::fiff_int_t);
125 Q_DECLARE_METATYPE(MNEBrowseRawQt::RowVectorPairF);
126 Q_DECLARE_METATYPE(const FIFFLIB::FiffInfo*);
127 Q_DECLARE_METATYPE(MNEBrowseRawQt::MatrixXdR);
128 Q_DECLARE_METATYPE(MNEBrowseRawQt::RowVectorPair);
129 Q_DECLARE_METATYPE(QList<MNEBrowseRawQt::RowVectorPair>);
130 Q_DECLARE_METATYPE(QSharedPointer<MNEBrowseRawQt::MNEOperator>);
131 
132 #endif // TYPES_H
FIFF measurement file information.
Definition: fiff_info.h:96
The FilterOperator class represents a derived class from an arbitrary MNEOperator class object...
FIFF class declaration, which provides static wrapper functions to stay consistent with mne matlab to...