vrpn 07.35
Virtual Reality Peripheral Network
 
Loading...
Searching...
No Matches
vrpn_Tracker_3DMouse.h
Go to the documentation of this file.
1#ifndef __TRACKER_3DMOUSE_H
2#define __TRACKER_3DMOUSE_H
3
4#include "vrpn_Button.h" // for vrpn_Button_Filter
5#include "vrpn_Configure.h" // for VRPN_API
6#include "vrpn_Tracker.h" // for vrpn_Tracker_Serial
7
9
11
12 public:
13
14 vrpn_Tracker_3DMouse(const char *name,
16 const char *port = "/dev/ttyS1",
17 long baud = 19200,
18 int filtering_count = 1);
19
21
23 virtual void mainloop();
24
25
26 protected:
27
28 virtual void reset();
29 virtual int get_report(void);
30 bool set_filtering_count(int count);
31 virtual void clear_values(void);
32
33 unsigned char _buffer[2048];
36 int _count;
37};
38
39#endif
vrpn_Button_Filter(const char *, vrpn_Connection *c=NULL)
Generic connection class not specific to the transport mechanism.
unsigned char _buffer[2048]
vrpn_Tracker_3DMouse(const char *name, vrpn_Connection *c, const char *port="/dev/ttyS1", long baud=19200, int filtering_count=1)
bool set_filtering_count(int count)
virtual void clear_values(void)
virtual void reset(void)=0
Reset the tracker.
virtual void mainloop()
Uses the get_report, send_report, and reset routines to implement a server.
virtual int get_report(void)=0
Gets a report if one is available, returns 0 if not, 1 if complete report.
vrpn_Tracker_Serial(const char *name, vrpn_Connection *c, const char *port="/dev/ttyS1", long baud=38400)
#define VRPN_API
class VRPN_API vrpn_Connection