MNE-CPP  0.1.9
A Framework for Electrophysiology
fiff_digitizer_data.h
Go to the documentation of this file.
1 //=============================================================================================================
36 #ifndef FIFF_DIGITIZER_DATA_H
37 #define FIFF_DIGITIZER_DATA_H
38 
39 //=============================================================================================================
40 // INCLUDES
41 //=============================================================================================================
42 
43 #include "../fiff_global.h"
44 #include "../fiff_types.h"
45 
46 //=============================================================================================================
47 // QT INCLUDES
48 //=============================================================================================================
49 
50 #include <QSharedPointer>
51 #include <QDebug>
52 
53 //=============================================================================================================
54 // DEFINE NAMESPACE FIFFLIB
55 //=============================================================================================================
56 
57 namespace FIFFLIB
58 {
59 
60 //=============================================================================================================
61 // FORWARD DECLARATIONS
62 //=============================================================================================================
63 
64 class FiffCoordTransOld;
65 class FiffDigPoint;
66 
67 //=============================================================================================================
74 {
75 public:
76  typedef QSharedPointer<FiffDigitizerData> SPtr;
77  typedef QSharedPointer<const FiffDigitizerData> ConstSPtr;
79  //=========================================================================================================
84 
85  //=========================================================================================================
91  FiffDigitizerData(const FiffDigitizerData& p_FiffDigitizerData);
92 
93  //=========================================================================================================
99  FiffDigitizerData(QIODevice &p_IODevice);
100 
101  //=========================================================================================================
106 
107  //=========================================================================================================
111  void print() const;
112 
113 public:
114  QString filename; /* Where did these come from */
115  FIFFLIB::FiffCoordTransOld* head_mri_t; /* This is relevant for us */
116  FIFFLIB::FiffCoordTransOld* head_mri_t_adj; /* This is the adjusted transformation */
117  QList<FIFFLIB::FiffDigPoint> points; /* The points */
118  int coord_frame; /* The coordinate frame of the above points */
119  QList<int> active; /* Which are active */
120  QList<int> discard; /* Which should be discarded? */
121  int npoint; /* How many? */
122  FIFFLIB::FiffDigPoint* mri_fids; /* MRI coordinate system fiducials picked here */
123  int nfids; /* How many? */
124  int show; /* Should the digitizer data be shown */
125  int show_minimal; /* Show fiducials and coils only? */
126  float *dist; /* Distance of each point from the head surface */
127  int *closest; /* Closest vertex # on the head surface */
128  float **closest_point; /* Closest vertex locations on the head surface */
129  int dist_valid; /* Are the above data valid at this point? */
130 
131 // typedef struct { /* The digitizer data will be loaded from the measurement file or elsewhere */
132 // char *filename; /* Where did these come from */
133 // FIFFLIB::FiffCoordTransOld* head_mri_t; /* This is relevant for us */
134 // FIFFLIB::FiffCoordTransOld* head_mri_t_adj; /* This is the adjusted transformation */
135 // FIFFLIB::fiffDigPoint points; /* The points */
136 // int coord_frame; /* The coordinate frame of the above points */
137 // int *active; /* Which are active */
138 // int *discard; /* Which should be discarded? */
139 // int npoint; /* How many? */
140 // FIFFLIB::fiffDigPoint mri_fids; /* MRI coordinate system fiducials picked here */
141 // int nfids; /* How many? */
142 // int show; /* Should the digitizer data be shown */
143 // int show_minimal; /* Show fiducials and coils only? */
144 // float *dist; /* Distance of each point from the head surface */
145 // int *closest; /* Closest vertex # on the head surface */
146 // float **closest_point; /* Closest vertex locations on the head surface */
147 // int dist_valid; /* Are the above data valid at this point? */
148 // } *digitizerData,digitizerDataRec;
149 };
150 
151 //=============================================================================================================
152 // INLINE DEFINITIONS
153 //=============================================================================================================
154 } // NAMESPACE
155 
156 #endif // FIFF_DIGITIZER_DATA_H
FIFFLIB::FiffDigitizerData::ConstSPtr
QSharedPointer< const FiffDigitizerData > ConstSPtr
Definition: fiff_digitizer_data.h:77
FIFFLIB::FiffDigitizerData::SPtr
QSharedPointer< FiffDigitizerData > SPtr
Definition: fiff_digitizer_data.h:76
FIFFLIB::FiffCoordTransOld
Coordinate transformation descriptor.
Definition: fiff_coord_trans_old.h:80
FIFFLIB::FiffDigPoint
Digitization point description.
Definition: fiff_dig_point.h:68
FIFFSHARED_EXPORT
#define FIFFSHARED_EXPORT
Definition: fiff_global.h:56
FIFFLIB::FiffDigitizerData
Digitization points container and description.
Definition: fiff_digitizer_data.h:73