vrpn 07.35
Virtual Reality Peripheral Network
 
Loading...
Searching...
No Matches
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
28protected:
29 std::string _name;
31
33 struct timeval _timestamp;
34};
35#endif
36
37#endif /* VRPN_TRACKER_WINTRACKER_H_ */
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_HidInterface(vrpn_HidAcceptor *acceptor, vrpn_uint16 vendor=0, vrpn_uint16 product=0, hid_device *device=NULL)
Constructor If we already have a HID device from some other source, it can be passed and we'll take o...
virtual void on_data_received(size_t bytes, vrpn_uint8 *buffer)=0
Derived class reimplements this callback.
vrpn_Tracker_Wintracker(const char *name, vrpn_Connection *trackercon, const char s0, const char s1, const char s2, const char ext, const char hemisphere)
vrpn_Tracker(const char *name, vrpn_Connection *c=NULL, const char *tracker_cfg_file_name=NULL)
#define VRPN_API