chai3d::cHapticDeviceHandler Class Reference

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...
 

Detailed Description

This class implements a manager which lists the different devices available on the computer and provides handles to them.

Constructor & Destructor Documentation

chai3d::cHapticDeviceHandler::cHapticDeviceHandler ( )

Constructor of cHapticDeviceHandler.

chai3d::cHapticDeviceHandler::~cHapticDeviceHandler ( )
virtual

Destructor of cHapticDeviceHandler.

Member Function Documentation

unsigned int chai3d::cHapticDeviceHandler::getNumDevices ( )
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.

Parameters
a_deviceSpecificationsReturned result
a_indexIndex number of the device.
Returns
true if operation succeeds, false otherwise.
bool chai3d::cHapticDeviceHandler::getDevice ( cGenericHapticDevicePtr a_hapticDevice,
unsigned int  a_index = 0 
)

This method returns a handle to the i'th device if available.

Parameters
a_hapticDeviceHandle to device
a_indexIndex number of the device.
Returns
true if operation succeeds, false otherwise.

The documentation for this class was generated from the following files: