ControllerManager Class Reference
#include <ControllerManager.h>
Inherits ControllerManagerInterface.

Classes | |
| class | ConverterToV1_0a4 |
Public Member Functions | |
| ControllerManager () | |
| virtual | ~ControllerManager () |
| void | cleanup () |
| bool | loadConfig (std::string configFile) |
| std::string | getName () |
| ControllerInterface * | getController () |
| void | registerInputDeviceFactory (InputDeviceFactory *factory) |
Private Member Functions | |
| InputDevice * | getInputDevice (std::string deviceName, ArgumentVector *args) |
| bool | parseDeviceElement (const XmlElement *deviceElement, int deviceIndex, Controller *newController) |
| bool | parseButtonElement (const XmlElement *buttonElement, int deviceIndex, std::map< int, DeviceIndexMapping > &buttonIndexMapping, std::map< int, ButtonCorrection > &buttonCorrections) |
| bool | parseAxisElement (const XmlElement *axisElement, int deviceIndex, std::map< int, DeviceIndexMapping > &axisIndexMapping, std::map< int, AxisCorrection > &axisCorrections) |
| bool | parseSensorElement (const XmlElement *sensorElement, int deviceIndex, std::map< int, DeviceIndexMapping > &sensorIndexMapping, std::map< int, SensorCorrection > &sensorCorrections) |
| bool | parseDeviceIndexMapping (const XmlElement *element, int deviceIndex, std::map< int, DeviceIndexMapping > &indexMapping, std::string type, int &indexInController) |
Private Attributes | |
| bool | isCleanedUp |
| Stores if the cleanup-method was already called. | |
| std::auto_ptr< Controller > | controller |
| A pointer to the used controller. | |
| std::vector< InputDeviceFactory * > | factoryList |
| The list of InputDevice-factories. | |
Static Private Attributes | |
| static XmlConfigurationLoader | xmlConfigLoader |
Constructor & Destructor Documentation
| ControllerManager::ControllerManager | ( | ) |
Constructor
| ControllerManager::~ControllerManager | ( | ) | [virtual] |
Destructor
Member Function Documentation
| void ControllerManager::cleanup | ( | ) | [virtual] |
The method cleans up the ControllerManager. It therefore deletes all registered Controller-factories.
Reimplemented from ModuleInterface.
| ControllerInterface * ControllerManager::getController | ( | ) | [virtual] |
Returns the pointer to the Controller managed by this class.
Implements ControllerManagerInterface.
| InputDevice * ControllerManager::getInputDevice | ( | std::string | deviceName, | |
| ArgumentVector * | args | |||
| ) | [private] |
Tries to obtain an InputDevice with the passed name by calling all factory classes.
| std::string ControllerManager::getName | ( | ) | [virtual] |
Returns the name of the Module (ControllerManager)
Implements ModuleInterface.
| bool ControllerManager::loadConfig | ( | std::string | configFile | ) | [virtual] |
Reads the configuration for the Controller from the xml file with the passed URL.
Implements ModuleInterface.
| bool ControllerManager::parseAxisElement | ( | const XmlElement * | axisElement, | |
| int | deviceIndex, | |||
| std::map< int, DeviceIndexMapping > & | axisIndexMapping, | |||
| std::map< int, AxisCorrection > & | axisCorrections | |||
| ) | [private] |
Parses the element <axis> from the XML file
| bool ControllerManager::parseButtonElement | ( | const XmlElement * | buttonElement, | |
| int | deviceIndex, | |||
| std::map< int, DeviceIndexMapping > & | buttonIndexMapping, | |||
| std::map< int, ButtonCorrection > & | buttonCorrections | |||
| ) | [private] |
Parses the element <button> from the XML file
| bool ControllerManager::parseDeviceElement | ( | const XmlElement * | deviceElement, | |
| int | deviceIndex, | |||
| Controller * | newController | |||
| ) | [private] |
Parses the element <device> from the XML file
| bool ControllerManager::parseDeviceIndexMapping | ( | const XmlElement * | element, | |
| int | deviceIndex, | |||
| std::map< int, DeviceIndexMapping > & | indexMapping, | |||
| std::string | type, | |||
| int & | indexInController | |||
| ) | [private] |
Parses the device index mapping entries
| bool ControllerManager::parseSensorElement | ( | const XmlElement * | sensorElement, | |
| int | deviceIndex, | |||
| std::map< int, DeviceIndexMapping > & | sensorIndexMapping, | |||
| std::map< int, SensorCorrection > & | sensorCorrections | |||
| ) | [private] |
Parses the element <sensor> from the XML file
| void ControllerManager::registerInputDeviceFactory | ( | InputDeviceFactory * | factory | ) |
Registers a new factory-class for a single or multiple InputDevices
Member Data Documentation
std::auto_ptr<Controller> ControllerManager::controller [private] |
A pointer to the used controller.
std::vector<InputDeviceFactory*> ControllerManager::factoryList [private] |
The list of InputDevice-factories.
bool ControllerManager::isCleanedUp [private] |
Stores if the cleanup-method was already called.
XmlConfigurationLoader ControllerManager::xmlConfigLoader [static, private] |
The documentation for this class was generated from the following files:
- src/inVRs/InputInterface/ControllerManager/ControllerManager.h
- src/inVRs/InputInterface/ControllerManager/ControllerManager.cpp
Generated on Wed Oct 20 16:11:55 2010 for inVRs by
1.5.8