MNE-CPP 0.1.9
A Framework for Electrophysiology
Loading...
Searching...
No Matches
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
57namespace FIFFLIB
58{
59
60//=============================================================================================================
61// FORWARD DECLARATIONS
62//=============================================================================================================
63
64class FiffCoordTransOld;
65class FiffDigPoint;
66
67//=============================================================================================================
74{
75public:
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
113public:
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
#define FIFFSHARED_EXPORT
Definition fiff_global.h:56
Coordinate transformation descriptor.
Digitization points container and description.
QSharedPointer< FiffDigitizerData > SPtr
QSharedPointer< const FiffDigitizerData > ConstSPtr
Digitization point description.