|
gramods
|
Analogs tracker reading data off one or more keys in OpenVR. More...
#include <OpenVRFloatTracker.hh>
Classes | |
| struct | Impl |
Public Member Functions | |
| void | setOpenVR (std::shared_ptr< gmCore::OpenVR > openvr) |
| Set the OpenVR instance. | |
| void | addKey (std::string name) |
| Add an key to read out data from. | |
| std::optional< State > | get () override |
| void | traverse (Visitor *visitor) override |
| Propagates the specified visitor. | |
| Public Member Functions inherited from gramods::gmTrack::TrackerBase< float > | |
| std::string | getDefaultKey () override |
| Returns the default key, in Configuration, for the Object, i.e. | |
| Public Member Functions inherited from gramods::gmCore::Object | |
| Object () | |
| Initializes internal data. | |
| virtual | ~Object () |
| Cleaning up internal data. | |
| virtual void | initialize () |
| Called to initialize the Object. | |
| virtual void | accept (Visitor *visitor) |
| Calls the visitors apply method with this as argument. | |
| bool | isInitialized () |
| Returns true if the Object is initialized. | |
Static Public Attributes | |
| static gramods::gmCore::OFactory::OFactoryInformation | _gm_ofi |
Additional Inherited Members | |
| Public Types inherited from gramods::gmTrack::TrackerBase< float > | |
| typedef std::chrono::steady_clock | clock |
| typedef std::unordered_map< std::string, Sample > | State |
| Type of the tracker state. | |
| Static Public Member Functions inherited from gramods::gmTrack::TrackerBase< float > | |
| static void | merge (std::optional< State > &A, std::optional< State > B) |
| Merges the two specified states. | |
Analogs tracker reading data off one or more keys in OpenVR.
| void gramods::gmTrack::OpenVRFloatTracker::addKey | ( | std::string | name | ) |
Add an key to read out data from.
The data from all added keys will be concatenated into the resulting sample.
XML-attribute: key
|
overridevirtual |
Implements gramods::gmTrack::TrackerBase< float >.
| void gramods::gmTrack::OpenVRFloatTracker::setOpenVR | ( | std::shared_ptr< gmCore::OpenVR > | openvr | ) |
Set the OpenVR instance.
XML-attribute: openVR
|
overridevirtual |
Propagates the specified visitor.
Reimplemented from gramods::gmCore::Object.