#include <FCDAnimation.h>
Inheritance diagram for FCDAnimation:
Public Member Functions | |
FCDAnimation (FCDocument *document) | |
Constructor: do not use directly. | |
virtual | ~FCDAnimation () |
Destructor: do not use directly. | |
virtual Type | GetType () const |
Retrieves the entity class type. | |
virtual FCDEntity * | FindDaeId (const string &daeId) |
Retrieves the entity with the given COLLADA id. | |
size_t | GetChildCount () const |
Retrieves the number of animation entity sub-trees contained by this animation entity tree. | |
FCDAnimation * | GetChild (size_t index) |
Retrieves an animation entity sub-tree contained by this animation entity tree. | |
const FCDAnimation * | GetChild (size_t index) const |
See above. | |
FCDAnimation * | AddChild () |
Creates a new animation entity sub-tree contained within this animation entity tree. | |
void | ReleaseChild (FCDAnimation *animation) |
Releases an animation entity sub-tree contained by this animation entity tree. | |
void | FindAnimationChannels (const string &pointer, FCDAnimationChannelList &targetChannels) |
Retrieves the animation channels that target the given COLLADA target pointer. | |
size_t | GetChannelCount () const |
Retrieves the number of animation channels at this level within the animation tree. | |
FCDAnimationChannel * | GetChannel (size_t index) |
Retrieves an animation channel contained by this animation entity. | |
const FCDAnimationChannel * | GetChannel (size_t index) const |
See above. | |
FCDAnimationChannel * | AddChannel () |
Adds a new animation channel to this animation entity. | |
void | ReleaseChannel (FCDAnimationChannel *channel) |
Releases an animation channel contained within this animation entity. | |
void | GetCurves (FCDAnimationCurveList &curves) |
Retrieves all the curves created in the subtree of this animation element. | |
FUStatus | Link () |
[INTERNAL] Links the animation sub-tree with the other entities within the document. | |
virtual FUStatus | LoadFromXML (xmlNode *animationNode) |
[INTERNAL] Reads in the animation entity from a given COLLADA XML tree node. | |
virtual xmlNode * | WriteToXML (xmlNode *parentNode) const |
[INTERNAL] Writes out the <animation> element to the given COLLADA XML tree node. | |
xmlNode * | FindChildById (const string &id) |
[INTERNAL] Retrieves the child source or sampler. | |
bool | LinkDriver (FCDAnimated *animated) |
[INTERNAL] Links a possible driver with the animation curves contained within the subtree of this animation element. |
An animation entity contains a list of child animation entities, in order to form a tree of animation entities. It also hold a list of animation channels, which hold the information to generate animation curves.
In other words, the animation entity is a structural class used to group animation channels hierarchically.
|
Constructor: do not use directly. Instead, use the FCDLibrary::AddEntity function or the AddChild function, depending on the hierarchical level of the animation entity.
|
|
Destructor: do not use directly. Instead, use the FCDLibrary::ReleaseEntity function or the ReleaseChild function, depending on the hierarchical level of the animation entity. |
|
Adds a new animation channel to this animation entity.
|
|
Creates a new animation entity sub-tree contained within this animation entity tree.
|
|
Retrieves the animation channels that target the given COLLADA target pointer.
|
|
[INTERNAL] Retrieves the child source or sampler. This function should only be used by the FCDAnimationChannel class during the import of a COLLADA document.
|
|
Retrieves the entity with the given COLLADA id. This function will look through the local sub-tree of animations for the given COLLADA id.
Reimplemented from FCDEntity. |
|
Retrieves an animation channel contained by this animation entity.
|
|
Retrieves the number of animation channels at this level within the animation tree.
|
|
Retrieves an animation entity sub-tree contained by this animation entity tree.
|
|
Retrieves the number of animation entity sub-trees contained by this animation entity tree.
|
|
Retrieves all the curves created in the subtree of this animation element.
|
|
Retrieves the entity class type. This function is a part of the FCDEntity interface.
Reimplemented from FCDEntity. |
|
[INTERNAL] Links the animation sub-tree with the other entities within the document. This function is used at the end of the import of a document to verify that all the necessary drivers were found.
|
|
[INTERNAL] Links a possible driver with the animation curves contained within the subtree of this animation element. This function is used during the import of a COLLADA document.
|
|
[INTERNAL] Reads in the animation entity from a given COLLADA XML tree node.
Reimplemented from FCDEntity. |
|
Releases an animation channel contained within this animation entity.
|
|
Releases an animation entity sub-tree contained by this animation entity tree.
|
|
[INTERNAL] Writes out the <animation> element to the given COLLADA XML tree node.
Reimplemented from FCDEntity. |