gramods
|
The base of AnalogsTrackers. More...
#include <AnalogsTracker.hh>
Classes | |
struct | AnalogsSample |
Public Types | |
typedef std::chrono::steady_clock | clock |
Public Member Functions | |
virtual std::string | getDefaultKey () override |
Returns the default key, in Configuration, for the Object. More... | |
virtual bool | getAnalogs (AnalogsSample &b)=0 |
Replaces the contents of p with analogs data. More... | |
![]() | |
Object () | |
Initializes internal data. More... | |
virtual | ~Object () |
Cleaning up internal data. More... | |
virtual void | initialize () |
Called to initialize the Object. More... | |
virtual void | accept (Visitor *visitor) |
Calls the visitors apply method with this as argument. More... | |
virtual void | traverse (Visitor *visitor) |
Calls the child Object's accept method, if such exist. More... | |
bool | isInitialized () |
Returns true if the Object is initialized. More... | |
The base of AnalogsTrackers.
|
pure virtual |
Replaces the contents of p with analogs data.
Returns true if data could be read, false otherwise. Use sample time to check if data are fresh.
Implemented in gramods::gmTrack::AnalogsMapper, gramods::gmTrack::VrpnAnalogsTracker, gramods::gmTrack::OpenVRAnalogsTracker, and gramods::gmTrack::TimeSampleAnalogsTracker.
|
inlineoverridevirtual |
Returns the default key, in Configuration, for the Object.
Reimplemented from gramods::gmCore::Object.