#include <FCDAnimationCurve.h>
Inheritance diagram for FCDAnimationCurve:
Public Member Functions | |
FCDAnimationCurve (FCDocument *document, FCDAnimationChannel *parent) | |
Constructor: do not use directly. | |
virtual | ~FCDAnimationCurve () |
Destructor: do not release directly. | |
FCDAnimationChannel * | GetParent () |
Retrieves the animation channel that contains this animation curve. | |
const FCDAnimationChannel * | GetParent () const |
See above. | |
FloatList & | GetKeys () |
Retrieves the list of key inputs for the animation curve. | |
const FloatList & | GetKeys () const |
See above. | |
FloatList & | GetKeyValues () |
Retrieves the list of key outputs for the animation curve. | |
const FloatList & | GetKeyValues () const |
See above. | |
UInt32List & | GetInterpolations () |
Retrieves the list of interpolation type for the segments of the animation curve. | |
const UInt32List & | GetInterpolations () const |
See above. | |
FloatList & | GetInTangents () |
Retrieves the list of key in-tangent values for the animation curve. | |
const FloatList & | GetInTangents () const |
See above. | |
FloatList & | GetOutTangents () |
Retrieves the list of key out-tangent values for the animation curve. | |
const FloatList & | GetOutTangents () const |
See above. | |
FloatList & | GetInTangentWeights () |
Retrieves the list of key in-tangent weights for the animation curve. | |
const FloatList & | GetInTangentWeights () const |
See above. | |
FloatList & | GetOutTangentWeights () |
Retrieves the list of key out-tangent weights for the animation curve. | |
const FloatList & | GetOutTangentWeights () const |
See above. | |
bool | IsWeightedCurve () const |
Retrieves whether this curve has weighted tangents. | |
void | SetWeightedCurveFlag (bool _isWeightedCurve) |
Sets whether this curve has weighted tangents. | |
FUDaeInfinity::Infinity | GetPreInfinity () const |
Retrieves the type of behavior for the curve if the input value is outside the input interval defined by the curve keys and less than any key input value. | |
void | SetPreInfinity (FUDaeInfinity::Infinity infinity) |
Sets the behavior of the curve if the input value is outside the input interval defined by the curve keys and less than any key input value. | |
FUDaeInfinity::Infinity | GetPostInfinity () const |
Retrieves the type of behavior for the curve if the input value is outside the input interval defined by the curve keys and greater than any key input value. | |
void | SetPostInfinity (FUDaeInfinity::Infinity infinity) |
Sets the behavior of the curve if the input value is outside the input interval defined by the curve keys and greater than any key input value. | |
const float * | GetDriver () const |
Retrieves the value pointer that drives this animation curve. | |
void | SetDriver (const float *driver) |
Sets the value pointer that drives the animation curve. | |
FCDAnimationClipList & | GetClips () |
Retrieves the list of animation clips that use this animation curve. | |
const FCDAnimationClipList & | GetClips () const |
See above. | |
void | Ready () |
Readies this curve for evaluation. | |
FCDAnimationCurve * | Clone () |
Clones the animation curve. | |
void | ConvertValues (FCDConversionFunction valueConversion, FCDConversionFunction tangentConversion) |
Applies a conversion function to the keys output values of the animation curve. | |
void | ConvertInputs (FCDConversionFunction timeConversion, FCDConversionFunction tangentWeightConversion) |
Applies a conversion function to the keys input values of the animation curve. | |
float | Evaluate (float input) const |
Evaluates the animation curve. | |
void | RegisterAnimationClip (FCDAnimationClip *clip) |
[INTERNAL] Adds an animation clip to the list of animation clips that use this curve. | |
void | WriteSourceToXML (xmlNode *parentNode, const string &baseId) const |
[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) const |
[INTERNAL] Writes out the sampler that puts together the data sources and generates a sampling function. | |
xmlNode * | WriteChannelToXML (xmlNode *parentNode, const string &baseId, const char *targetPointer) const |
[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. | |
const string & | GetTargetQualifier () const |
[INTERNAL] Retrieves the target qualifier for the curve. | |
void | SetTargetElement (int32 e) |
[INTERNAL] Sets the target element suffix for the curve. | |
void | SetTargetQualifier (const string &q) |
[INTERNAL] Sets the target qualifier for the curve. | |
const string & | GetDriverPointer () const |
[INTERNAL] Retrieves the target pointer prefix of the driver. | |
void | SetDriverPointer (const string &p) |
[INTERNAL] Sets the target pointer prefix of the driver. |
An animation curve holds the keyframes necessary to animate an animatable floating-point value.
There are multiple interpolation mechanisms supported by COLLADA. FCollada supports the CONSTANT, LINEAR and BEZIER interpolations.
|
Constructor: do not use directly. Instead, use the FCDAnimationChannel::AddCurve function. You should also attach the new curve to an animated element using the FCDAnimated::SetCurve function.
|
|
Destructor: do not release directly. Instead, use the FCDAnimationChannel::ReleaseCurve function. |
|
Clones the animation curve.
|
|
Applies a conversion function to the keys input values of the animation curve.
|
|
Applies a conversion function to the keys output values of the animation curve.
|
|
Evaluates the animation curve.
|
|
Retrieves the list of animation clips that use this animation curve.
|
|
Retrieves the value pointer that drives this animation curve.
|
|
[INTERNAL] Retrieves the target pointer prefix of the driver.
|
|
Retrieves the list of key in-tangent values for the animation curve. This list has data only for curves that include segments with the bezier interpolation.
|
|
Retrieves the list of key in-tangent weights for the animation curve. This list has data only for curves that are weighted and include segments with the bezier interpolation.
|
|
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 list of key outputs for the animation curve.
|
|
Retrieves the list of key out-tangent values for the animation curve. This list has data only for curves that include segments with the bezier interpolation.
|
|
Retrieves the list of key out-tangent weights for the animation curve. This list has data only for curves that are weighted and include segments with the bezier interpolation.
|
|
Retrieves the animation channel that contains this animation curve.
|
|
Retrieves the type of behavior for the curve if the input value is outside the input interval defined by the curve keys and greater than any key input value.
|
|
Retrieves the type of behavior for the curve if the input value is outside the input interval defined by the curve keys and less than any key input value.
|
|
[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.
|
|
[INTERNAL] Retrieves the target qualifier for the curve. This will be the empty string if that the curve affects a one-dimensional animated element.
|
|
Retrieves whether this curve has weighted tangents. Tangent weights give you access to 2D tangents by providing the length of the tangent.
|
|
Readies this curve for evaluation. This will create the tangents and the tangent weights, if necessary. |
|
[INTERNAL] Adds an animation clip to the list of animation clips that use this curve.
|
|
Sets the value pointer that drives the animation curve.
|
|
[INTERNAL] Sets the target pointer prefix of the driver.
|
|
Sets the behavior of the curve if the input value is outside the input interval defined by the curve keys and greater than any key input value.
|
|
Sets the behavior of the curve if the input value is outside the input interval defined by the curve keys and less than any key input value.
|
|
[INTERNAL] Sets the target element suffix for the curve.
|
|
[INTERNAL] Sets the target qualifier for the curve.
|
|
Sets whether this curve has weighted tangents. Tangent weights give you access to 2D tangents by providing the length of the tangent.
|
|
[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.
|