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 Types | |
typedef stdortr1::shared_ptr< GlsKeyframeAnimation > | Ptr |
Alias for easier reading. | |
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. | |
Public Member Functions | |
GlsKeyframeAnimation (const std::string &name, const std::string &propertyName, const GlsKeyframeCurve< double > *keyframeCurve) | |
GlsKeyframeAnimation (const std::string &name, const std::string &propertyName, const GlsKeyframeCurve< Vector > *keyframeCurve) | |
Constructor – See first constructor description. | |
GlsKeyframeAnimation (const std::string &name, const std::string &propertyName, const GlsKeyframeCurve< GlsQuaternionD > *keyframeCurve) | |
Constructor – See first constructor description. | |
GlsKeyframeAnimation (const std::string &name, const std::string &propertyName, const GlsKeyframeCurve< std::string > *keyframeCurve) | |
Constructor – See first constructor description. | |
GlsKeyframeAnimation (const std::string &name, const std::string &propertyName, const GlsKeyframeCurve< glsColor > *keyframeCurve) | |
Constructor – See first constructor description. | |
GlsKeyframeAnimation (const std::string &name, const std::string &propertyName, const GlsKeyframeCurve< double >::PtrConst &keyframeCurve) | |
GlsKeyframeAnimation (const std::string &name, const std::string &propertyName, const GlsKeyframeCurve< Vector >::PtrConst &keyframeCurve) | |
GlsKeyframeAnimation (const std::string &name, const std::string &propertyName, const GlsKeyframeCurve< GlsQuaternionD >::PtrConst &keyframeCurve) | |
GlsKeyframeAnimation (const std::string &name, const std::string &propertyName, const GlsKeyframeCurve< std::string >::PtrConst &keyframeCurve) | |
GlsKeyframeAnimation (const std::string &name, const std::string &propertyName, const GlsKeyframeCurve< glsColor >::PtrConst &keyframeCurve) | |
GlsKeyframeAnimation (const std::string &name, const std::string &propertyName, const GlsKeyframeCurve< double >::Ptr &keyframeCurve) | |
GlsKeyframeAnimation (const std::string &name, const std::string &propertyName, const GlsKeyframeCurve< Vector >::Ptr &keyframeCurve) | |
GlsKeyframeAnimation (const std::string &name, const std::string &propertyName, const GlsKeyframeCurve< GlsQuaternionD >::Ptr &keyframeCurve) | |
GlsKeyframeAnimation (const std::string &name, const std::string &propertyName, const GlsKeyframeCurve< std::string >::Ptr &keyframeCurve) | |
GlsKeyframeAnimation (const std::string &name, const std::string &propertyName, const GlsKeyframeCurve< glsColor >::Ptr &keyframeCurve) | |
bool | SetDisplayFrame (DisplayFrame *displayFrame) |
bool | IsReadyToAnimate () const |
Override from GlsAnimation. | |
Key | GetKey () const |
Override from GlsAnimation. | |
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. | |
GlsAnimation::Ptr | Clone () const |
Override from GlsAnimation. | |
std::vector< std::string > | GetPropertyNames () const |
Override from GlsAnimation. | |
void | RetargetPropertyNames (const std::vector< std::string > &propertyNames) |
Override from GlsAnimation. | |
void | RetargetPropertyNames (const std::string &findStr, const std::string &replaceStr) |
Override from GlsAnimation. | |
Size | CountPropertyNames () const |
Override from GlsAnimation. | |
Public Member Functions inherited from disti::GlsAnimation | |
virtual | ~GlsAnimation () |
Destructor. | |
virtual void | SetKey (const Key &key)=0 |
const std::string & | GetName () const |
Returns the given name of this animation sequence. | |
Additional Inherited Members | |
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. | |
The GlsKeyframeAnimation class wraps up a GL Studio property and a keyframe curve to animate it.
disti::GlsKeyframeAnimation::GlsKeyframeAnimation | ( | const std::string & | name, |
const std::string & | propertyName, | ||
const GlsKeyframeCurve< double > * | keyframeCurve | ||
) |
Constructor
name | The name of the animation sequence |
propertyName | The name of the property in the design to modify with this curve using the resources API. For example, "Location" will modify the Vector that handles the object's position. "SomeComponent.SomeObject.Visible" will modify. |
keyframeCurve | The keyframe curve is a set of keyframes that will be interpolated as the animation is advanced. |
disti::GlsKeyframeAnimation::GlsKeyframeAnimation | ( | const std::string & | name, |
const std::string & | propertyName, | ||
const GlsKeyframeCurve< double >::PtrConst & | keyframeCurve | ||
) |
Constructor – See first constructor description
disti::GlsKeyframeAnimation::GlsKeyframeAnimation | ( | const std::string & | name, |
const std::string & | propertyName, | ||
const GlsKeyframeCurve< Vector >::PtrConst & | keyframeCurve | ||
) |
Constructor – See first constructor description
disti::GlsKeyframeAnimation::GlsKeyframeAnimation | ( | const std::string & | name, |
const std::string & | propertyName, | ||
const GlsKeyframeCurve< GlsQuaternionD >::PtrConst & | keyframeCurve | ||
) |
Constructor – See first constructor description
disti::GlsKeyframeAnimation::GlsKeyframeAnimation | ( | const std::string & | name, |
const std::string & | propertyName, | ||
const GlsKeyframeCurve< std::string >::PtrConst & | keyframeCurve | ||
) |
Constructor – See first constructor description
disti::GlsKeyframeAnimation::GlsKeyframeAnimation | ( | const std::string & | name, |
const std::string & | propertyName, | ||
const GlsKeyframeCurve< glsColor >::PtrConst & | keyframeCurve | ||
) |
Constructor – See first constructor description
disti::GlsKeyframeAnimation::GlsKeyframeAnimation | ( | const std::string & | name, |
const std::string & | propertyName, | ||
const GlsKeyframeCurve< double >::Ptr & | keyframeCurve | ||
) |
Constructor – See first constructor description
disti::GlsKeyframeAnimation::GlsKeyframeAnimation | ( | const std::string & | name, |
const std::string & | propertyName, | ||
const GlsKeyframeCurve< Vector >::Ptr & | keyframeCurve | ||
) |
Constructor – See first constructor description
disti::GlsKeyframeAnimation::GlsKeyframeAnimation | ( | const std::string & | name, |
const std::string & | propertyName, | ||
const GlsKeyframeCurve< GlsQuaternionD >::Ptr & | keyframeCurve | ||
) |
Constructor – See first constructor description
disti::GlsKeyframeAnimation::GlsKeyframeAnimation | ( | const std::string & | name, |
const std::string & | propertyName, | ||
const GlsKeyframeCurve< std::string >::Ptr & | keyframeCurve | ||
) |
Constructor – See first constructor description
disti::GlsKeyframeAnimation::GlsKeyframeAnimation | ( | const std::string & | name, |
const std::string & | propertyName, | ||
const GlsKeyframeCurve< glsColor >::Ptr & | keyframeCurve | ||
) |
Constructor – See first constructor description
|
virtual |
Override from GlsAnimation
Implements disti::GlsAnimation.