TrackdDevice Class Reference
#include <TrackdDevice.h>
Inherits InputDevice.

Public Member Functions | |
| TrackdDevice (int trackerKey, int controllerKey) | |
| virtual | ~TrackdDevice () |
| int | getNumberOfButtons () |
| int | getNumberOfAxes () |
| int | getNumberOfSensors () |
| int | getButtonValue (int idx) |
| float | getAxisValue (int idx) |
| SensorData | getSensorValue (int idx) |
| void | update () |
| bool | isInitialized () const |
Private Member Functions | |
| void | initializeDevice () |
Private Attributes | |
| std::vector< int > | buttonValues |
| std::vector< float > | axisValues |
| std::vector< SensorData > | sensorValues |
| bool | initialized |
| defines if | |
| TrackerReader * | tracker |
| member for reading the tracker data | |
| ControllerReader * | controller |
| member for reading the controller data | |
| int | trackerKey |
| Trackd-keys for tracker and controller. | |
| int | controllerKey |
Constructor & Destructor Documentation
| TrackdDevice::TrackdDevice | ( | int | trackerKey, | |
| int | controllerKey | |||
| ) |
Constructor
| TrackdDevice::~TrackdDevice | ( | ) | [virtual] |
Destructor
Member Function Documentation
| float TrackdDevice::getAxisValue | ( | int | idx | ) | [virtual] |
Returns the value of the axis with the passed index
Implements InputDevice.
| int TrackdDevice::getButtonValue | ( | int | idx | ) | [virtual] |
Returns the value of the button with the passed index
Implements InputDevice.
| int TrackdDevice::getNumberOfAxes | ( | ) | [virtual] |
Returns the number of axes provided by the input device
Implements InputDevice.
| int TrackdDevice::getNumberOfButtons | ( | ) | [virtual] |
Returns the number of buttons provided by the input device
Implements InputDevice.
| int TrackdDevice::getNumberOfSensors | ( | ) | [virtual] |
Returns the number of sensors provided by the input device
Implements InputDevice.
| SensorData TrackdDevice::getSensorValue | ( | int | idx | ) | [virtual] |
Returns the value of the sensor with the passed index
Implements InputDevice.
| void TrackdDevice::initializeDevice | ( | ) | [private] |
Initializes the device
| bool TrackdDevice::isInitialized | ( | ) | const |
Returns if the TrackdDevice was successfully initialized
| void TrackdDevice::update | ( | ) | [virtual] |
Updates the values of the TrackdDevice
Implements InputDevice.
Member Data Documentation
std::vector<float> TrackdDevice::axisValues [private] |
std::vector<int> TrackdDevice::buttonValues [private] |
ControllerReader* TrackdDevice::controller [private] |
int TrackdDevice::controllerKey [private] |
bool TrackdDevice::initialized [private] |
defines if
std::vector<SensorData> TrackdDevice::sensorValues [private] |
TrackerReader* TrackdDevice::tracker [private] |
member for reading the tracker data
int TrackdDevice::trackerKey [private] |
Trackd-keys for tracker and controller.
The documentation for this class was generated from the following files:
- tools/libraries/TrackdDevice/TrackdDevice.h
- tools/libraries/TrackdDevice/TrackdDevice.cpp
Generated on Wed Oct 20 16:12:01 2010 for inVRs by
1.5.8