gramods
Classes | Public Types | Public Member Functions | List of all members
gramods::gmTrack::AnalogsTracker Class Referenceabstract

The base of AnalogsTrackers. More...

#include <AnalogsTracker.hh>

Inheritance diagram for gramods::gmTrack::AnalogsTracker:
Inheritance graph
[legend]
Collaboration diagram for gramods::gmTrack::AnalogsTracker:
Collaboration graph
[legend]

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...
 
- Public Member Functions inherited from gramods::gmCore::Object
 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...
 

Detailed Description

The base of AnalogsTrackers.

Member Function Documentation

◆ getAnalogs()

virtual bool gramods::gmTrack::AnalogsTracker::getAnalogs ( AnalogsSample b)
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.

◆ getDefaultKey()

virtual std::string gramods::gmTrack::AnalogsTracker::getDefaultKey ( )
inlineoverridevirtual

Returns the default key, in Configuration, for the Object.

Reimplemented from gramods::gmCore::Object.


The documentation for this class was generated from the following file: