MNE-CPP  beta 1.0
fiff_ch_info.h
Go to the documentation of this file.
1 //=============================================================================================================
36 #ifndef FIFF_CH_INFO_H
37 #define FIFF_CH_INFO_H
38 
39 //*************************************************************************************************************
40 //=============================================================================================================
41 // FIFF INCLUDES
42 //=============================================================================================================
43 
44 #include "fiff_global.h"
45 #include "fiff_types.h"
46 
47 
48 //*************************************************************************************************************
49 //=============================================================================================================
50 // Qt INCLUDES
51 //=============================================================================================================
52 
53 #include <QSharedPointer>
54 #include <QString>
55 
56 
57 //*************************************************************************************************************
58 //=============================================================================================================
59 // Eigen INCLUDES
60 //=============================================================================================================
61 
62 #include <Eigen/Core>
63 
64 
65 //*************************************************************************************************************
66 //=============================================================================================================
67 // DEFINE NAMESPACE FIFFLIB
68 //=============================================================================================================
69 
70 namespace FIFFLIB
71 {
72 
73 //*************************************************************************************************************
74 //=============================================================================================================
75 // USED NAMESPACES
76 //=============================================================================================================
77 
78 using namespace Eigen;
79 
80 
81 //=============================================================================================================
88 {
89 public:
90  typedef QSharedPointer<FiffChInfo> SPtr;
91  typedef QSharedPointer<const FiffChInfo> ConstSPtr;
93  //=========================================================================================================
97  FiffChInfo();
98 
99  //=========================================================================================================
105  FiffChInfo(const FiffChInfo &p_FiffChInfo);
106 
107  //=========================================================================================================
111  ~FiffChInfo();
112 
113  //=========================================================================================================
119  inline static qint32 storageSize();
120 
121 public:
122  fiff_int_t scanno;
123  fiff_int_t logno;
124  fiff_int_t kind;
125  fiff_float_t range;
126  fiff_float_t cal;
128  fiff_int_t coil_type;
130  Matrix<double,12,1, DontAlign> loc;
135  Matrix<double,4,4, DontAlign> coil_trans;
136  Matrix<double,3,2, DontAlign> eeg_loc;
137  fiff_int_t coord_frame;
139 // fiff_ch_pos_t chpos; /**< Channel location 15*/
140 
141  fiff_int_t unit;
142  fiff_int_t unit_mul;
143  QString ch_name;
145 // ### OLD STRUCT ###
146 // typedef struct _fiffChInfoRec {
147 // fiff_int_t scanNo; /**< Scanning order number *
148 // fiff_int_t logNo; /**< Logical channel # *
149 // fiff_int_t kind; /**< Kind of channel *
150 // fiff_float_t range; /**< Voltmeter range (-1 = auto ranging) *
151 // fiff_float_t cal; /**< Calibration from volts to units used *
152 // fiff_ch_pos_t chpos; /**< Channel location *
153 // fiff_int_t unit; /**< Unit of measurement *
154 // fiff_int_t unit_mul; /**< Unit multiplier exponent *
155 // fiff_char_t ch_name[16]; /**< Descriptive name for the channel *
156 // } fiffChInfoRec,*fiffChInfo; /**< Description of one channel *
157 
158 // /** Alias for fiffChInfoRec *
159 // typedef fiffChInfoRec fiff_ch_info_t;
160 };
161 
162 
163 //*************************************************************************************************************
164 //=============================================================================================================
165 // INLINE DEFINITIONS
166 //=============================================================================================================
167 
168 inline qint32 FiffChInfo::storageSize()
169 {
170  return 96;
171 }
172 
173 } // NAMESPACE
174 
175 #endif // FIFF_CH_INFO_H
Old fiff_type declarations - replace them.
fiff_float_t range
Definition: fiff_ch_info.h:125
QSharedPointer< FiffChInfo > SPtr
Definition: fiff_ch_info.h:90
fiff_float_t cal
Definition: fiff_ch_info.h:126
Matrix< double, 4, 4, DontAlign > coil_trans
Definition: fiff_ch_info.h:135
static qint32 storageSize()
Definition: fiff_ch_info.h:168
#define FIFFSHARED_EXPORT
Definition: fiff_global.h:58
Channel info descriptor.
Definition: fiff_ch_info.h:87
Fiff library export/import macros.
Definition: fiff.h:98
fiff_int_t coord_frame
Definition: fiff_ch_info.h:137
QSharedPointer< const FiffChInfo > ConstSPtr
Definition: fiff_ch_info.h:91
fiff_int_t coil_type
Definition: fiff_ch_info.h:128
Matrix< double, 3, 2, DontAlign > eeg_loc
Definition: fiff_ch_info.h:136
Matrix< double, 12, 1, DontAlign > loc
Definition: fiff_ch_info.h:130