#include <FCDAnimated.h>
Inheritance diagram for FCDAnimated:
Public Member Functions | |
FCDAnimated (FCDocument *document, size_t valueCount) | |
Constructor. | |
virtual | ~FCDAnimated () |
Destructor. | |
size_t | GetValueCount () const |
Retrieves the number of values contained within this animated element. | |
FCDAnimationCurve * | GetCurve (size_t index) |
Retrieves the animation curve affecting the value of an animated element. | |
const FCDAnimationCurve * | GetCurve (size_t index) const |
See above. | |
FCDAnimationCurveList & | GetCurves () |
Retrieves the list of the curves affecting the values of an animated element. | |
const FCDAnimationCurveList & | GetCurves () const |
See above. | |
bool | SetCurve (size_t index, FCDAnimationCurve *curve) |
Assigns a curve to a value of the animated element. | |
bool | RemoveCurve (size_t index) |
Removes the curve 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. | |
const string & | GetQualifier (size_t index) const |
Retrieves the qualifier of the value of an animated element. | |
float * | FindValue (const string &qualifier) |
Retrieves an animated value given a valid qualifier. | |
const float * | FindValue (const string &qualifier) const |
See above. | |
FCDAnimationCurve * | FindCurve (const char *qualifier) |
Retrieves an animation curve given a valid qualifier. | |
FCDAnimationCurve * | FindCurve (const string &qualifier) |
See above. | |
const FCDAnimationCurve * | FindCurve (const char *qualifier) const |
See above. | |
const FCDAnimationCurve * | FindCurve (const 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 string &qualifier) const |
See above. | |
size_t | FindValue (const float *value) const |
Retrieves the value index for a given value pointer. | |
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) |
[INTERNAL] Clones an animated element. | |
const string & | GetTargetPointer () const |
[INTERNAL] Retrieves the target pointer that prefixes the fully-qualified target for the element. | |
bool | Link (xmlNode *node) |
[INTERNAL] Links this animated element with a given XML tree node. | |
bool | ProcessChannels (FCDAnimationChannelList &channels) |
[INTERNAL] Links the animated element with the imported animation curves. | |
Static Public Member Functions | |
static FCDAnimationMultiCurve * | CreateMultiCurve (const FCDAnimatedList &toMerge) |
Creates one multi-dimensional animation curve from a list of animated element. | |
static FCDAnimated * | Clone (FCDocument *document, const float *animatedValue, FloatPtrList &newAnimatedValues) |
[INTERNAL] Clones an animated element. | |
Protected Attributes | |
FloatPtrList | values |
The list of value pointers. | |
StringList | qualifiers |
The list of target qualifiers. | |
FCDAnimationCurveList | curves |
The list of animation curves. | |
int32 | arrayElement |
The array index for animated element that belong to a list of animated elements. | |
string | pointer |
[INTERNAL] The target pointer prefix. |
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. In most cases, it is preferable to create objects of the up-classes.
|
|
[INTERNAL] Clones an animated element.
|
|
[INTERNAL] Clones an animated element.
|
|
Creates one multi-dimensional animation curve from a list of animated element. This function is useful is 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 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] Retrieves the target pointer that prefixes the fully-qualified target for the element.
|
|
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.
|
|
[INTERNAL] Links this animated element with a given XML tree node. This function is solely used within the import of a COLLADA document. The floating-point values held within the XML tree node will be linked with the list of floating-point value pointers held by the animated entity.
|
|
[INTERNAL] Links the animated element with the imported animation curves. This compares the animation channel targets with the animated element target and qualifiers to assign curves unto the value pointers.
|
|
Removes the curve 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.
|
|
Assigns a curve to a value of the animated element. The previously assigned curve will be deleted.
|
|
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. |