vrpn  07.33
Virtual Reality Peripheral Network
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,
15  vrpn_Connection *c,
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
virtual int get_report(void)=0
Gets a report if one is available, returns 0 if not, 1 if complete report.
virtual void reset(void)=0
Reset the tracker.
Generic connection class not specific to the transport mechanism.
#define VRPN_API
virtual void mainloop()=0
Called once through each main loop iteration to handle updates. Remote object mainloop() should call ...
All button servers should derive from this class, which provides the ability to turn any of the butto...
Definition: vrpn_Button.h:65