Developer Documentation
|
A handle used to refer to an animation or to a specific frame in an animation. More...
#include <Type-Skeleton/ObjectTypes/Skeleton/Animation/AnimationHandle.hh>
Public Member Functions | |
AnimationHandle () | |
Constructs an invalid animation handle (interpreted as handle of the reference pose) More... | |
AnimationHandle (size_t idAnimation, size_t iFrame=0) | |
Constructs a valid handle for the given animation and frame. More... | |
bool | isValid () const |
Returns true if the handle is valid. More... | |
size_t | animationIndex () const |
Returns the animation index (zero based) More... | |
size_t | frame () const |
Returns the selected frame (zero based) More... | |
void | setFrame (size_t _iFrame) |
Sets the current animation frame (not failsafe) More... | |
void | firstFrame () |
Returns to the first frame. More... | |
void | operator++ () |
Increases the handle to the next frame (not failsafe) More... | |
void | operator-- () |
Decreases the handle to the previous frame (not failsafe) More... | |
bool | operator== (const AnimationHandle &rhs) |
bool | operator!= (const AnimationHandle &rhs) |
Private Attributes | |
size_t | idAnimation |
The one based index of the animation, set to 0 for invalid (or reference pose) More... | |
size_t | iFrame |
The frame number. More... | |
A handle used to refer to an animation or to a specific frame in an animation.
Definition at line 47 of file AnimationHandle.hh.
|
inline |
Constructs an invalid animation handle (interpreted as handle of the reference pose)
Definition at line 51 of file AnimationHandle.hh.
|
inline |
Constructs a valid handle for the given animation and frame.
Definition at line 53 of file AnimationHandle.hh.
|
inline |
Returns the animation index (zero based)
Definition at line 57 of file AnimationHandle.hh.
|
inline |
Returns to the first frame.
Definition at line 65 of file AnimationHandle.hh.
|
inline |
Returns the selected frame (zero based)
Definition at line 60 of file AnimationHandle.hh.
|
inline |
Returns true if the handle is valid.
Definition at line 55 of file AnimationHandle.hh.
|
inline |
Definition at line 72 of file AnimationHandle.hh.
|
inline |
Increases the handle to the next frame (not failsafe)
Definition at line 67 of file AnimationHandle.hh.
|
inline |
Decreases the handle to the previous frame (not failsafe)
Definition at line 69 of file AnimationHandle.hh.
|
inline |
Definition at line 71 of file AnimationHandle.hh.
|
inline |
Sets the current animation frame (not failsafe)
Definition at line 62 of file AnimationHandle.hh.
|
private |
The one based index of the animation, set to 0 for invalid (or reference pose)
Definition at line 76 of file AnimationHandle.hh.
|
private |
The frame number.
Definition at line 78 of file AnimationHandle.hh.