Pulp 1.88.0
Cross-platform audio plugin framework
Loading...
Searching...
No Matches
pulp::view::AnimatorSetBuilder::Runner Class Reference

Run the built animation. Advances through sequence, returns true when all done. More...

#include <animator_set.hpp>

Public Member Functions

 Runner (std::vector< std::unique_ptr< AnimationStep > > steps, std::string name={})
bool advance (float dt)
bool finished () const
void reset ()
void publish (std::string view_name, std::string metric_name, double value, motion::PublishOptions opts={}) const
 Publish the runner's current scalar through the motion publish channel, stamping the animator-set name (configured via AnimatorSetBuilder::name()) as provenance.
const motion::Provenance & motion_provenance () const noexcept

Detailed Description

Run the built animation. Advances through sequence, returns true when all done.

Constructor & Destructor Documentation

◆ Runner()

pulp::view::AnimatorSetBuilder::Runner::Runner ( std::vector< std::unique_ptr< AnimationStep > > steps,
std::string name = {} )
inlineexplicit

Member Function Documentation

◆ advance()

bool pulp::view::AnimatorSetBuilder::Runner::advance ( float dt)
inline

◆ finished()

bool pulp::view::AnimatorSetBuilder::Runner::finished ( ) const
inline

◆ motion_provenance()

const motion::Provenance & pulp::view::AnimatorSetBuilder::Runner::motion_provenance ( ) const
inlinenoexcept

◆ publish()

void pulp::view::AnimatorSetBuilder::Runner::publish ( std::string view_name,
std::string metric_name,
double value,
motion::PublishOptions opts = {} ) const
inline

Publish the runner's current scalar through the motion publish channel, stamping the animator-set name (configured via AnimatorSetBuilder::name()) as provenance.

◆ reset()

void pulp::view::AnimatorSetBuilder::Runner::reset ( )
inline

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