gramods
Classes | Public Member Functions | Static Public Attributes | List of all members
gramods::gmTrack::VrpnAnalogsTracker Class Reference

Analogs tracker reading data off a VRPN server. More...

#include <VrpnAnalogsTracker.hh>

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

Classes

struct  Impl
 

Public Member Functions

void update (gmCore::Updateable::clock::time_point, size_t) override
 Updates the animation. More...
 
void setConnectionString (std::string id)
 The address to the button tracker at the VRPN server, such as "tracker@localhost". More...
 
bool getAnalogs (AnalogsSample &b) override
 Replaces the contents of p with analog data. More...
 
- Public Member Functions inherited from gramods::gmTrack::AnalogsTracker
virtual std::string getDefaultKey () override
 Returns the default key, in Configuration, for the Object. 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...
 
- Public Member Functions inherited from gramods::gmCore::Updateable
 Updateable (int priority=0)
 Configures the Updateable properties to the specified priority. More...
 
virtual void update (clock::time_point t, size_t frame)=0
 Called by updateAll to make the object up-to-date. More...
 

Static Public Attributes

static gramods::gmCore::OFactory::OFactoryInformation _gm_ofi
 

Additional Inherited Members

- Public Types inherited from gramods::gmTrack::AnalogsTracker
typedef std::chrono::steady_clock clock
 
- Public Types inherited from gramods::gmCore::Updateable
typedef std::chrono::steady_clock clock
 
- Static Public Member Functions inherited from gramods::gmCore::Updateable
static void updateAll (clock::time_point t=clock::now(), std::optional< size_t > frame=std::nullopt)
 Updates all currently instanciated updateable objects. More...
 

Detailed Description

Analogs tracker reading data off a VRPN server.

This class configures as an Updateable with a priority of

  1. Either Updateable::updateAll or update must be called at even intervals. This is done automatically by gm-load.

Member Function Documentation

◆ getAnalogs()

bool gramods::gmTrack::VrpnAnalogsTracker::getAnalogs ( AnalogsSample b)
overridevirtual

Replaces the contents of p with analog data.

Implements gramods::gmTrack::AnalogsTracker.

◆ setConnectionString()

void gramods::gmTrack::VrpnAnalogsTracker::setConnectionString ( std::string  id)

The address to the button tracker at the VRPN server, such as "tracker@localhost".

XML-attribute: connectionString

◆ update()

void gramods::gmTrack::VrpnAnalogsTracker::update ( gmCore::Updateable::clock::time_point  ,
size_t   
)
override

Updates the animation.


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