#include </opt/build/repo/nap/system_modules/napfft/src/fluxmeasurementcomponent.h>
Public Member Functions | |
FluxMeasurementComponentInstance (EntityInstance &entity, Component &resource) | |
bool | init (utility::ErrorState &errorState) override |
virtual void | update (double deltaTime) override |
float | getFlux () const |
void | setDecay (float decay) |
void | setScale (float scale) |
![]() | |
ComponentInstance (EntityInstance &entity, Component &resource) | |
nap::EntityInstance * | getEntityInstance () const |
nap::Component * | getComponent () const |
template<typename T > | |
T * | getComponent () const |
virtual bool | init (utility::ErrorState &errorState) |
![]() | |
Object () | |
virtual | ~Object () |
virtual void | onDestroy () |
Object (Object &)=delete | |
Object & | operator= (const Object &)=delete |
Object (Object &&)=delete | |
Object & | operator= (Object &&)=delete |
Additional Inherited Members | |
![]() | |
static bool | isIDProperty (rtti::Instance &object, const rtti::Property &property) |
![]() | |
std::string | mID |
Property: 'mID' unique name of the object. Used as an identifier by the system. More... | |
Instance of component to measure onsets of the audio signal from an audio component.
FluxMeasurementComponentInstance | ( | EntityInstance & | entity, |
Component & | resource | ||
) |
float getFlux | ( | ) | const |
|
overridevirtual |
Initializes this component based on it's resource.
errorState | contains the error when initialization fails. |
Reimplemented from ComponentInstance.
void setDecay | ( | float | decay | ) |
Sets the decay factor
the | decay factor |
void setScale | ( | float | scale | ) |
Sets the scaling factor
the | scaling factor |
|
overridevirtual |
Update this component
deltaTime | the time in between cooks in seconds |
Reimplemented from ComponentInstance.