#include <FCDAnimationMultiCurve.h>
Inheritance diagram for FCDAnimationMultiCurve:
Public Member Functions | |
FCDAnimationMultiCurve (FCDocument *document, uint32 dimension) | |
Constructor. | |
virtual | ~FCDAnimationMultiCurve () |
Destructor. | |
uint32 | GetDimension () const |
Retrieves the number of dimensions for the curve. | |
FloatList & | GetKeys () |
Retrieves the list of key inputs for the animation curve. | |
const FloatList & | GetKeys () const |
See above. | |
FloatList * | GetKeyValues () |
Retrieves the lists of key outputs for the animation curve. | |
const FloatList * | GetKeyValues () const |
See above. | |
FloatList * | GetInTangents () |
Retrieves the lists of key in-tangent values for the animation curve. | |
const FloatList * | GetInTangents () const |
See above. | |
FloatList * | GetOutTangents () |
Retrieves the lists of key out-tangent values for the animation curve. | |
const FloatList * | GetOutTangents () const |
See above. | |
UInt32List & | GetInterpolations () |
Retrieves the list of interpolation type for the segments of the animation curve. | |
const UInt32List & | GetInterpolations () const |
See above. | |
void | Evaluate (float input, float *output) const |
Evaluates the animation curve. | |
FCDAnimationCurve * | Collapse (FCDCollapsingFunction collapse=NULL) const |
Collapses this multi-dimensional curve into a one-dimensional curve. | |
void | WriteSourceToXML (xmlNode *parentNode, const string &baseId) |
[INTERNAL] Writes out the data sources necessary to import the animation curve to a given XML tree node. | |
xmlNode * | WriteSamplerToXML (xmlNode *parentNode, const string &baseId) |
[INTERNAL] Writes out the sampler that puts together the data sources and generates a sampling function. | |
xmlNode * | WriteChannelToXML (xmlNode *parentNode, const string &baseId, const string &pointer) |
[INTERNAL] Writes out the animation channel that attaches the sampling function to the animatable value. | |
int32 | GetTargetElement () const |
[INTERNAL] Retrieves the target element suffix for the curve. | |
void | SetTargetElement (int32 e) |
[INTERNAL] Sets the target element suffix for the curve. | |
Static Public Member Functions | |
static FCDAnimationMultiCurve * | MergeCurves (const vector< FCDAnimationCurve * > &toMerge, const FloatList &defaultValues) |
Merges multiple single-dimensional animation curves into one multi-dimensional animation curve. | |
static FCDAnimationMultiCurve * | MergeCurves (const vector< const FCDAnimationCurve * > &toMerge, const FloatList &defaultValues) |
See above. |
This is a utility class that is used to convert multiple animation curves into one animation curve that has multiple dimensions, but only one list of key inputs.
FCollada will never create a multi-dimensional animation curve during the import of a COLLADA document.
|
Constructor. The number of dimensions will not change in the lifetime of a multi-dimensional curve.
|
|
Collapses this multi-dimensional curve into a one-dimensional curve.
|
|
Evaluates the animation curve.
|
|
Retrieves the number of dimensions for the curve.
|
|
Retrieves the lists of key in-tangent values for the animation curve. These lists have data only if the curve includes segments with the bezier interpolation. There is one separate list of key in-tangent values for each dimension of the curve.
|
|
Retrieves the list of interpolation type for the segments of the animation curve. There is always one interpolation type for each key in the curve. The interpolation type of a segment of the curve is set at the key at which begins the segment.
|
|
Retrieves the list of key inputs for the animation curve.
|
|
Retrieves the lists of key outputs for the animation curve. There is one separate list of key outputs for each dimension of the curve.
|
|
Retrieves the lists of key out-tangent values for the animation curve. These lists have data only if the curve includes segments with the bezier interpolation. There is one separate list of key out-tangent values for each dimension of the curve.
|
|
[INTERNAL] Retrieves the target element suffix for the curve. This will be -1 if the animated element does not belong to an animated element list.
|
|
Merges multiple single-dimensional animation curves into one multi-dimensional animation curve. For each NULL element found within the 'toMerge' list, the corresponding default value is used. If there are not enough default values provided, zero is assumed. The number of dimensions for the output animation curve is taken as the size of the 'toMerge' list.
|
|
[INTERNAL] Sets the target element suffix for the curve.
|
|
[INTERNAL] Writes out the animation channel that attaches the sampling function to the animatable value.
|
|
[INTERNAL] Writes out the sampler that puts together the data sources and generates a sampling function.
|
|
[INTERNAL] Writes out the data sources necessary to import the animation curve to a given XML tree node.
|