Panda3D
|
Stores the kinds of data that a tracker might output. More...
#include "trackerData.h"
Public Member Functions | |
TrackerData (const TrackerData ©) | |
void | clear () |
Removes all data from the structure. More... | |
double | get_dt () const |
Returns the amount of elapsed time over which the information (pos and orient) were computed. More... | |
const LOrientation & | get_orient () const |
Returns the current orientation of the tracker. More... | |
const LPoint3 & | get_pos () const |
Returns the current position of the tracker. More... | |
double | get_time () const |
Returns the time at which the position information (pos and orient) are effective. More... | |
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 ©) |
void | set_dt (double dt) |
Indicates the amount of elapsed time over which which the information (pos and orient) were computed. More... | |
void | set_orient (const LOrientation &orient) |
Indicates the current orientation of the tracker sensor in space. More... | |
void | set_pos (const LPoint3 &pos) |
Indicates the current position of the tracker sensor in space. More... | |
void | set_time (double time) |
Indicates the time at which the position information (pos and orient) are effective. More... | |
Stores the kinds of data that a tracker might output.
Definition at line 25 of file trackerData.h.
|
inline |
Removes all data from the structure.
Definition at line 42 of file trackerData.I.
References set_time().
|
inline |
|
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 162 of file trackerData.I.
References has_orient(), LQuaternionf::ident_quat(), and set_dt().
Referenced by TrackerNode::get_orient(), and has_orient().
|
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 118 of file trackerData.I.
References has_pos(), and set_orient().
Referenced by TrackerNode::get_pos(), and has_pos().
|
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 81 of file trackerData.I.
References has_time(), and set_pos().
Referenced by TrackerNode::get_time(), and has_time().
|
inline |
|
inline |
Returns true if the current orientation is available.
See set_orient().
Definition at line 149 of file trackerData.I.
References get_orient().
Referenced by get_orient(), and set_orient().
|
inline |
|
inline |
Returns true if the position information time is available.
See set_time().
Definition at line 68 of file trackerData.I.
References get_time().
Referenced by get_time(), TrackerNode::has_time(), and set_time().
|
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 181 of file trackerData.I.
References has_dt().
Referenced by get_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 137 of file trackerData.I.
References has_orient().
Referenced by get_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 94 of file trackerData.I.
References has_pos().
Referenced by get_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 56 of file trackerData.I.
References has_time().
Referenced by clear().