#include <vrpn_nikon_controls.h>
Class diagram for vrpn_Nikon_Controls:

Public Members | |||
![]() | ![]() | vrpn_Nikon_Controls (const char *device_name, vrpn_Connection *con = NULL, const char *port_name = "com1") | |
![]() | ![]() | ~vrpn_Nikon_Controls (void) | |
![]() | ![]() | virtual void | mainloop () |
![]() | ![]() | This routine is called each time through the server's main loop. More... | |
Protected Members | |||
![]() | ![]() | virtual int | reset (void) |
![]() | ![]() | virtual int | get_report (void) |
![]() | ![]() | virtual void | report_changes (vrpn_uint32 class_of_service = vrpn_CONNECTION_LOW_LATENCY) |
![]() | ![]() | Send changes since the last time. | |
![]() | ![]() | virtual void | report (vrpn_uint32 class_of_service = vrpn_CONNECTION_LOW_LATENCY) |
![]() | ![]() | Send values whether or not they have changed. | |
![]() | ![]() | int | _status |
![]() | ![]() | unsigned char | _buffer [512] |
![]() | ![]() | int | _bufcount |
![]() | ![]() | double | _requested_focus |
![]() | ![]() | struct timeval | timestamp |
Static Protected Members | |||
![]() | ![]() | int | handle_request_message (void *userdata, vrpn_HANDLERPARAM p) |
![]() | ![]() | Responds to a request to change one of the values by setting the channel to that value. | |
![]() | ![]() | int | handle_connect_message (void *userdata, vrpn_HANDLERPARAM p) |
![]() | ![]() | Responds to a connection request with a report of the values. | |
| vrpn_Nikon_Controls::vrpn_Nikon_Controls (const char * device_name, vrpn_Connection * con = NULL, const char * port_name = "com1") |
vrpn_Nikon_Controls::~vrpn_Nikon_Controls (void) [inline]
|
void vrpn_Nikon_Controls::mainloop (void) [virtual]
|
This routine is called each time through the server's main loop.
It will take a course of action depending on the current status of the device, either trying to reset it or trying to get a reading from it. It will try to reset the device if no data has come from it for a couple of seconds.
Reimplemented from vrpn_BaseClass.
int vrpn_Nikon_Controls::reset (void) [protected, virtual]
|
int vrpn_Nikon_Controls::get_report (void) [protected, virtual]
|
virtual void vrpn_Nikon_Controls::report_changes (vrpn_uint32 class_of_service = vrpn_CONNECTION_LOW_LATENCY) [protected, virtual]
|
virtual void vrpn_Nikon_Controls::report (vrpn_uint32 class_of_service = vrpn_CONNECTION_LOW_LATENCY) [protected, virtual]
|
int vrpn_Nikon_Controls::handle_request_message (void * userdata, vrpn_HANDLERPARAM p) [static, protected]
|
Responds to a request to change one of the values by setting the channel to that value.
int vrpn_Nikon_Controls::handle_connect_message (void * userdata, vrpn_HANDLERPARAM p) [static, protected]
|
Responds to a connection request with a report of the values.
int vrpn_Nikon_Controls::_status [protected]
|
unsigned char vrpn_Nikon_Controls::_buffer[512] [protected]
|
int vrpn_Nikon_Controls::_bufcount [protected]
|
double vrpn_Nikon_Controls::_requested_focus [protected]
|
struct timeval vrpn_Nikon_Controls::timestamp [protected]
|
Reimplemented from vrpn_Analog.
1.0.0 written by Dimitri van Heesch,
© 1997-1999