#include <vrpn_Magellan.h>
Class diagram for vrpn_Magellan:

Public Members | |||
![]() | ![]() | vrpn_Magellan (const char * name, vrpn_Connection * c, const char * port, int baud) | |
![]() | ![]() | ~vrpn_Magellan () | |
![]() | ![]() | virtual void | mainloop () |
![]() | ![]() | Called once through each main loop iteration to handle updates. | |
![]() | ![]() | virtual int | reset (void) |
![]() | ![]() | Set device back to starting config. | |
Protected Members | |||
![]() | ![]() | virtual void | clear_values (void) |
![]() | ![]() | Set all buttons, analogs and encoders back to 0. | |
![]() | ![]() | virtual int | get_report (void) |
![]() | ![]() | Try to read a report from the device. Returns 1 if complete report received, 0 otherwise. Sets _status to match current status. | |
![]() | ![]() | virtual void | report_changes (vrpn_uint32 class_of_service = vrpn_CONNECTION_LOW_LATENCY) |
![]() | ![]() | send report iff changed. | |
![]() | ![]() | virtual void | report (vrpn_uint32 class_of_service = vrpn_CONNECTION_LOW_LATENCY) |
![]() | ![]() | send report whether or not changed. | |
![]() | ![]() | int | _status |
![]() | ![]() | Used by mainloop() and get_report(). | |
![]() | ![]() | int | _numbuttons |
![]() | ![]() | How many buttons to open. | |
![]() | ![]() | int | _numchannels |
![]() | ![]() | How many analog channels to open. | |
![]() | ![]() | int | _expected_chars |
![]() | ![]() | How many characters to expect in the report. | |
![]() | ![]() | unsigned char | _buffer [512] |
![]() | ![]() | Buffer of characters in report. | |
![]() | ![]() | int | _bufcount |
![]() | ![]() | How many characters we have so far. | |
![]() | ![]() | int | _null_radius |
![]() | ![]() | The range over which no motion should be reported. | |
![]() | ![]() | struct timeval | timestamp |
![]() | ![]() | Time of the last report from the device. | |
| vrpn_Magellan::vrpn_Magellan (const char * name, vrpn_Connection * c, const char * port, int baud) |
vrpn_Magellan::~vrpn_Magellan () [inline]
|
virtual void vrpn_Magellan::mainloop (void) [virtual]
|
virtual int vrpn_Magellan::reset (void) [virtual]
|
Set device back to starting config.
virtual void vrpn_Magellan::clear_values (void) [protected, virtual]
|
Set all buttons, analogs and encoders back to 0.
virtual int vrpn_Magellan::get_report (void) [protected, virtual]
|
Try to read a report from the device. Returns 1 if complete report received, 0 otherwise. Sets _status to match current status.
virtual void vrpn_Magellan::report_changes (vrpn_uint32 class_of_service = vrpn_CONNECTION_LOW_LATENCY) [protected, virtual]
|
virtual void vrpn_Magellan::report (vrpn_uint32 class_of_service = vrpn_CONNECTION_LOW_LATENCY) [protected, virtual]
|
int vrpn_Magellan::_status [protected]
|
Used by mainloop() and get_report().
int vrpn_Magellan::_numbuttons [protected]
|
How many buttons to open.
int vrpn_Magellan::_numchannels [protected]
|
How many analog channels to open.
int vrpn_Magellan::_expected_chars [protected]
|
How many characters to expect in the report.
unsigned char vrpn_Magellan::_buffer[512] [protected]
|
Buffer of characters in report.
int vrpn_Magellan::_bufcount [protected]
|
How many characters we have so far.
int vrpn_Magellan::_null_radius [protected]
|
The range over which no motion should be reported.
struct timeval vrpn_Magellan::timestamp [protected]
|
1.0.0 written by Dimitri van Heesch,
© 1997-1999