#include <FCDAnimated.h>
Inheritance diagram for FCDAnimated:
Public Member Functions | |
DeclareFlag (RelativeAnimation, 0) | |
Flag to indicate that the animation should be applied relative to the default value. | |
DeclareFlagCount (1) | |
The FCDAnimated class declares one flag. | |
FCDAnimated (FCDObject *object, size_t valueCount, const char **qualifiers, float **values) | |
Constructor. | |
FCDAnimated (FCDocument *document, size_t valueCount, const char **qualifiers, float **values) | |
Constructor. | |
virtual | ~FCDAnimated () |
Destructor. | |
size_t | GetValueCount () const |
Retrieves the number of values contained within this animated element. | |
size_t | GetCurveCount (size_t index) const |
Retrieves the number of animation curves affecting one value of an animated element. | |
FCDAnimationCurve * | GetCurve (size_t index, size_t curveIndex=0) |
Retrieves the animation curve affecting the value of an animated element. | |
const FCDAnimationCurve * | GetCurve (size_t index, size_t curveIndex=0) const |
See above. | |
FCDAnimationCurveListList & | GetCurves () |
Retrieves the list of the curves affecting the values of an animated element. | |
const FCDAnimationCurveListList & | GetCurves () const |
See above. | |
bool | AddCurve (size_t index, FCDAnimationCurve *curve) |
Assigns a curve to a value of the animated element. | |
bool | AddCurve (size_t index, FCDAnimationCurveList &curve) |
See above. | |
bool | RemoveCurve (size_t index) |
Removes the curves affecting a value of the animated element. | |
float * | GetValue (size_t index) |
Retrieves the value of an animated element. | |
const float * | GetValue (size_t index) const |
See above. | |
void | SetValue (size_t index, float *value) |
[INTERNAL] Overwrites the value pointer of an animated element. | |
const fm::string & | GetQualifier (size_t index) const |
Retrieves the qualifier of the value of an animated element. | |
StringList & | GetQualifiers () |
[INTERNAL] Retrieve the qualifier list directly. | |
float * | FindValue (const fm::string &qualifier) |
Retrieves an animated value given a valid qualifier. | |
const float * | FindValue (const fm::string &qualifier) const |
See above. | |
FCDAnimationCurve * | FindCurve (const char *qualifier) |
Retrieves an animation curve given a valid qualifier. | |
FCDAnimationCurve * | FindCurve (const fm::string &qualifier) |
See above. | |
const FCDAnimationCurve * | FindCurve (const char *qualifier) const |
See above. | |
const FCDAnimationCurve * | FindCurve (const fm::string &qualifier) const |
See above. | |
FCDAnimationCurve * | FindCurve (const float *value) |
Retrieves an animation curve given a value pointer. | |
const FCDAnimationCurve * | FindCurve (const float *value) const |
See above. | |
size_t | FindQualifier (const char *qualifier) const |
Retrieves the value index for a given qualifier. | |
size_t | FindQualifier (const fm::string &qualifier) const |
See above. | |
size_t | FindValue (const float *value) const |
Retrieves the value index for a given value pointer. | |
void | SetTargetObject (FCDObject *_target) |
Sets the FCDObject this animated value will notify when making changes. | |
FCDObject * | GetTargetObject () |
Returns the FCDObject this animated value will notify when making changes. | |
int32 | GetArrayElement () const |
Retrieves the array index for an animated element. | |
void | SetArrayElement (int32 index) |
Sets the array index for an animated element. | |
bool | HasCurve () const |
Retrieves whether this animated element has any animation curves affecting its values. | |
FCDAnimationMultiCurve * | CreateMultiCurve () const |
Creates one multi-dimensional animation curve from this animated element. | |
void | Evaluate (float time) |
Evaluates the animated element at a given time. | |
FCDAnimated * | Clone (FCDocument *document) const |
Clones an animated element. | |
FCDAnimated * | Clone (FCDAnimated *clone) const |
Clones an animated element. | |
virtual void | OnObjectReleased (FUTrackable *object) |
[INTERNAL] See FUTracker On object deletion, remove ourselves as we no longer have any values to animate | |
Static Public Member Functions | |
static FCDAnimationMultiCurve * | CreateMultiCurve (const FCDAnimatedList &toMerge) |
Creates one multi-dimensional animation curve from a list of animated element. | |
Protected Attributes | |
FloatPtrList | values |
The list of value pointers. | |
StringList | qualifiers |
The list of target qualifiers. | |
FCDAnimationCurveListList | curves |
The list of animation curves. | |
FCDObject * | target |
The target object who contain the float values. | |
int32 | arrayElement |
The array index for animated element that belong to a list of animated elements. |
An animated element encapsulates a set of floating-point values that are marked as animated.
For this purpose, an animated element holds a list of floating-point values, their animation curves and their COLLADA qualifiers for the generation of COLLADA targets. For animated list elements, an animated element holds an array index.
There are many classes built on top of this class. They represent the different element types that may be animated, such as 3D points, colors and matrices.
|
Constructor.
|
|
Constructor.
|
|
Assigns a curve to a value of the animated element. The previously assigned curve will be deleted.
|
|
Clones an animated element.
|
|
Clones an animated element.
|
|
Creates one multi-dimensional animation curve from a list of animated element. This function is useful if your application does not handle animations per-values. For example, we use this function is ColladaMax for animated scale values, where one scale value is two rotations for the scale rotation pivot and one 3D point for the scale factors.
|
|
Creates one multi-dimensional animation curve from this animated element. This function is useful is your application does not handle animations per-values, but instead needs one animation per-element.
|
|
Evaluates the animated element at a given time. This function directly and permanently modifies the values of the animated element according to the curves affecting them.
|
|
Retrieves an animation curve given a value pointer.
|
|
Retrieves an animation curve given a valid qualifier.
|
|
Retrieves the value index for a given qualifier.
|
|
Retrieves the value index for a given value pointer.
|
|
Retrieves an animated value given a valid qualifier.
|
|
Retrieves the array index for an animated element. This value is used only for animated elements that belong to a list of animated elements within the COLLADA document.
|
|
Retrieves the animation curve affecting the value of an animated element.
|
|
Retrieves the number of animation curves affecting one value of an animated element.
|
|
Retrieves the list of the curves affecting the values of an animated element. This list may contain the NULL pointer, where a value is not animated.
|
|
Retrieves the qualifier of the value of an animated element.
|
|
[INTERNAL] Retrieve the qualifier list directly.
|
|
Returns the FCDObject this animated value will notify when making changes.
|
|
Retrieves the value of an animated element.
|
|
Retrieves the number of values contained within this animated element.
|
|
Retrieves whether this animated element has any animation curves affecting its values.
|
|
Removes the curves affecting a value of the animated element.
|
|
Sets the array index for an animated element. This value is used only for animated elements that belong to a list of animated elements within the COLLADA document.
|
|
Sets the FCDObject this animated value will notify when making changes.
|
|
[INTERNAL] Overwrites the value pointer of an animated element. Used when changing the list size within FCDParameterAnimatableList.
|
|
The array index for animated element that belong to a list of animated elements. This value may be -1 to indicate that the element does not belong to a list. Otherwise, the index should always be unsigned. |
|
The list of animation curves. There is always one curve for one value pointer, although that curve may be the NULL pointer to indicate a non-animated value. |
|
The list of target qualifiers. There is always one qualifier for one value pointer. |