AnimationClip contains one or more curves that animate different attributes.
More...
#include <MultiWidgets/AnimationClip.hpp>
AnimationClip contains one or more curves that animate different attributes.
- Examples:
- AnimationExample.cpp.
AnimationClip wrapping.
| Enumerator |
|---|
| ONCE |
Play once.
|
| LOOP |
Looping playback.
|
| PING_PONG |
Animation is played back and forth.
|
| CLAMP |
Play once and keep the last key frame value.
|
| MultiWidgets::AnimationClip::AnimationClip |
( |
const AnimationClip & |
clip | ) |
|
|
inline |
Construct a copy.
- Parameters
-
| clip | animation clip to copy |
| void MultiWidgets::AnimationClip::evaluate |
( |
float |
t, |
|
|
Valuable::Node & |
node |
|
) |
| const |
|
inline |
Evaluate the animation clip at given point and apply the results to the given node.
- Parameters
-
| t | point to evaluate the curve at |
| node | node to apply the results to |
| float MultiWidgets::AnimationClip::length |
( |
| ) |
const |
|
inline |
Get the length of the animation clip.
Returns the length of the longest animation curve.
- Returns
- length of the animation clip
Copy an animation clip.
- Parameters
-
| clip | animation clip to copy |
- Returns
- reference to this
| void MultiWidgets::AnimationClip::setCurve |
( |
const QByteArray & |
relativeAttributePath, |
|
|
const IAnimationCurve & |
curve |
|
) |
| |
|
inline |
Specify an animation curve to animate the given attribute.
- Parameters
-
| relativeAttributePath | relative path to the attribute to animate |
| curve | curve to animate with |
- Examples:
- AnimationExample.cpp.
| void MultiWidgets::AnimationClip::setWrapMode |
( |
WrapMode |
mode | ) |
|
|
inline |
| WrapMode MultiWidgets::AnimationClip::wrapMode |
( |
| ) |
const |
|
inline |
Get the wrap mode for the clip.
- Returns
- wrap mode for the clip