vrpn  07.33
Virtual Reality Peripheral Network
vrpn_Tracker_Wintracker.h
Go to the documentation of this file.
1 /*
2  * vrpn_Tracker_Wintracker.h
3  *
4  * Created on: Dec 11, 2012
5  * Author: Emiliano Pastorelli - Institute of Cybernetics, Tallinn (Estonia)
6  */
7 
8 #ifndef VRPN_TRACKER_WINTRACKER_H_
9 #define VRPN_TRACKER_WINTRACKER_H_
10 
11 #include "vrpn_Configure.h"
12 #include "vrpn_HumanInterface.h"
13 #include "vrpn_Tracker.h"
14 
15 
16 #if defined(VRPN_USE_HID)
17 #include <string>
18 
20 
21  public:
22  vrpn_Tracker_Wintracker(const char * name, vrpn_Connection * trackercon, const char s0, const char s1, const char s2, const char ext, const char hemisphere);
23 
24  virtual void mainloop();
25 
26  virtual void on_data_received(size_t bytes, vrpn_uint8 *buffer);
27 
28 protected:
29  std::string _name;
31 
33  struct timeval _timestamp;
34 };
35 #endif
36 
37 #endif /* VRPN_TRACKER_WINTRACKER_H_ */
virtual void on_data_received(size_t bytes, vrpn_uint8 *buffer)=0
Derived class reimplements this callback.
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 ...