A container animation object that holds several animations and executes them in order.
More...
#include <chain.h>
|
| Chain (int id=0) |
|
bool | isFinished () override |
|
bool | isReady () const override |
|
AnimationType::Status | gotoTime (juce::int64 timeInMs) override |
| Advance all active animations to this point in time.
|
|
void | cancel (bool moveToEndPosition) override |
| Cancel an in-progress animation, optionally moving directly to its end value.
|
|
void | addAnimation (std::unique_ptr< AnimationType > effect) |
|
AnimatedValue * | getValue (size_t index) override |
| Retrieve a pointer to one of this animation's value objects.
|
|
| AnimationType (int id) |
|
int | getId () const |
|
void | setDelay (int delay) |
|
virtual bool | setValue (size_t, std::unique_ptr< AnimatedValue >) |
|
virtual Status | gotoTime (juce::int64 timeInMs)=0 |
| Advance all active animations to this point in time.
|
|
virtual void | cancel (bool moveToEndPosition)=0 |
| Cancel an in-progress animation, optionally moving directly to its end value.
|
|
virtual bool | isFinished ()=0 |
|
virtual bool | isReady () const =0 |
|
virtual AnimatedValue * | getValue (size_t index)=0 |
| Retrieve a pointer to one of this animation's value objects.
|
|
void | onCompletion (CompletionFn complete) |
|
|
std::vector< std::unique_ptr< AnimationType > > | sequence |
| the vector that owns our chain of effects.
|
|
int | currentEffect { 0 } |
| index (into the sequence vector) of the effect that we are currently processing.
|
|
int | animationId { 0 } |
| optional ID value for this animation.
|
|
int | preDelay { 0 } |
| an optional pre-delay before beginning to execute the effect.
|
|
A container animation object that holds several animations and executes them in order.
This differs from the Sequence class in that the animations in a Chain do not need to use the same number of values.
- See also
- Sequence
◆ cancel()
void friz::Chain::cancel |
( |
bool |
moveToEndPosition | ) |
|
|
inlineoverridevirtual |
Cancel an in-progress animation, optionally moving directly to its end value.
- Parameters
-
moveToEndPosition | if true, go immediately to the end value. |
Implements friz::AnimationType.
◆ getEffect()
Get a pointer to one of our effects by its index.
- Parameters
-
- Returns
- nullptr if index is out of range.
◆ getValue()
Retrieve a pointer to one of this animation's value objects.
- Parameters
-
- Returns
- AnimatedValue*
Implements friz::AnimationType.
◆ gotoTime()
Advance all active animations to this point in time.
- Parameters
-
timeInMs | Time since some fixed event; only used internally to calculate deltas. |
- Returns
- Status either processing or finished.
Implements friz::AnimationType.
◆ isFinished()
bool friz::Chain::isFinished |
( |
| ) |
|
|
inlineoverridevirtual |
◆ isReady()
bool friz::Chain::isReady |
( |
| ) |
const |
|
inlineoverridevirtual |
The documentation for this class was generated from the following file: