vrpn
07.33
Virtual Reality Peripheral Network
|
Go to the documentation of this file.
28 struct timeval timestamp;
32 virtual vrpn_int32 encode_to(
char *buf, vrpn_int32 buflen, vrpn_int32 dial,
34 virtual void report_changes(
void);
35 virtual void report(
void);
52 vrpn_int32 numdials = 1,
53 vrpn_float64 spin_rate = 1.0,
54 vrpn_float64 update_rate = 10.0);
59 vrpn_float64 _update_rate;
73 typedef struct _vrpn_DIALCB {
74 struct timeval msg_time;
101 return d_callback_list.register_handler(userdata, handler);
106 return d_callback_list.unregister_handler(userdata, handler);
virtual int unregister_change_handler(void *userdata, vrpn_DIALCHANGEHANDLER handler)
virtual int register_change_handler(void *userdata, vrpn_DIALCHANGEHANDLER handler)
This structure is what is passed to a vrpn_Connection message callback.
virtual void mainloop()=0
Called once through each main loop iteration to handle updates. Remote object mainloop() should call ...
Generic connection class not specific to the transport mechanism.
virtual int register_types(void)=0
Register the types of messages this device sends/receives. Return 0 on success, -1 on fail.
void(VRPN_CALLBACK * vrpn_DIALCHANGEHANDLER)(void *userdata, const vrpn_DIALCB info)
Class from which all user-level (and other) classes that communicate with vrpn_Connections should der...
vrpn_Callback_List< vrpn_DIALCB > d_callback_list