ImFusion SDK 4.3
AnimationBackendDummy Class Reference

#include <ImFusion/GUI/Animations.h>

Dummy implementation of the AnimationBackendBase interface that will not execute any animation but only call its update() function exactly once with t=1.0. More...

+ Inheritance diagram for AnimationBackendDummy:

Detailed Description

Dummy implementation of the AnimationBackendBase interface that will not execute any animation but only call its update() function exactly once with t=1.0.

You can use this backend in the absence of a suitable event loop

Protected Member Functions

void runImpl (std::shared_ptr< Animation > animation) override
 Called by the base interface once animation is fully configured and ready to dispatch.
 
- Protected Member Functions inherited from AnimationBackendBase
void setAnimationState (Animation &animation, Animation::State newState) const
 
- Protected Member Functions inherited from SignalReceiver
void disconnectAll ()
 Disconnects all existing connections.
 

Additional Inherited Members

- Public Member Functions inherited from AnimationBackendBase
void run (std::shared_ptr< Animation > animation, const std::optional< UniqueId > &uniqueId=std::nullopt)
 Dispatches the given animation canceling any running animation with the same ID if applicable.
 
void cancelAllAnimations ()
 Cancels all animations currently in flight.
 
bool isEnabled () const
 Returns the flag whether dispatching of new animations is enabled.
 
void setEnabled (bool value)
 Sets the flag whether dispatching of new animations is enabled.
 
double animationDurationFactor () const
 Returns the duration multiplier for run animations; enables you to change the speed of all animations consistently.
 
void setAnimationDurationFactor (double value)
 Sets the duration multiplier for run animations, must be >= 0; enables you to change the speed of all animations consistently.
 
- Public Member Functions inherited from SignalReceiver
 SignalReceiver ()=default
 Default constructor.
 
 SignalReceiver (const SignalReceiver &other)
 Copy constructor, does not copy any existing signal connections from other.
 
SignalReceiveroperator= (SignalReceiver rhs)
 Assignment operator, disconnects all existing connections, does not copy any existing signal connections from rhs.
 
virtual ~SignalReceiver ()
 Virtual destructor disconnects from all connected signals.
 

Member Function Documentation

◆ runImpl()

void runImpl ( std::shared_ptr< Animation > animation)
overrideprotectedvirtual

Called by the base interface once animation is fully configured and ready to dispatch.

Derived classes must take care of actually dispatching the animation so that the interface invariants are met.

Implements AnimationBackendBase.


The documentation for this class was generated from the following file:
Search Tab / S to search, Esc to close