gramods
Loading...
Searching...
No Matches
VrpnButtonsTracker.hh
1
2#ifndef GRAMODS_TRACK_VRPNBUTTONSTRACKER
3#define GRAMODS_TRACK_VRPNBUTTONSTRACKER
4
5#include <gmTrack/ButtonsTracker.hh>
6
7#ifdef gramods_ENABLE_VRPN
8
9#include <gmCore/OFactory.hh>
10#include <gmCore/Updateable.hh>
11
12BEGIN_NAMESPACE_GMTRACK;
13
22 : public ButtonsTracker,
23 public gmCore::Updateable {
24
25public:
26
29
33 void update(gmCore::Updateable::clock::time_point time,
34 size_t frame) override;
35
42 void setConnectionString(std::string id);
43
47 bool getButtons(ButtonsSample &p) override;
48
49 GM_OFI_DECLARE;
50
51private:
52 struct Impl;
53 std::unique_ptr<Impl> _impl;
54};
55
56END_NAMESPACE_GMTRACK;
57
58#endif
59
60#endif
The Updateable class defines an interface for objects that may be updated, for example each execution...
Definition Updateable.hh:18
The base of ButtonsTrackers, reporting button states.
Definition ButtonsTracker.hh:18
Buttons tracker reading data off a VRPN server.
Definition VrpnButtonsTracker.hh:23
A sample containing the state of any number of buttons.
Definition ButtonsTracker.hh:27
Definition VrpnButtonsTracker.cpp:16