DTrackSDK
v2.9.0
|
DTrack Parser class. More...
#include <DTrackParser.hpp>
Public Member Functions | |
unsigned int | getFrameCounter () const |
Get frame counter. More... | |
double | getTimeStamp () const |
Get timestamp since midnight. More... | |
unsigned int | getTimeStampSec () const |
Get timestamp since Unix epoch (1970-01-01 00:00:00), seconds. More... | |
unsigned int | getTimeStampUsec () const |
Get timestamp since Unix epoch (1970-01-01 00:00:00), microseconds. More... | |
unsigned int | getLatencyUsec () const |
Get latency (delay between exposure and sending UDP data in Controller). More... | |
int | getNumBody () const |
Get number of calibrated standard bodies (as far as known). More... | |
const DTrackBody * | getBody (int id) const |
Get standard body data. More... | |
int | getNumFlyStick () const |
Get number of calibrated Flysticks. More... | |
const DTrackFlyStick * | getFlyStick (int id) const |
Get Flystick data. More... | |
int | getNumMeaTool () const |
Get number of calibrated Measurement Tools. More... | |
const DTrackMeaTool * | getMeaTool (int id) const |
Get Measurement Tool data. More... | |
int | getNumMeaRef () const |
Get number of calibrated Measurement Tool references. More... | |
const DTrackMeaRef * | getMeaRef (int id) const |
Get Measurement Tool reference data. More... | |
int | getNumHand () const |
Get number of calibrated A.R.T. FINGERTRACKING hands (as far as known). More... | |
const DTrackHand * | getHand (int id) const |
Get A.R.T. FINGERTRACKING hand data. More... | |
int | getNumHuman () const |
Get number of calibrated ART-Human models. More... | |
const DTrackHuman * | getHuman (int id) const |
Get ART-Human model data. More... | |
int | getNumInertial () const |
Get number of calibrated hybrid (optical-inertial) bodies. More... | |
const DTrackInertial * | getInertial (int id) const |
Get hybrid (optical-inertial) data. More... | |
int | getNumMarker () const |
Get number of tracked single markers. More... | |
const DTrackMarker * | getMarker (int index) const |
Get single marker data. More... | |
bool | isStatusAvailable () const |
Returns if system status data is available. More... | |
const DTrackStatus * | getStatus () const |
Get system status data. More... | |
Protected Member Functions | |
DTrackParser () | |
Constructor. | |
virtual | ~DTrackParser () |
Destructor. | |
void | startFrame () |
Set default values at start of a new frame. | |
void | endFrame () |
Final adjustments after processing all data for a frame. | |
bool | parseLine (char **line) |
Parses a single line of data in one tracking data packet. More... | |
DTrack Parser class.
Definition at line 47 of file DTrackParser.hpp.
const DTrackBody * DTrackParser::getBody | ( | int | id | ) | const |
Get standard body data.
Refers to last received frame.
[in] | id | Id, range 0 .. |
Definition at line 1127 of file DTrackParser.cpp.
const DTrackFlyStick * DTrackParser::getFlyStick | ( | int | id | ) | const |
Get Flystick data.
Refers to last received frame.
[in] | id | Id, range 0 .. |
Definition at line 1147 of file DTrackParser.cpp.
unsigned int DTrackParser::getFrameCounter | ( | ) | const |
Get frame counter.
Refers to last received frame.
Definition at line 1278 of file DTrackParser.cpp.
const DTrackHand * DTrackParser::getHand | ( | int | id | ) | const |
Get A.R.T. FINGERTRACKING hand data.
Refers to last received frame.
[in] | id | Id, range 0 .. |
Definition at line 1207 of file DTrackParser.cpp.
const DTrackHuman * DTrackParser::getHuman | ( | int | id | ) | const |
Get ART-Human model data.
Refers to last received frame.
[in] | id | Id, range 0 .. |
Definition at line 1227 of file DTrackParser.cpp.
const DTrackInertial * DTrackParser::getInertial | ( | int | id | ) | const |
Get hybrid (optical-inertial) data.
Refers to last received frame.
[in] | id | Id, range 0 .. |
Definition at line 1247 of file DTrackParser.cpp.
unsigned int DTrackParser::getLatencyUsec | ( | ) | const |
Get latency (delay between exposure and sending UDP data in Controller).
Refers to last received frame.
Definition at line 1314 of file DTrackParser.cpp.
const DTrackMarker * DTrackParser::getMarker | ( | int | index | ) | const |
Get single marker data.
Refers to last received frame.
[in] | index | Index, range 0 .. |
Definition at line 1267 of file DTrackParser.cpp.
const DTrackMeaRef * DTrackParser::getMeaRef | ( | int | id | ) | const |
Get Measurement Tool reference data.
Refers to last received frame.
[in] | id | Id, range 0 .. |
Definition at line 1187 of file DTrackParser.cpp.
const DTrackMeaTool * DTrackParser::getMeaTool | ( | int | id | ) | const |
Get Measurement Tool data.
Refers to last received frame.
[in] | id | Id, range 0 .. |
Definition at line 1167 of file DTrackParser.cpp.
int DTrackParser::getNumBody | ( | ) | const |
Get number of calibrated standard bodies (as far as known).
Refers to last received frame.
Definition at line 1118 of file DTrackParser.cpp.
int DTrackParser::getNumFlyStick | ( | ) | const |
Get number of calibrated Flysticks.
Refers to last received frame.
Definition at line 1138 of file DTrackParser.cpp.
int DTrackParser::getNumHand | ( | ) | const |
Get number of calibrated A.R.T. FINGERTRACKING hands (as far as known).
Refers to last received frame.
Definition at line 1198 of file DTrackParser.cpp.
int DTrackParser::getNumHuman | ( | ) | const |
Get number of calibrated ART-Human models.
Refers to last received frame.
Definition at line 1218 of file DTrackParser.cpp.
int DTrackParser::getNumInertial | ( | ) | const |
Get number of calibrated hybrid (optical-inertial) bodies.
Refers to last received frame.
Definition at line 1238 of file DTrackParser.cpp.
int DTrackParser::getNumMarker | ( | ) | const |
Get number of tracked single markers.
Refers to last received frame.
Definition at line 1258 of file DTrackParser.cpp.
int DTrackParser::getNumMeaRef | ( | ) | const |
Get number of calibrated Measurement Tool references.
Refers to last received frame.
Definition at line 1178 of file DTrackParser.cpp.
int DTrackParser::getNumMeaTool | ( | ) | const |
Get number of calibrated Measurement Tools.
Refers to last received frame.
Definition at line 1158 of file DTrackParser.cpp.
const DTrackStatus * DTrackParser::getStatus | ( | ) | const |
Get system status data.
Refers to last received frame.
Definition at line 1332 of file DTrackParser.cpp.
double DTrackParser::getTimeStamp | ( | ) | const |
Get timestamp since midnight.
Refers to last received frame.
Definition at line 1287 of file DTrackParser.cpp.
unsigned int DTrackParser::getTimeStampSec | ( | ) | const |
Get timestamp since Unix epoch (1970-01-01 00:00:00), seconds.
Refers to last received frame.
Definition at line 1296 of file DTrackParser.cpp.
unsigned int DTrackParser::getTimeStampUsec | ( | ) | const |
Get timestamp since Unix epoch (1970-01-01 00:00:00), microseconds.
Refers to last received frame.
Definition at line 1305 of file DTrackParser.cpp.
bool DTrackParser::isStatusAvailable | ( | ) | const |
Returns if system status data is available.
Refers to last received frame.
Definition at line 1323 of file DTrackParser.cpp.
|
protected |
Parses a single line of data in one tracking data packet.
Updates internal data structures.
[in,out] | line | One line of data in one tracking data packet |
Definition at line 146 of file DTrackParser.cpp.
Referenced by DTrackSDK::processPacket(), and DTrackSDK::receive().