1#ifndef VRPN_3DMICROSCRIBE_H
2#define VRPN_3DMICROSCRIBE_H
4#include "vrpn_Button.h"
5#include "vrpn_Configure.h"
6#include "vrpn_Connection.h"
7#include "vrpn_Shared.h"
8#include "vrpn_Tracker.h"
18 const char * Port,
long int BaudRate,
19 float OffsetX = 0.0f,
float OffsetY = 0.0f,
float OffsetZ = 0.0f,
37 unsigned char buf[512];
39 struct timeval timestamp;
41 void ConvertOriToQuat(
float ori[3]);
50 = vrpn_CONNECTION_LOW_LATENCY);
53 virtual void report (vrpn_uint32 class_of_service
54 = vrpn_CONNECTION_LOW_LATENCY);
定义 vrpn_3DMicroscribe.h:13
virtual int get_report(void)
report received, 0 otherwise. Sets status to current mode.
virtual void clear_values(void)
Set all buttons, analogs and encoders back to 0
virtual void mainloop()
Called once through each main loop iteration to handle updates.
int m_PortNumber
port number
定义 vrpn_3DMicroscribe.h:32
virtual int reset(void)
Set device back to starting config
int bufpos
Current char pos in buffer
定义 vrpn_3DMicroscribe.h:38
long int m_BaudRate
baud rate
定义 vrpn_3DMicroscribe.h:33
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
定义 vrpn_3DMicroscribe.h:36
virtual void report_changes(vrpn_uint32 class_of_service=vrpn_CONNECTION_LOW_LATENCY)
send report if changed
Generic connection class not specific to the transport mechanism.
定义 vrpn_Connection.h:562