NAP
Public Member Functions | List of all members
FluxMeasurementComponentInstance Class Reference

#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)
 
- Public Member Functions inherited from ComponentInstance
 ComponentInstance (EntityInstance &entity, Component &resource)
 
nap::EntityInstancegetEntityInstance () const
 
nap::ComponentgetComponent () const
 
template<typename T >
T * getComponent () const
 
virtual bool init (utility::ErrorState &errorState)
 
- Public Member Functions inherited from Object
 Object ()
 
virtual ~Object ()
 
virtual void onDestroy ()
 
 Object (Object &)=delete
 
Objectoperator= (const Object &)=delete
 
 Object (Object &&)=delete
 
Objectoperator= (Object &&)=delete
 

Additional Inherited Members

- Static Public Member Functions inherited from Object
static bool isIDProperty (rtti::Instance &object, const rtti::Property &property)
 
- Public Attributes inherited from Object
std::string mID
 Property: 'mID' unique name of the object. Used as an identifier by the system. More...
 

Description

Instance of component to measure onsets of the audio signal from an audio component.

Inheritance diagram for FluxMeasurementComponentInstance:
[legend]
Collaboration diagram for FluxMeasurementComponentInstance:
[legend]

Constructor & Destructor Documentation

◆ FluxMeasurementComponentInstance()

Member Function Documentation

◆ getFlux()

float getFlux ( ) const
Returns
the computed flux value between 0.0 and 1.0

◆ init()

bool init ( utility::ErrorState errorState)
overridevirtual

Initializes this component based on it's resource.

Parameters
errorStatecontains the error when initialization fails.
Returns
if initialization succeeded.

Reimplemented from ComponentInstance.

◆ setDecay()

void setDecay ( float  decay)

Sets the decay factor

Parameters
thedecay factor

◆ setScale()

void setScale ( float  scale)

Sets the scaling factor

Parameters
thescaling factor

◆ update()

virtual void update ( double  deltaTime)
overridevirtual

Update this component

Parameters
deltaTimethe time in between cooks in seconds

Reimplemented from ComponentInstance.