friz
An animation control system for JUCE
Loading...
Searching...
No Matches
friz::Controller Class Referenceabstract
Inheritance diagram for friz::Controller:

Public Member Functions

 Controller (const Controller &)=delete
 
Controlleroperator= (const Controller &)=delete
 
 Controller (Controller &&)=delete
 
Controlleroperator= (Controller &&)=delete
 
void setAnimator (Animator *animator_)
 
virtual bool setFrameRate (int)
 
virtual float getFrameRate () const
 report the current frame rate, whether what was requested or the actual measured rate.
 
virtual void start ()=0
 Called whenever we need to start timer callbacks flowing.
 
virtual void stop ()=0
 Called whenever there are no more animations that need to be updated.
 
virtual bool isRunning () const =0
 Test to see if the timer is currently running.
 

Static Public Member Functions

static juce::int64 getCurrentTime ()
 Calculate the current time in milliseconds since some event, probably system start. Probably not accurate enough for e.g. musical purposes but more than accurate enough for visual animations.
 

Protected Attributes

Animatoranimator
 the animator object that owns us.
 

Member Function Documentation

◆ getCurrentTime()

juce::int64 friz::Controller::getCurrentTime ( )
static

Calculate the current time in milliseconds since some event, probably system start. Probably not accurate enough for e.g. musical purposes but more than accurate enough for visual animations.

Returns
int64 millisecond value.

◆ getFrameRate()

virtual float friz::Controller::getFrameRate ( ) const
inlinevirtual

report the current frame rate, whether what was requested or the actual measured rate.

Returns
float

Reimplemented in friz::TimeController, and friz::AsyncController.

◆ isRunning()

virtual bool friz::Controller::isRunning ( ) const
pure virtual

Test to see if the timer is currently running.

Implemented in friz::TimeController, and friz::AsyncController.

◆ setAnimator()

void friz::Controller::setAnimator ( Animator animator_)
inline

Point back at the Animator object that we're going to control.

◆ setFrameRate()

virtual bool friz::Controller::setFrameRate ( int  )
inlinevirtual

Set our frame rate to match that used in the animation we're controlling.

Parameters
frameRate

Reimplemented in friz::TimeController.

◆ start()

virtual void friz::Controller::start ( )
pure virtual

Called whenever we need to start timer callbacks flowing.

Implemented in friz::TimeController, and friz::AsyncController.

◆ stop()

virtual void friz::Controller::stop ( )
pure virtual

Called whenever there are no more animations that need to be updated.

Implemented in friz::TimeController, and friz::AsyncController.


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