#include <vrpnClient.h>
Inheritance diagram for VrpnClient:
Public Member Functions | |
virtual TypeHandle | get_type () const |
virtual TypeHandle | force_init_type () |
Static Public Member Functions | |
INLINE double | convert_to_secs (struct timeval msg_time) |
TypeHandle | get_class_type () |
void | init_type () |
Protected Member Functions | |
virtual | PT (ClientDevice) make_device(TypeHandle device_type |
virtual bool | disconnect_device (TypeHandle device_type, const string &device_name, ClientDevice *device) |
virtual void | do_poll () |
Protected Attributes | |
virtual const string & | device_name |
Private Types | |
typedef pmap< string, VrpnTracker * > | Trackers |
typedef pmap< string, VrpnButton * > | Buttons |
typedef pmap< string, VrpnAnalog * > | Analogs |
typedef pmap< string, VrpnDial * > | Dials |
Private Member Functions | |
~VrpnClient () | |
INLINE const string & | get_server_name () const |
INLINE bool | is_valid () const |
INLINE bool | is_connected () const |
void | write (ostream &out, int indent_level=0) const |
PT (ClientDevice) make_tracker_device(const string &device_name) | |
PT (ClientDevice) make_button_device(const string &device_name) | |
PT (ClientDevice) make_analog_device(const string &device_name) | |
PT (ClientDevice) make_dial_device(const string &device_name) | |
void | disconnect_tracker_device (VrpnTrackerDevice *device) |
void | disconnect_button_device (VrpnButtonDevice *device) |
void | disconnect_analog_device (VrpnAnalogDevice *device) |
void | disconnect_dial_device (VrpnDialDevice *device) |
VrpnTracker * | get_tracker (const string &tracker_name) |
void | free_tracker (VrpnTracker *vrpn_tracker) |
VrpnButton * | get_button (const string &button_name) |
void | free_button (VrpnButton *vrpn_button) |
VrpnAnalog * | get_analog (const string &analog_name) |
void | free_analog (VrpnAnalog *vrpn_analog) |
VrpnDial * | get_dial (const string &dial_name) |
void | free_dial (VrpnDial *vrpn_dial) |
Private Attributes | |
PUBLISHED | __pad0__: VrpnClient(const string &server_name) |
string | _server_name |
vrpn_Connection * | _connection |
Trackers | _trackers |
Buttons | _buttons |
Analogs | _analogs |
Dials | _dials |
Static Private Attributes | |
TypeHandle | _type_handle |
|
Definition at line 94 of file vrpnClient.h. |
|
Definition at line 93 of file vrpnClient.h. |
|
Definition at line 95 of file vrpnClient.h. |
|
Definition at line 92 of file vrpnClient.h. |
|
Definition at line 66 of file vrpnClient.cxx. References _connection. |
|
Referenced by VrpnTracker::vrpn_acceleration_callback(), VrpnTracker::vrpn_position_callback(), and VrpnTracker::vrpn_velocity_callback(). |
|
Definition at line 450 of file vrpnClient.cxx. References free_analog(), VrpnAnalogDevice::get_vrpn_analog(), VrpnAnalog::is_empty(), and VrpnAnalog::unmark(). Referenced by disconnect_device(). |
|
Definition at line 435 of file vrpnClient.cxx. References free_button(), VrpnButtonDevice::get_vrpn_button(), VrpnButton::is_empty(), and VrpnButton::unmark(). Referenced by disconnect_device(). |
|
Reimplemented from ClientBase. Definition at line 176 of file vrpnClient.cxx. References DCAST, disconnect_analog_device(), disconnect_button_device(), ClientBase::disconnect_device(), disconnect_dial_device(), disconnect_tracker_device(), VrpnDialDevice::get_class_type(), VrpnAnalogDevice::get_class_type(), VrpnButtonDevice::get_class_type(), VrpnTrackerDevice::get_class_type(), and TypedObject::is_of_type(). |
|
Definition at line 465 of file vrpnClient.cxx. References free_dial(), VrpnDialDevice::get_vrpn_dial(), VrpnDial::is_empty(), and VrpnDial::unmark(). Referenced by disconnect_device(). |
|
Definition at line 420 of file vrpnClient.cxx. References free_tracker(), VrpnTrackerDevice::get_vrpn_tracker(), VrpnTracker::is_empty(), and VrpnTracker::unmark(). Referenced by disconnect_device(). |
|
Reimplemented from ClientBase. Definition at line 213 of file vrpnClient.cxx. References _analogs, _buttons, _dials, _server_name, _trackers, ClientBase::do_poll(), VrpnDial::poll(), VrpnAnalog::poll(), VrpnButton::poll(), and VrpnTracker::poll(). |
|
Reimplemented from ClientBase. Definition at line 115 of file vrpnClient.h. References ClientBase::get_class_type(), and ClientBase::init_type(). |
|
Definition at line 609 of file vrpnClient.cxx. References _analogs, VrpnAnalog::get_analog_name(), and VrpnAnalog::is_empty(). Referenced by disconnect_analog_device(). |
|
Definition at line 558 of file vrpnClient.cxx. References _buttons, VrpnButton::get_button_name(), and VrpnButton::is_empty(). Referenced by disconnect_button_device(). |
|
Definition at line 660 of file vrpnClient.cxx. References _dials, VrpnDial::get_dial_name(), and VrpnDial::is_empty(). Referenced by disconnect_dial_device(). |
|
Definition at line 507 of file vrpnClient.cxx. References _trackers, VrpnTracker::get_tracker_name(), and VrpnTracker::is_empty(). Referenced by disconnect_tracker_device(). |
|
Definition at line 583 of file vrpnClient.cxx. References _analogs, and _connection. |
|
Definition at line 532 of file vrpnClient.cxx. References _buttons, and _connection. |
|
Reimplemented from ClientBase. Definition at line 104 of file vrpnClient.h. |
|
Definition at line 634 of file vrpnClient.cxx. References _connection, and _dials. |
|
|
|
Definition at line 481 of file vrpnClient.cxx. References _connection, and _trackers. |
|
Reimplemented from ClientBase. Definition at line 112 of file vrpnClient.h. References ClientBase::get_class_type(). |
|
Reimplemented from ClientBase. Definition at line 107 of file vrpnClient.h. References ClientBase::get_class_type(), ClientBase::init_type(), and register_type(). Referenced by ConfigureFn(). |
|
Referenced by write(). |
|
Referenced by write(). |
|
|
|
|
|
|
|
|
|
Reimplemented from ClientBase. |
|
Definition at line 77 of file vrpnClient.cxx. References _analogs, _buttons, _dials, _server_name, _trackers, indent(), is_connected(), is_valid(), VrpnDial::write(), VrpnAnalog::write(), VrpnButton::write(), and VrpnTracker::write(). |
|
Reimplemented from ClientBase. Definition at line 44 of file vrpnClient.h. |
|
Definition at line 99 of file vrpnClient.h. Referenced by do_poll(), free_analog(), get_analog(), and write(). |
|
Definition at line 98 of file vrpnClient.h. Referenced by do_poll(), free_button(), get_button(), and write(). |
|
Definition at line 90 of file vrpnClient.h. Referenced by get_analog(), get_button(), get_dial(), get_tracker(), and ~VrpnClient(). |
|
Definition at line 100 of file vrpnClient.h. Referenced by do_poll(), free_dial(), get_dial(), and write(). |
|
Definition at line 89 of file vrpnClient.h. |
|
Definition at line 97 of file vrpnClient.h. Referenced by do_poll(), free_tracker(), get_tracker(), and write(). |
|
Reimplemented from ClientBase. Definition at line 34 of file vrpnClient.cxx. |
|
Reimplemented from ClientBase. Definition at line 58 of file vrpnClient.h. |