StrangeDevice Class Reference
#include <StrangeDevice.h>
Inherits UdpDevice.
Collaboration diagram for StrangeDevice:

Public Member Functions | |
| StrangeDevice () | |
| virtual | ~StrangeDevice () |
| virtual void | update () |
| virtual void | setYawScale (float scale) |
| virtual void | setYawOffset (float offset) |
| virtual void | setPitchScale (float scale) |
| virtual void | setPitchOffset (float offset) |
| virtual float | getYawScale () |
| virtual float | getYawOffset () |
| virtual float | getPitchScale () |
| virtual float | getPitchOffset () |
Static Protected Member Functions | |
| static void | decodeStateFromBinaryMessage (DEVICESTATE *deviceState, NetMessage *msg) |
| static void | decodeButtonState (DEVICESTATE *deviceState, OSG::UInt8 *buttonData, OSG::UInt8 numButtons) |
Protected Attributes | |
| float | yawScale |
| float | yawOffset |
| float | pitchScale |
| float | pitchOffset |
Constructor & Destructor Documentation
| StrangeDevice::StrangeDevice | ( | ) |
| StrangeDevice::~StrangeDevice | ( | ) | [virtual] |
Member Function Documentation
| static void StrangeDevice::decodeButtonState | ( | DEVICESTATE * | deviceState, | |
| OSG::UInt8 * | buttonData, | |||
| OSG::UInt8 | numButtons | |||
| ) | [static, protected] |
Helper-method for decoding the buttons state from the message
Reimplemented from UdpDevice.
| void StrangeDevice::decodeStateFromBinaryMessage | ( | DEVICESTATE * | deviceState, | |
| NetMessage * | msg | |||
| ) | [static, protected] |
Decodes the device state from the passed NetMessage
Reimplemented from UdpDevice.
| float StrangeDevice::getPitchOffset | ( | ) | [virtual] |
| float StrangeDevice::getPitchScale | ( | ) | [virtual] |
| float StrangeDevice::getYawOffset | ( | ) | [virtual] |
| float StrangeDevice::getYawScale | ( | ) | [virtual] |
| void StrangeDevice::setPitchOffset | ( | float | offset | ) | [virtual] |
| void StrangeDevice::setPitchScale | ( | float | scale | ) | [virtual] |
| void StrangeDevice::setYawOffset | ( | float | offset | ) | [virtual] |
| void StrangeDevice::setYawScale | ( | float | scale | ) | [virtual] |
| void StrangeDevice::update | ( | ) | [virtual] |
Updates the input data. This method requests all incoming network messages from the network module and decodes the device states.
for(i=0;i<nSensors;i++) todo: calculate sensorValue from axisValues 4 and 5 sensorState[i] = deviceState.sensorValues[i];
Reimplemented from UdpDevice.
Member Data Documentation
float StrangeDevice::pitchOffset [protected] |
float StrangeDevice::pitchScale [protected] |
float StrangeDevice::yawOffset [protected] |
float StrangeDevice::yawScale [protected] |
The documentation for this class was generated from the following files:
- src/inVRs/InputInterface/ControllerManager/StrangeDevice.h
- src/inVRs/InputInterface/ControllerManager/StrangeDevice.cpp
Generated on Wed Oct 20 16:12:01 2010 for inVRs by
1.5.8