GlsAnimation Library
1.0.7
Provides classes and functions to support animating GL Studio objects programmatically or with script files
|
#include <gls_animation.h>
Public Member Functions | |
GlsAnimationSubsetAdapter (const std::string &name, GlsAnimation *animation, const KeyPair &clampLimits, const KeyPair &newMinMax=s_nanPair) | |
GlsAnimationSubsetAdapter (const std::string &name, const GlsAnimation::Ptr &animation, const KeyPair &clampLimits, const KeyPair &newMinMax=s_nanPair) | |
bool | SetDisplayFrame (DisplayFrame *displayFrame) |
Override from GlsAnimation. | |
bool | IsReadyToAnimate () const |
Override from GlsAnimation. | |
Key | GetKey () const |
void | SetKey (const Key &key) |
Override from GlsAnimation. | |
Key | GetKeyRange () const |
Override from GlsAnimation. | |
KeyPair | GetMinMaxKeys () const |
Override from GlsAnimation. | |
void | Reset () |
Override from GlsAnimation. | |
virtual std::vector< std::string > | GetPropertyNames () const |
Override from GlsAnimation. | |
virtual void | RetargetPropertyNames (const std::vector< std::string > &propertyNames) |
Override from GlsAnimation. | |
virtual void | RetargetPropertyNames (const std::string &findStr, const std::string &replaceStr) |
Override from GlsAnimation. | |
GlsAnimation::Ptr | Clone () const |
Override from GlsAnimation. | |
Size | CountPropertyNames () const |
Override from GlsAnimation. | |
Public Member Functions inherited from disti::GlsAnimation | |
virtual | ~GlsAnimation () |
Destructor. | |
const std::string & | GetName () const |
Returns the given name of this animation sequence. | |
Static Public Attributes | |
static const KeyPair | s_nanPair = std::make_pair( Detail::g_nan, Detail::g_nan ) |
Default value for remapping constructor parameter. | |
Additional Inherited Members | |
Public Types inherited from disti::GlsAnimation | |
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. | |
Protected Member Functions inherited from disti::GlsAnimation | |
GlsAnimation (const std::string &name) | |
Constructor - for base classes only. | |
Protected Attributes inherited from disti::GlsAnimation | |
DisplayFrame * | _displayFrame |
The display frame used for retargeting. | |
An adapter class to limit an animation to a subset of its total key range and/or remap the key range. For instance, if the keys go from 1 to 10 and the begin and end clamp values are 3 and 7, the animation will behave as if its min/max keys are 3 and 7 (interpolating the values for those keys from the original animation as necessary). The optional second set of keys remaps the clamped range, so 3 to 7 in the above example could be remapped to something like 0 to 1.
|
inline |
Constructor
name | The name of this animation |
animation | The animation to clamp. The adapter takes ownership of the animation. |
clampLimits | The key where the subset of the animation starts and ends. These values will be clamped within the original bounds of the animation's range. |
newMinMax | The new key range that this animation will respond to. The newMinMax.first will map to clampLimits.first and newMinMax.second to clampLimits.second. |
|
inline |
Constructor
name | The name of this animation |
animation | The animation to clamp. |
clampLimits | The key where the subset of the animation starts and ends. These values will be clamped within the original bounds of the animation's range. |
newMinMax | The new key range that this animation will respond to. The newMinMax.first will map to clampLimits.first and newMinMax.second to clampLimits.second. If omitted (or NaN), no remapping of the clamped limits is performed. |
|
inlinevirtual |
Override from GlsAnimation
Implements disti::GlsAnimation.