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 ...
This is the base class for both the client and server for a button device (a device with one or more ...
Definition: vrpn_Button.h:31
Generic connection class not specific to the transport mechanism.
virtual void on_data_received(size_t bytes, vrpn_uint8 *buffer)=0
Derived class reimplements this callback.
#define VRPN_API