DTrackSDK  v2.9.0
Public Member Functions | Protected Member Functions | List of all members
DTrackParser Class Reference

DTrack Parser class. More...

#include <DTrackParser.hpp>

+ Inheritance diagram for DTrackParser:

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 DTrackBodygetBody (int id) const
 Get standard body data. More...
 
int getNumFlyStick () const
 Get number of calibrated Flysticks. More...
 
const DTrackFlyStickgetFlyStick (int id) const
 Get Flystick data. More...
 
int getNumMeaTool () const
 Get number of calibrated Measurement Tools. More...
 
const DTrackMeaToolgetMeaTool (int id) const
 Get Measurement Tool data. More...
 
int getNumMeaRef () const
 Get number of calibrated Measurement Tool references. More...
 
const DTrackMeaRefgetMeaRef (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 DTrackHandgetHand (int id) const
 Get A.R.T. FINGERTRACKING hand data. More...
 
int getNumHuman () const
 Get number of calibrated ART-Human models. More...
 
const DTrackHumangetHuman (int id) const
 Get ART-Human model data. More...
 
int getNumInertial () const
 Get number of calibrated hybrid (optical-inertial) bodies. More...
 
const DTrackInertialgetInertial (int id) const
 Get hybrid (optical-inertial) data. More...
 
int getNumMarker () const
 Get number of tracked single markers. More...
 
const DTrackMarkergetMarker (int index) const
 Get single marker data. More...
 
bool isStatusAvailable () const
 Returns if system status data is available. More...
 
const DTrackStatusgetStatus () 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...
 

Detailed Description

DTrack Parser class.

Definition at line 47 of file DTrackParser.hpp.

Member Function Documentation

◆ getBody()

const DTrackBody * DTrackParser::getBody ( int  id) const

Get standard body data.

Refers to last received frame.

Parameters
[in]idId, range 0 ..
Returns
Id-th standard body data; NULL in case of error

Definition at line 1127 of file DTrackParser.cpp.

◆ getFlyStick()

const DTrackFlyStick * DTrackParser::getFlyStick ( int  id) const

Get Flystick data.

Refers to last received frame.

Parameters
[in]idId, range 0 ..
Returns
Id-th Flystick data; NULL in case of error

Definition at line 1147 of file DTrackParser.cpp.

◆ getFrameCounter()

unsigned int DTrackParser::getFrameCounter ( ) const

Get frame counter.

Refers to last received frame.

Returns
Frame counter

Definition at line 1278 of file DTrackParser.cpp.

◆ getHand()

const DTrackHand * DTrackParser::getHand ( int  id) const

Get A.R.T. FINGERTRACKING hand data.

Refers to last received frame.

Parameters
[in]idId, range 0 ..
Returns
Id-th A.R.T. FINGERTRACKING hand data; NULL in case of error

Definition at line 1207 of file DTrackParser.cpp.

◆ getHuman()

const DTrackHuman * DTrackParser::getHuman ( int  id) const

Get ART-Human model data.

Refers to last received frame.

Parameters
[in]idId, range 0 ..
Returns
Id-th ART-Human model data; NULL in case of error

Definition at line 1227 of file DTrackParser.cpp.

◆ getInertial()

const DTrackInertial * DTrackParser::getInertial ( int  id) const

Get hybrid (optical-inertial) data.

Refers to last received frame.

Parameters
[in]idId, range 0 ..
Returns
Id-th inertial body data; NULL in case of error

Definition at line 1247 of file DTrackParser.cpp.

◆ getLatencyUsec()

unsigned int DTrackParser::getLatencyUsec ( ) const

Get latency (delay between exposure and sending UDP data in Controller).

Refers to last received frame.

Returns
Latency in microseconds (0 if information not available)

Definition at line 1314 of file DTrackParser.cpp.

◆ getMarker()

const DTrackMarker * DTrackParser::getMarker ( int  index) const

Get single marker data.

Refers to last received frame.

Parameters
[in]indexIndex, range 0 ..
Returns
I-th single marker data; NULL in case of error

Definition at line 1267 of file DTrackParser.cpp.

◆ getMeaRef()

const DTrackMeaRef * DTrackParser::getMeaRef ( int  id) const

Get Measurement Tool reference data.

Refers to last received frame.

Parameters
[in]idId, range 0 ..
Returns
Id-th Measurement Tool reference data; NULL in case of error

Definition at line 1187 of file DTrackParser.cpp.

◆ getMeaTool()

const DTrackMeaTool * DTrackParser::getMeaTool ( int  id) const

Get Measurement Tool data.

Refers to last received frame.

Parameters
[in]idId, range 0 ..
Returns
Id-th Measurement Tool data; NULL in case of error

Definition at line 1167 of file DTrackParser.cpp.

◆ getNumBody()

int DTrackParser::getNumBody ( ) const

Get number of calibrated standard bodies (as far as known).

Refers to last received frame.

Returns
Number of calibrated standard bodies

Definition at line 1118 of file DTrackParser.cpp.

◆ getNumFlyStick()

int DTrackParser::getNumFlyStick ( ) const

Get number of calibrated Flysticks.

Refers to last received frame.

Returns
Number of calibrated Flysticks

Definition at line 1138 of file DTrackParser.cpp.

◆ getNumHand()

int DTrackParser::getNumHand ( ) const

Get number of calibrated A.R.T. FINGERTRACKING hands (as far as known).

Refers to last received frame.

Returns
Number of calibrated A.R.T. FINGERTRACKING hands

Definition at line 1198 of file DTrackParser.cpp.

◆ getNumHuman()

int DTrackParser::getNumHuman ( ) const

Get number of calibrated ART-Human models.

Refers to last received frame.

Returns
Number of calibrated ART-Human models

Definition at line 1218 of file DTrackParser.cpp.

◆ getNumInertial()

int DTrackParser::getNumInertial ( ) const

Get number of calibrated hybrid (optical-inertial) bodies.

Refers to last received frame.

Returns
Number of calibrated hybrid bodies

Definition at line 1238 of file DTrackParser.cpp.

◆ getNumMarker()

int DTrackParser::getNumMarker ( ) const

Get number of tracked single markers.

Refers to last received frame.

Returns
Number of tracked single markers

Definition at line 1258 of file DTrackParser.cpp.

◆ getNumMeaRef()

int DTrackParser::getNumMeaRef ( ) const

Get number of calibrated Measurement Tool references.

Refers to last received frame.

Returns
Number of calibrated Measurement Tool references

Definition at line 1178 of file DTrackParser.cpp.

◆ getNumMeaTool()

int DTrackParser::getNumMeaTool ( ) const

Get number of calibrated Measurement Tools.

Refers to last received frame.

Returns
Number of calibrated Measurement Tools

Definition at line 1158 of file DTrackParser.cpp.

◆ getStatus()

const DTrackStatus * DTrackParser::getStatus ( ) const

Get system status data.

Refers to last received frame.

Returns
System status data; NULL in case of error

Definition at line 1332 of file DTrackParser.cpp.

◆ getTimeStamp()

double DTrackParser::getTimeStamp ( ) const

Get timestamp since midnight.

Refers to last received frame.

Returns
Timestamp in seconds (-1 if information not available)

Definition at line 1287 of file DTrackParser.cpp.

◆ getTimeStampSec()

unsigned int DTrackParser::getTimeStampSec ( ) const

Get timestamp since Unix epoch (1970-01-01 00:00:00), seconds.

Refers to last received frame.

Returns
Time in seconds (0 if information not available)

Definition at line 1296 of file DTrackParser.cpp.

◆ getTimeStampUsec()

unsigned int DTrackParser::getTimeStampUsec ( ) const

Get timestamp since Unix epoch (1970-01-01 00:00:00), microseconds.

Refers to last received frame.

Returns
Time in microseconds

Definition at line 1305 of file DTrackParser.cpp.

◆ isStatusAvailable()

bool DTrackParser::isStatusAvailable ( ) const

Returns if system status data is available.

Refers to last received frame.

Returns
System status data is available

Definition at line 1323 of file DTrackParser.cpp.

◆ parseLine()

bool DTrackParser::parseLine ( char **  line)
protected

Parses a single line of data in one tracking data packet.

Updates internal data structures.

Parameters
[in,out]lineOne line of data in one tracking data packet
Returns
Parsing succeeded?

Definition at line 146 of file DTrackParser.cpp.

Referenced by DTrackSDK::processPacket(), and DTrackSDK::receive().


The documentation for this class was generated from the following files: