Animation
.
More...
#include <InterpolatedAnimation.h>
Inheritance diagram for nvsg::InterpolatedAnimation< T >:
Public Member Functions | |
virtual size_t | getNumberOfFrames (void) const |
Get the number of frames in the animation. | |
size_t | getNumberOfKeys (void) const |
Get the number of key frames in the animation. | |
void | setNumberOfKeys (size_t count) |
Set the number of key frames in the animation. | |
void | setKeyFrame (size_t key, unsigned int frame, const T &value) |
Set the frame and value of key key. | |
unsigned int | getCurrentFrame (void) const |
Get the index of the current frame. | |
const T & | getCurrentValue (void) const |
Get the value at the current frame. | |
unsigned int | getFrame (size_t key) const |
Get the index of key frame key. | |
const T & | getValue (size_t key) const |
Get the value on key key. | |
size_t | getKey (unsigned int frame) const |
Get the key above or equal to frame frame. | |
Protected Member Functions | |
InterpolatedAnimation (void) | |
Default Constructor. | |
InterpolatedAnimation (const InterpolatedAnimation &rhs) | |
Copy Constructor. | |
virtual | ~InterpolatedAnimation (void) |
Protected destructor to prevent explicit creation on stack. | |
void | setCurrent (size_t key) const |
Set the current frame and value on key. | |
void | setCurrent (unsigned int frame, const T &value) const |
Set the current frame and value. |
Animation
.
An InterpolatedAnimation holds the information for a key-frame based animation. It provides the interface needed for an interpolated animation, but does not perform any interpolations. Interpolations must be performed by a class that is derived from this, such as LinearInterpolatedAnimation
.
|
Default Constructor.
|
|
Copy Constructor.
|
|
Protected destructor to prevent explicit creation on stack.
|
|
Get the number of frames in the animation.
Implements nvsg::Animation< T >. |
|
Get the number of key frames in the animation.
|
|
Set the number of key frames in the animation. Resizes the array of key animation values. On growing this array, the new elements are not initialized.
|
|
Set the frame and value of key key.
|
|
Get the index of the current frame.
|
|
Get the value at the current frame.
|
|
Get the index of key frame key.
|
|
Get the value on key key.
|
|
Get the key above or equal to frame frame.
|
|
Set the current frame and value on key.
|
|
Set the current frame and value.
|