Stores the kinds of data that a tracker might output.
More...
#include "trackerData.h"
List of all members.
Public Member Functions |
|
| TrackerData (const TrackerData ©) |
| void | clear () |
| | Removes all data from the structure.
|
| double | get_dt () const |
| | Returns the amount of elapsed time over which the information (pos and orient) were computed.
|
| const LOrientation & | get_orient () const |
| | Returns the current orientation of the tracker.
|
| const LPoint3 & | get_pos () const |
| | Returns the current position of the tracker.
|
| double | get_time () const |
| | Returns the time at which the position information (pos and orient) are effective.
|
| bool | has_dt () const |
| | Returns true if the computed elapsed time is available.
|
| bool | has_orient () const |
| | Returns true if the current orientation is available.
|
| bool | has_pos () const |
| | Returns true if the current position is available.
|
| bool | has_time () const |
| | Returns true if the position information time is available.
|
|
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.
|
| void | set_orient (const LOrientation &orient) |
| | Indicates the current orientation of the tracker sensor in space.
|
| void | set_pos (const LPoint3 &pos) |
| | Indicates the current position of the tracker sensor in space.
|
| void | set_time (double time) |
| | Indicates the time at which the position information (pos and orient) are effective.
|
Detailed Description
Stores the kinds of data that a tracker might output.
Definition at line 25 of file trackerData.h.
Member Function Documentation
| void TrackerData::clear |
( |
| ) |
[inline] |
Removes all data from the structure.
Definition at line 42 of file trackerData.I.
| double TrackerData::get_dt |
( |
| ) |
const [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 206 of file trackerData.I.
References has_dt().
| const LOrientation & TrackerData::get_orient |
( |
| ) |
const [inline] |
| const LPoint3 & TrackerData::get_pos |
( |
| ) |
const [inline] |
| double TrackerData::get_time |
( |
| ) |
const [inline] |
| bool TrackerData::has_dt |
( |
| ) |
const [inline] |
| bool TrackerData::has_orient |
( |
| ) |
const [inline] |
| bool TrackerData::has_pos |
( |
| ) |
const [inline] |
| bool TrackerData::has_time |
( |
| ) |
const [inline] |
| void TrackerData::set_dt |
( |
double |
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 181 of file trackerData.I.
| void TrackerData::set_orient |
( |
const LOrientation & |
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.
| void TrackerData::set_pos |
( |
const LPoint3 & |
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.
| void TrackerData::set_time |
( |
double |
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.
The documentation for this class was generated from the following files: