1#ifndef VRPN_3DMICROSCRIBE_H
2#define VRPN_3DMICROSCRIBE_H
18 const char * Port,
long int BaudRate,
19 float OffsetX = 0.0f,
float OffsetY = 0.0f,
float OffsetZ = 0.0f,
27 virtual int reset(
void);
37 unsigned char buf[512];
53 virtual void report (vrpn_uint32 class_of_service
virtual void clear_values(void)
Set all buttons, analogs and encoders back to 0.
virtual void report(vrpn_uint32 class_of_service=vrpn_CONNECTION_LOW_LATENCY)
send report whether or not changed
int _numbuttons
How many buttons to open.
int m_PortNumber
port number
unsigned char buf[512]
Buffer of characters in report,.
long int m_BaudRate
baud rate
int bufpos
Current char pos in buffer.
void ConvertOriToQuat(float ori[3])
virtual int get_report(void)
Try to read reports from the device. Returns 1 if a complete report received, 0 otherwise....
struct timeval timestamp
Time of the last report from the device.
vrpn_3DMicroscribe(const char *name, vrpn_Connection *c, const char *Port, long int BaudRate, float OffsetX=0.0f, float OffsetY=0.0f, float OffsetZ=0.0f, float Scale=1.0f)
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.
vrpn_Tracker(const char *name, vrpn_Connection *c=NULL, const char *tracker_cfg_file_name=NULL)
const vrpn_uint32 vrpn_CONNECTION_LOW_LATENCY