ControllerInterface Class Reference
#include <ControllerInterface.h>
Inherited by Controller.
Public Member Functions | |
| virtual | ~ControllerInterface () |
| virtual int | getNumberOfButtons ()=0 |
| virtual int | getNumberOfAxes ()=0 |
| virtual int | getNumberOfSensors ()=0 |
| virtual int | getButtonValue (int idx)=0 |
| virtual float | getAxisValue (int idx)=0 |
| virtual SensorData | getSensorValue (int idx)=0 |
| virtual void | setPhysicalToWorldScale (float scaleValue)=0 |
| virtual float | getPhysicalToWorldScale ()=0 |
| virtual void | update ()=0 |
| virtual bool | registerButtonChangeCallback (AbstractControllerButtonChangeCB *callback)=0 |
| virtual bool | unregisterButtonChangeCallback (AbstractControllerButtonChangeCB *callback)=0 |
Protected Member Functions | |
| void | call (AbstractControllerButtonChangeCB *callback, int buttonIndex, int newButtonValue) |
| void | invalidateController (AbstractControllerButtonChangeCB *callback) |
Constructor & Destructor Documentation
| ControllerInterface::~ControllerInterface | ( | ) | [virtual] |
Member Function Documentation
| void ControllerInterface::call | ( | AbstractControllerButtonChangeCB * | callback, | |
| int | buttonIndex, | |||
| int | newButtonValue | |||
| ) | [protected] |
Calls the passed callback function
| virtual float ControllerInterface::getAxisValue | ( | int | idx | ) | [pure virtual] |
Implemented in Controller.
| virtual int ControllerInterface::getButtonValue | ( | int | idx | ) | [pure virtual] |
Implemented in Controller.
| virtual int ControllerInterface::getNumberOfAxes | ( | ) | [pure virtual] |
Implemented in Controller.
| virtual int ControllerInterface::getNumberOfButtons | ( | ) | [pure virtual] |
Implemented in Controller.
| virtual int ControllerInterface::getNumberOfSensors | ( | ) | [pure virtual] |
Implemented in Controller.
| virtual float ControllerInterface::getPhysicalToWorldScale | ( | ) | [pure virtual] |
Implemented in Controller.
| virtual SensorData ControllerInterface::getSensorValue | ( | int | idx | ) | [pure virtual] |
Implemented in Controller.
| void ControllerInterface::invalidateController | ( | AbstractControllerButtonChangeCB * | callback | ) | [protected] |
Cleans the controller pointer and deactivates the passed callback (should be called out of the destructor of the controller)
| virtual bool ControllerInterface::registerButtonChangeCallback | ( | AbstractControllerButtonChangeCB * | callback | ) | [pure virtual] |
Registers a callback-function for changes on the controller buttons
Implemented in Controller.
| virtual void ControllerInterface::setPhysicalToWorldScale | ( | float | scaleValue | ) | [pure virtual] |
Implemented in Controller.
| virtual bool ControllerInterface::unregisterButtonChangeCallback | ( | AbstractControllerButtonChangeCB * | callback | ) | [pure virtual] |
Unregisters a callback-function for changes on the controller buttons
Implemented in Controller.
| virtual void ControllerInterface::update | ( | ) | [pure virtual] |
Implemented in Controller.
The documentation for this class was generated from the following files:
- src/inVRs/InputInterface/ControllerInterface.h
- src/inVRs/InputInterface/ControllerInterface.cpp
Generated on Wed Oct 20 16:11:55 2010 for inVRs by
1.5.8