This class implements a universal haptic device handler. More...
#include <CHapticDeviceHandler.h>
Public Member Functions | |
cHapticDeviceHandler () | |
Constructor of cHapticDeviceHandler. More... | |
virtual | ~cHapticDeviceHandler () |
Destructor of cHapticDeviceHandler. More... | |
unsigned int | getNumDevices () |
This method returns the number of devices currently connected to the computer. More... | |
void | update () |
This method updates information about the devices that are currently connected to the computer. More... | |
bool | getDeviceSpecifications (cHapticDeviceInfo &a_deviceSpecifications, unsigned int a_index=0) |
This method returns the specifications of the i-th device. More... | |
bool | getDevice (cGenericHapticDevicePtr &, unsigned int a_index=0) |
This method returns a handle to the i-th device, if available. More... | |
This class implements a manager which lists the different devices available on the computer and provides handles to them.
chai3d::cHapticDeviceHandler::cHapticDeviceHandler | ( | ) |
Constructor of cHapticDeviceHandler.
|
virtual |
Destructor of cHapticDeviceHandler.
|
inline |
void chai3d::cHapticDeviceHandler::update | ( | ) |
This method searches and lists all haptic devices connected to the computer.
bool chai3d::cHapticDeviceHandler::getDeviceSpecifications | ( | cHapticDeviceInfo & | a_deviceSpecifications, |
unsigned int | a_index = 0 |
||
) |
This method returns the specifications of the i'th device.
a_deviceSpecifications | Returned result |
a_index | Index number of the device. |
bool chai3d::cHapticDeviceHandler::getDevice | ( | cGenericHapticDevicePtr & | a_hapticDevice, |
unsigned int | a_index = 0 |
||
) |
This method returns a handle to the i'th device if available.
a_hapticDevice | Handle to device |
a_index | Index number of the device. |