8 #define DLL_EXPORT __declspec(dllexport)
13 #define MAJOR_VERSION 1
14 #define MINOR_VERSION 19
16 #define MAX_CAMERA_COUNT 256
17 #define MAX_ANALOG_DEVICE_COUNT 64
18 #define MAX_FORCE_PLATE_COUNT 64
19 #define MAX_GAZE_VECTOR_COUNT 64
20 #define MAX_TIMECODE_COUNT 3
21 #define MAX_SKELETON_COUNT 10
40 Component3dNoLabels = 2,
48 Component3dNoLabelsRes = 10,
50 Component6dEulerRes = 12,
51 ComponentAnalogSingle = 13,
53 ComponentForceSingle = 15,
54 ComponentGazeVector = 16,
55 ComponentTimecode = 17,
56 ComponentSkeleton = 18,
61 FormatRawGrayscale = 0,
69 EventConnectionClosed = 2,
70 EventCaptureStarted = 3,
71 EventCaptureStopped = 4,
72 EventCaptureFetchingFinished = 5,
73 EventCalibrationStarted = 6,
74 EventCalibrationStopped = 7,
75 EventRTfromFileStarted = 8,
76 EventRTfromFileStopped = 9,
77 EventWaitingForTrigger = 10,
78 EventCameraSettingsChanged = 11,
79 EventQTMShuttingDown = 12,
80 EventCaptureSaved = 13,
81 EventReprocessingStarted = 14,
82 EventReprocessingStopped = 15,
129 void GetVersion(
unsigned int &nMajorVersion,
unsigned int &nMinorVersion);
130 void SetVersion(
unsigned int nMajorVersion,
unsigned int nMinorVersion);
131 bool GetEndianness();
132 void SetEndianness(
bool bBigEndian);
134 void SetData(
char *ptr);
135 void GetData(
char *&ptr,
unsigned int &nSize);
137 unsigned int GetSize();
139 unsigned long long GetTimeStamp();
140 unsigned int GetFrameNumber();
141 static unsigned int GetSize(
char *pData,
bool bBigEndian =
false);
142 static EPacketType GetType(
char *pData,
bool bBigEndian =
false);
143 static unsigned long long GetTimeStamp(
char *pData,
bool bBigEndian =
false);
144 static unsigned int GetFrameNumber(
char *pData,
bool bBigEndian =
false);
146 unsigned int GetComponentCount();
149 char *GetErrorString();
150 char *GetCommandString();
151 static char *GetCommandString(
char *pData,
bool bBigEndian =
false);
152 char *GetXMLString();
153 bool GetEvent(
EEvent &eEvent);
154 static bool GetEvent(
EEvent &eEvent,
char *pData,
bool bBigEndian =
false);
155 short GetDiscoverResponseBasePort();
156 static short GetDiscoverResponseBasePort(
char *pData,
157 bool bBigEndian =
false);
159 unsigned short GetDropRate();
160 unsigned short GetOutOfSyncRate();
162 unsigned int Get2DCameraCount();
163 unsigned int Get2DMarkerCount(
unsigned int nCameraIndex);
164 unsigned char Get2DStatusFlags(
unsigned int nCameraIndex);
165 bool Get2DMarker(
unsigned int nCameraIndex,
unsigned int nMarkerIndex,
166 unsigned int &nX,
unsigned int &nY,
167 unsigned short &nXDiameter,
unsigned short &nYDiameter);
169 unsigned int Get2DLinCameraCount();
170 unsigned int Get2DLinMarkerCount(
unsigned int nCameraIndex);
171 unsigned char Get2DLinStatusFlags(
unsigned int nCameraIndex);
172 bool Get2DLinMarker(
unsigned int nCameraIndex,
unsigned int nMarkerIndex,
173 unsigned int &nX,
unsigned int &nY,
174 unsigned short &nXDiameter,
unsigned short &nYDiameter);
176 unsigned int Get3DMarkerCount();
177 bool Get3DMarker(
unsigned int nMarkerIndex,
float &fX,
float &fY,
float &fZ);
179 unsigned int Get3DResidualMarkerCount();
180 bool Get3DResidualMarker(
unsigned int nMarkerIndex,
float &fX,
float &fY,
181 float &fZ,
float &fResidual);
183 unsigned int Get3DNoLabelsMarkerCount();
184 bool Get3DNoLabelsMarker(
unsigned int nMarkerIndex,
float &fX,
float &fY,
185 float &fZ,
unsigned int &nId);
187 unsigned int Get3DNoLabelsResidualMarkerCount();
188 bool Get3DNoLabelsResidualMarker(
unsigned int nMarkerIndex,
float &fX,
189 float &fY,
float &fZ,
unsigned int &nId,
192 unsigned int Get6DOFBodyCount();
193 bool Get6DOFBody(
unsigned int nBodyIndex,
float &fX,
float &fY,
float &fZ,
194 float afRotMatrix[9]);
196 unsigned int Get6DOFResidualBodyCount();
197 bool Get6DOFResidualBody(
unsigned int nBodyIndex,
float &fX,
float &fY,
198 float &fZ,
float afRotMatrix[9],
float &fResidual);
200 unsigned int Get6DOFEulerBodyCount();
201 bool Get6DOFEulerBody(
unsigned int nBodyIndex,
float &fX,
float &fY,
202 float &fZ,
float &fAng1,
float &fAng2,
float &fAng3);
204 unsigned int Get6DOFEulerResidualBodyCount();
205 bool Get6DOFEulerResidualBody(
unsigned int nBodyIndex,
float &fX,
float &fY,
206 float &fZ,
float &fAng1,
float &fAng2,
207 float &fAng3,
float &fResidual);
209 unsigned int GetGazeVectorCount();
210 unsigned int GetGazeVectorSampleCount(
unsigned int nVectorIndex);
211 unsigned int GetGazeVectorSampleNumber(
212 unsigned int nVectorIndex);
213 bool GetGazeVector(
unsigned int nVectorIndex,
unsigned int nSampleIndex,
215 bool GetGazeVector(
unsigned int nVectorIndex,
SGazeVector *pGazeVectorBuf,
216 unsigned int nBufSize);
218 unsigned int GetTimecodeCount();
219 bool GetTimecodeType(
unsigned int nTimecodeIndex,
221 bool GetTimecodeSMPTE(
unsigned int nTimecodeIndex,
int &hours,
int &minutes,
222 int &seconds,
int &frame);
223 bool GetTimecodeIRIG(
unsigned int nTimecodeIndex,
int &year,
int &day,
224 int &hours,
int &minutes,
int &seconds,
int &tenths);
225 bool GetTimecodeCameraTime(
unsigned int nTimecodeIndex,
226 unsigned long long &cameraTime);
228 unsigned int GetImageCameraCount();
229 unsigned int GetImageCameraId(
unsigned int nCameraIndex);
230 bool GetImageFormat(
unsigned int nCameraIndex,
EImageFormat &eImageFormat);
231 bool GetImageSize(
unsigned int nCameraIndex,
unsigned int &nWidth,
232 unsigned int &nHeight);
233 bool GetImageCrop(
unsigned int nCameraIndex,
float &fCropLeft,
234 float &fCropTop,
float &fCropRight,
float &fCropBottom);
235 unsigned int GetImageSize(
unsigned int nCameraIndex);
236 unsigned int GetImage(
unsigned int nCameraIndex,
char *pDataBuf,
237 unsigned int nBufSize);
239 unsigned int GetAnalogDeviceCount();
240 unsigned int GetAnalogDeviceId(
unsigned int nDeviceIndex);
241 unsigned int GetAnalogChannelCount(
unsigned int nDeviceIndex);
242 unsigned int GetAnalogSampleCount(
unsigned int nDeviceIndex);
243 unsigned int GetAnalogSampleNumber(
244 unsigned int nDeviceIndex);
245 unsigned int GetAnalogData(
unsigned int nDeviceIndex,
float *pDataBuf,
246 unsigned int nBufSize);
247 unsigned int GetAnalogData(
unsigned int nDeviceIndex,
248 unsigned int nChannelIndex,
float *pDataBuf,
249 unsigned int nBufSize);
250 bool GetAnalogData(
unsigned int nDeviceIndex,
unsigned int nChannelIndex,
251 unsigned int nSampleIndex,
float &fAnalogValue);
253 unsigned int GetAnalogSingleDeviceCount();
254 unsigned int GetAnalogSingleDeviceId(
unsigned int nDeviceIndex);
255 unsigned int GetAnalogSingleChannelCount(
unsigned int nDeviceIndex);
256 unsigned int GetAnalogSingleData(
unsigned int nDeviceIndex,
float *pDataBuf,
257 unsigned int nBufSize);
258 bool GetAnalogSingleData(
unsigned int nDeviceIndex,
259 unsigned int nChannelIndex,
float &fValue);
261 unsigned int GetForcePlateCount();
262 unsigned int GetForcePlateId(
unsigned int nPlateIndex);
263 unsigned int GetForceCount(
unsigned int nPlateIndex);
264 unsigned int GetForceNumber(
265 unsigned int nPlateIndex);
266 unsigned int GetForceData(
unsigned int nPlateIndex,
SForce *pForceBuf,
267 unsigned int nBufSize);
268 bool GetForceData(
unsigned int nPlateIndex,
unsigned int nForceIndex,
271 unsigned int GetForceSinglePlateCount();
272 unsigned int GetForceSinglePlateId(
unsigned int nPlateIndex);
273 bool GetForceSingleData(
unsigned int nPlateIndex,
SForce &pForce);
275 unsigned int GetSkeletonCount();
276 unsigned int GetSkeletonSegmentCount(
unsigned int nSkeletonIndex);
277 bool GetSkeletonSegments(
unsigned int nSkeletonIndex,
279 bool GetSkeletonSegment(
unsigned int nSkeletonIndex,
unsigned segmentIndex,
283 float SetByteOrder(
float *pfData);
284 double SetByteOrder(
double *pfData);
285 short SetByteOrder(
short *pnData);
286 unsigned short SetByteOrder(
unsigned short *pnData);
287 long SetByteOrder(
long *pnData);
288 int SetByteOrder(
int *pnData);
289 unsigned int SetByteOrder(
unsigned int *pnData);
290 long long SetByteOrder(
long long *pnData);
291 unsigned long long SetByteOrder(
unsigned long long *pnData);
295 char *mpComponentData[ComponentNone];
306 unsigned int mnComponentCount;
308 unsigned int mn2DCameraCount;
309 unsigned int mn2DLinCameraCount;
310 unsigned int mnImageCameraCount;
311 unsigned int mnAnalogDeviceCount;
312 unsigned int mnAnalogSingleDeviceCount;
313 unsigned int mnForcePlateCount;
314 unsigned int mnForceSinglePlateCount;
315 unsigned int mnGazeVectorCount;
316 unsigned int mnTimecodeCount;
317 unsigned int mSkeletonCount;