#include <vrpnDial.h>
Public Member Functions | |
VrpnDial (const string &dial_name, vrpn_Connection *connection) | |
~VrpnDial () | |
const string & | get_dial_name () const |
Returns the name of the dial device that was used to create this VrpnDial. | |
bool | is_empty () const |
Returns true if no VrpnDialDevices reference this VrpnDial, or false otherwise. | |
void | mark (VrpnDialDevice *device) |
Adds the indicated VrpnDialDevice to the list of devices that are sharing this VrpnDial. | |
void | unmark (VrpnDialDevice *device) |
Removes the indicated VrpnDialDevice from the list of devices that are sharing this VrpnDial. | |
void | poll () |
Polls the connected device. | |
void | output (ostream &out) const |
void | write (ostream &out, int indent_level=0) const |
Private Types | |
typedef pvector< VrpnDialDevice * > | Devices |
Static Private Member Functions | |
void | vrpn_dial_callback (void *userdata, const vrpn_DIALCB info) |
Receives the dial event data from the VRPN code and sends it to any interested VrpnDialDevices. | |
Private Attributes | |
string | _dial_name |
vrpn_Dial_Remote * | _dial |
Devices | _devices |
A pointer to this object is stored in the VrpnClient class for each differently-named VRPN dial device we connect to.
The VRPN callbacks go here, which in turn get vectored out to any VrpnDialDevice objects that register with this. When the last VrpnDialDevice object unregisters, the VrpnDial will be deleted by the VrpnClient.
This class does not need to be exported from the DLL.
Definition at line 64 of file vrpnDial.h.
|
Definition at line 88 of file vrpnDial.h. |
|
Definition at line 39 of file vrpnDial.cxx. |
|
Definition at line 55 of file vrpnDial.cxx. References _devices. |
|
Returns the name of the dial device that was used to create this VrpnDial.
Definition at line 33 of file vrpnDial.I. |
|
Returns true if no VrpnDialDevices reference this VrpnDial, or false otherwise.
Definition at line 48 of file vrpnDial.I. |
|
Adds the indicated VrpnDialDevice to the list of devices that are sharing this VrpnDial.
Definition at line 70 of file vrpnDial.cxx. References _devices. |
|
Definition at line 109 of file vrpnDial.cxx. |
|
Polls the connected device. Normally you should not call this directly; this will be called by the VrpnClient. Definition at line 65 of file vrpnDial.I. Referenced by VrpnClient::disconnect_device(). |
|
Removes the indicated VrpnDialDevice from the list of devices that are sharing this VrpnDial.
Definition at line 88 of file vrpnDial.cxx. References _dial_name. |
|
Receives the dial event data from the VRPN code and sends it to any interested VrpnDialDevices.
Definition at line 140 of file vrpnDial.cxx. |
|
Definition at line 121 of file vrpnDial.cxx. |
|
Definition at line 89 of file vrpnDial.h. Referenced by get_dial_name(), mark(), and ~VrpnDial(). |
|
Definition at line 86 of file vrpnDial.h. Referenced by is_empty(). |
|
Definition at line 85 of file vrpnDial.h. Referenced by unmark(). |