|
0.45.0
|
#include <iClip.h>
Public Member Functions | |
| ~iClip ()=default | |
| void | addAnimation (iAnimationPtr animation) |
| void | removeAnimation (iAnimationPtr animation) |
| const std::vector< iAnimationPtr > & | getAnimations () const |
| const iaTime & | getStart () |
| const iaTime & | getStop () |
| const iaTime & | getDuration () |
| void | setEasingFunction (iaEasing::iaEasingFunction interpolationFunction) |
| iaEasing::iaEasingFunction | getEasingFunction () const |
| void | setLooped (bool loop=true) |
| bool | isLooped () const |
| void | setRandomStart (bool randomStart) |
| bool | hasRandomStart () const |
| float64 | getNormalizedTime (const iaTime &startTime, const iaTime &time) |
Static Public Member Functions | |
| static iClipPtr | createClip (const std::vector< iAnimationPtr > &animations=std::vector< iAnimationPtr >(), bool looped=true, bool randomStart=false, iaEasing::iaEasingFunction easingFunction=iaEasing::iaEasingFunction::Linear) |
clip to time an animation
|
default |
does nothing
| void igor::iClip::addAnimation | ( | iAnimationPtr | animation | ) |
adds animation to this clip
| animation | the to add |
|
static |
create clip
| animations | list of animations to bind to this clip |
| looped | if true clip is looped |
| randomStart | if true clip starts with a random offset |
| easingFunction | the easing function to use (default linear) |
| const std::vector< iAnimationPtr > & igor::iClip::getAnimations | ( | ) | const |
| const iaTime & igor::iClip::getDuration | ( | ) |
| iaEasing::iaEasingFunction igor::iClip::getEasingFunction | ( | ) | const |
Where 0.0 represents the start and 1.0 the stop time If the time given is before start the returns value is 0.0 If the time given is after stop the returns value is 1.0
| startTime | the time this clip was started to playback |
| time | the time we want to normalize |
| const iaTime & igor::iClip::getStart | ( | ) |
| const iaTime & igor::iClip::getStop | ( | ) |
| bool igor::iClip::hasRandomStart | ( | ) | const |
| bool igor::iClip::isLooped | ( | ) | const |
| void igor::iClip::removeAnimation | ( | iAnimationPtr | animation | ) |
removes animation from this clip
| animation | the to remove |
| void igor::iClip::setEasingFunction | ( | iaEasing::iaEasingFunction | interpolationFunction | ) |
sets the interpolation function
only has an effect on deriving classes that respect the easing function like iClipTransform
| interpolationFunction | the interpolation function type to set |
| void igor::iClip::setLooped | ( | bool | loop = true | ) |
sets if this evaluation runs in an endless loop
| void igor::iClip::setRandomStart | ( | bool | randomStart | ) |
sets random start time flag
This flag can be used to have an animation playback with a random offset so copies of an animation don't appear too artificially synchronous