|
GlsAnimation Library
1.0.7
Provides classes and functions to support animating GL Studio objects programmatically or with script files
|
Base class for all animations. More...
#include <gls_animation.h>
Public Types | |
| typedef stdortr1::shared_ptr< GlsAnimation > | Ptr |
| Alias for easier reading. | |
| typedef GlsKeyframeCurveBase::Key | Key |
| Alias for easier reading. | |
| typedef GlsKeyframeCurveBase::KeyPair | KeyPair |
| Alias for easier reading. | |
| typedef GlsKeyframeCurveBase::Size | Size |
| Alias for easier reading. | |
Public Member Functions | |
| virtual | ~GlsAnimation () |
| Destructor. | |
| virtual bool | SetDisplayFrame (DisplayFrame *displayFrame)=0 |
| virtual bool | IsReadyToAnimate () const =0 |
| Returns whether the display frame has been set and all the properties have been found. | |
| virtual Key | GetKey () const =0 |
| virtual void | SetKey (const Key &key)=0 |
| virtual Key | GetKeyRange () const =0 |
| virtual KeyPair | GetMinMaxKeys () const =0 |
| virtual void | Reset ()=0 |
| const std::string & | GetName () const |
| Returns the given name of this animation sequence. | |
| virtual GlsAnimation::Ptr | Clone () const =0 |
| Clones an animation. | |
| virtual std::vector< std::string > | GetPropertyNames () const =0 |
| Returns a list of the property name(s) referenced by this animation. | |
| virtual void | RetargetPropertyNames (const std::vector< std::string > &propertyNames)=0 |
| virtual void | RetargetPropertyNames (const std::string &findStr, const std::string &replaceStr)=0 |
| virtual Size | CountPropertyNames () const =0 |
| Returns number of property names referenced by this animation. | |
Protected Member Functions | |
| GlsAnimation (const std::string &name) | |
| Constructor - for base classes only. | |
Protected Attributes | |
| DisplayFrame * | _displayFrame |
| The display frame used for retargeting. | |
Base class for all animations.
|
pure virtual |
Get the current key value for the animation.
Implemented in disti::GlsAnimationSubsetAdapter, disti::GlsAnimationReversalAdapter, disti::GlsAnimationCollection, and disti::GlsKeyframeAnimation.
|
pure virtual |
Returns the total range of the animation in the units of the key.
Implemented in disti::GlsAnimationSubsetAdapter, disti::GlsAnimationReversalAdapter, disti::GlsAnimationCollection, and disti::GlsKeyframeAnimation.
|
pure virtual |
Returns the minimum and maximum key values.
Implemented in disti::GlsAnimationSubsetAdapter, disti::GlsAnimationReversalAdapter, disti::GlsAnimationCollection, and disti::GlsKeyframeAnimation.
|
pure virtual |
Resets the key back to the default.
Implemented in disti::GlsAnimationSubsetAdapter, disti::GlsAnimationReversalAdapter, disti::GlsAnimationCollection, and disti::GlsKeyframeAnimation.
|
pure virtual |
Sets the property name(s) for the animation.
| propertyNames | The new list of property names in the same order as that returned from GetPropertyNames(). |
Implemented in disti::GlsAnimationSubsetAdapter, disti::GlsAnimationReversalAdapter, disti::GlsAnimationCollection, and disti::GlsKeyframeAnimation.
|
pure virtual |
Sets the property name(s) for the animation.
| findStr | The substring to find. |
| replaceStr | The string to replace every instance of the found string with. |
Implemented in disti::GlsAnimationSubsetAdapter, disti::GlsAnimationReversalAdapter, disti::GlsAnimationCollection, and disti::GlsKeyframeAnimation.
|
pure virtual |
Sets the display frame, to which the property values will be applied.
| displayFrame | The display frame object. |
Implemented in disti::GlsAnimationSubsetAdapter, disti::GlsAnimationReversalAdapter, disti::GlsAnimationCollection, and disti::GlsKeyframeAnimation.
|
pure virtual |
Set the current key value for the animation, which performs the animation.
| key | The key for the keyframe pair (usually time in seconds) |
Implemented in disti::GlsAnimationSubsetAdapter, disti::GlsAnimationReversalAdapter, and disti::GlsAnimationCollection.
1.8.10