gramods
|
This buttons tracker reports button states as specified in the samples of the node. More...
#include <TimeSampleButtonsTracker.hh>
Classes | |
struct | Impl |
Public Member Functions | |
void | addTime (double t) |
Adds a time sample in seconds, from the start of the program. More... | |
void | addButtons (size_t b) |
Adds a button states sample as an integer where the least significant bit represents the main button. More... | |
bool | getButtons (ButtonsSample &b) override |
Replaces the contents of p with button data. More... | |
![]() | |
virtual std::string | getDefaultKey () override |
Returns the default key, in Configuration, for the Object. 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... | |
Static Public Attributes | |
static gramods::gmCore::OFactory::OFactoryInformation | _gm_ofi |
Additional Inherited Members | |
![]() | |
typedef std::chrono::steady_clock | clock |
This buttons tracker reports button states as specified in the samples of the node.
void gramods::gmTrack::TimeSampleButtonsTracker::addButtons | ( | size_t | b | ) |
Adds a button states sample as an integer where the least significant bit represents the main button.
XML-attribute: buttons
void gramods::gmTrack::TimeSampleButtonsTracker::addTime | ( | double | t | ) |
Adds a time sample in seconds, from the start of the program.
There must be at least two time samples as well as an equal amount of time samples and amount of button samples.
XML-attribute: time
|
overridevirtual |
Replaces the contents of p with button data.
Implements gramods::gmTrack::ButtonsTracker.