Panda3D
Public Member Functions | Public Attributes | List of all members
TrackerData Class Reference

Stores the kinds of data that a tracker might output. More...

#include "trackerData.h"

Public Member Functions

 TrackerData (const TrackerData &copy)
 
void clear ()
 Removes all data from the structure. More...
 
double get_dt () const
 
const LOrientation & get_orient () const
 
const LPoint3 & get_pos () const
 
double get_time () const
 
bool has_dt () const
 Returns true if the computed elapsed time is available. More...
 
bool has_orient () const
 Returns true if the current orientation is available. More...
 
bool has_pos () const
 Returns true if the current position is available. More...
 
bool has_time () const
 Returns true if the position information time is available. More...
 
void operator= (const TrackerData &copy)
 
void set_dt (double dt)
 
void set_orient (const LOrientation &orient)
 
void set_pos (const LPoint3 &pos)
 
void set_time (double time)
 

Public Attributes

 get_dt
 Returns the amount of elapsed time over which the information (pos and orient) were computed. More...
 
 get_orient
 Returns the current orientation of the tracker. More...
 
 get_pos
 Returns the current position of the tracker. More...
 
 get_time
 Returns the time at which the position information (pos and orient) are effective. More...
 
 set_dt
 Indicates the amount of elapsed time over which which the information (pos and orient) were computed. More...
 
 set_orient
 Indicates the current orientation of the tracker sensor in space. More...
 
 set_pos
 Indicates the current position of the tracker sensor in space. More...
 
 set_time
 Indicates the time at which the position information (pos and orient) are effective. More...
 

Detailed Description

Stores the kinds of data that a tracker might output.

Definition at line 23 of file trackerData.h.

Member Function Documentation

◆ clear()

void TrackerData::clear ( )
inline

Removes all data from the structure.

Definition at line 35 of file trackerData.I.

◆ has_dt()

bool TrackerData::has_dt ( ) const
inline

Returns true if the computed elapsed time is available.

See set_dt().

Definition at line 154 of file trackerData.I.

◆ has_orient()

bool TrackerData::has_orient ( ) const
inline

Returns true if the current orientation is available.

See set_orient().

Definition at line 119 of file trackerData.I.

◆ has_pos()

bool TrackerData::has_pos ( ) const
inline

Returns true if the current position is available.

See set_pos().

Definition at line 85 of file trackerData.I.

◆ has_time()

bool TrackerData::has_time ( ) const
inline

Returns true if the position information time is available.

See set_time().

Definition at line 56 of file trackerData.I.

Referenced by TrackerNode::has_time().

Member Data Documentation

◆ get_dt

double TrackerData::get_dt
inline

Returns the amount of elapsed time over which the information (pos and orient) were computed.

It is an error to call this if has_dt() does not return true. See set_dt().

Definition at line 51 of file trackerData.h.

◆ get_orient

const LOrientation & TrackerData::get_orient
inline

Returns the current orientation of the tracker.

It is legal to call this if has_orient() returns false; in this case, the result is always the identity orientation.

Definition at line 50 of file trackerData.h.

Referenced by TrackerNode::get_orient().

◆ get_pos

const LPoint3 & TrackerData::get_pos
inline

Returns the current position of the tracker.

It is legal to call this if has_pos() returns false; in this case, the position will always be (0, 0, 0).

Definition at line 49 of file trackerData.h.

Referenced by TrackerNode::get_pos().

◆ get_time

double TrackerData::get_time
inline

Returns the time at which the position information (pos and orient) are effective.

It is an error to call this if has_time() does not return true. See set_time().

Definition at line 48 of file trackerData.h.

Referenced by TrackerNode::get_time().

◆ set_dt

void TrackerData::set_dt
inline

Indicates the amount of elapsed time over which which the information (pos and orient) were computed.

This only makes sense if the information represents velocity or acceleration, rather than position. This is an elapsed time in seconds.

Definition at line 51 of file trackerData.h.

◆ set_orient

void TrackerData::set_orient
inline

Indicates the current orientation of the tracker sensor in space.

The coordinate system of this orientation is defined by the tracker, but should be the same coordinate system as that reflected by set_pos().

Definition at line 50 of file trackerData.h.

◆ set_pos

void TrackerData::set_pos
inline

Indicates the current position of the tracker sensor in space.

The coordinate system of this position is defined by the tracker.

Definition at line 49 of file trackerData.h.

◆ set_time

void TrackerData::set_time
inline

Indicates the time at which the position information (pos and orient) are effective.

This is a time elapsed in seconds since some undefined epoch; it may or may not correspond to the clock time indicated in the global ClockObject.

Definition at line 48 of file trackerData.h.


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