#include <CVirtualDevice.h>
Inheritance diagram for cVirtualDevice:
Public Member Functions | |
cVirtualDevice () | |
Constructor of cVirtualDevices. | |
virtual | ~cVirtualDevice () |
Destructor of cGenericDevice. | |
virtual int | open () |
Open connection to virtual device. | |
virtual int | close () |
Close connection to virtual device. | |
virtual int | initialize (const bool a_resetEncoders=false) |
Calibrate virtual device. | |
virtual int | command (int a_command, void *a_data) |
Set a command to the virtual device. | |
Private Attributes | |
HANDLE | m_hMapFile |
shared memory connection to virtual haptic device | |
LPVOID | m_lpMapAddress |
pointer to shared memory | |
cVirtualDeviceData * | m_pDevice |
pointer to shared memory data structure |
cVirtualDevice::cVirtualDevice | ( | ) |
Constructor of cVirtualDevices.
Constructor of cVirtualDevice.
cVirtualDevice::~cVirtualDevice | ( | ) | [virtual] |
Destructor of cGenericDevice.
Destructor of cVirtualDevice.
int cVirtualDevice::open | ( | ) | [virtual] |
Open connection to virtual device.
Open connection to virtual device.
Reimplemented from cGenericDevice.
int cVirtualDevice::close | ( | ) | [virtual] |
Close connection to virtual device.
Close connection to virtual device
Reimplemented from cGenericDevice.
int cVirtualDevice::initialize | ( | const bool | a_resetEncoders = false |
) | [virtual] |
Calibrate virtual device.
Initialize virtual device. a_resetEncoders is ignored
a_resetEncoders | ignored |
Reimplemented from cGenericDevice.
int cVirtualDevice::command | ( | int | a_command, | |
void * | a_data | |||
) | [virtual] |
Set a command to the virtual device.
Set command to the virtual device
a_command | Selected command. | |
a_data | Pointer to the corresponding data structure. |
Reimplemented from cGenericDevice.