vrpn 07.35
Virtual Reality Peripheral Network
 
Loading...
Searching...
No Matches
vrpn_Tracker_SpacePoint.h
Go to the documentation of this file.
1/*
2 * vrpn_Tracker_SpacePoint.h
3 *
4 * Created on: Nov 22, 2010
5 * Author: janoc
6 */
7
8#ifndef VRPN_TRACKER_SPACEPOINT_H_
9#define VRPN_TRACKER_SPACEPOINT_H_
10
11#include <stddef.h> // for size_t
12
13#include "vrpn_Button.h" // for vrpn_Button
14#include "vrpn_Configure.h" // for VRPN_API, VRPN_USE_HID
15#include "vrpn_HumanInterface.h" // for vrpn_HidInterface
16#include "vrpn_Shared.h" // for timeval
17#include "vrpn_Tracker.h" // for vrpn_Tracker
18#include "vrpn_Types.h" // for vrpn_uint8
19
21
22#ifdef VRPN_USE_HID
23
25{
26 public:
27 vrpn_Tracker_SpacePoint(const char * name, vrpn_Connection * trackercon, int index = 0);
28
29 virtual void mainloop ();
30
31 virtual void on_data_received(size_t bytes, vrpn_uint8 *buffer);
32
33 protected:
35 struct timeval _timestamp;
36};
37
38#endif
39
40#endif /* VRPN_TRACKER_SPACEPOINT_H_ */
virtual void mainloop()=0
Called once through each main loop iteration to handle updates. Remote object mainloop() should call ...
vrpn_Button(const char *name, vrpn_Connection *c=NULL)
Definition vrpn_Button.C:91
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_SpacePoint(const char *name, vrpn_Connection *trackercon, int index=0)
vrpn_Tracker(const char *name, vrpn_Connection *c=NULL, const char *tracker_cfg_file_name=NULL)
#define VRPN_API
class VRPN_API vrpn_Connection