MNE-CPP  beta 1.0
fiff_ch_pos.h
Go to the documentation of this file.
1 //=============================================================================================================
36 #ifndef FIFF_CH_POS_H
37 #define FIFF_CH_POS_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 
55 
56 //*************************************************************************************************************
57 //=============================================================================================================
58 // DEFINE NAMESPACE FIFFLIB
59 //=============================================================================================================
60 
61 namespace FIFFLIB
62 {
63 
64 //*************************************************************************************************************
65 //=============================================================================================================
66 // USED NAMESPACES
67 //=============================================================================================================
68 
69 
70 //=============================================================================================================
77 {
78 public:
79  typedef QSharedPointer<FiffChPos> SPtr;
80  typedef QSharedPointer<const FiffChPos> ConstSPtr;
82  //=========================================================================================================
86  FiffChPos();
87 
88  //=========================================================================================================
94  FiffChPos(const FiffChPos &p_FiffChPos);
95 
96  //=========================================================================================================
100  ~FiffChPos();
101 
102  //=========================================================================================================
108  inline static qint32 storageSize();
109 
110 public:
111  fiff_int_t coil_type;
112  fiff_float_t r0[3];
113  fiff_float_t ex[3];
114  fiff_float_t ey[3];
115  fiff_float_t ez[3];
117 // ### OLD STRUCT ###
118 // /** Measurement channel position and coil type. *
119 // typedef struct _fiffChPosRec {
120 // fiff_int_t coil_type; /**< What kind of coil. *
121 // fiff_float_t r0[3]; /**< Coil coordinate system origin *
122 // fiff_float_t ex[3]; /**< Coil coordinate system x-axis unit vector *
123 // fiff_float_t ey[3]; /**< Coil coordinate system y-axis unit vector *
124 // fiff_float_t ez[3]; /**< Coil coordinate system z-axis unit vector *
125 // } fiffChPosRec,*fiffChPos; /**< Measurement channel position and coil type *
126 
127 // typedef fiffChPosRec fiff_ch_pos_t;
128 };
129 
130 
131 //*************************************************************************************************************
132 //=============================================================================================================
133 // INLINE DEFINITIONS
134 //=============================================================================================================
135 
136 inline qint32 FiffChPos::storageSize()
137 {
138  return 52;
139 }
140 
141 } // NAMESPACE
142 
143 #endif // FIFF_CH_POS_H
Old fiff_type declarations - replace them.
static qint32 storageSize()
Definition: fiff_ch_pos.h:136
fiff_int_t coil_type
Definition: fiff_ch_pos.h:111
#define FIFFSHARED_EXPORT
Definition: fiff_global.h:58
Fiff library export/import macros.
Definition: fiff.h:98
Coil position.
Definition: fiff_ch_pos.h:76
QSharedPointer< FiffChPos > SPtr
Definition: fiff_ch_pos.h:79
QSharedPointer< const FiffChPos > ConstSPtr
Definition: fiff_ch_pos.h:80