#include <FCDExtra.h>
Inheritance diagram for FCDENode:
Public Member Functions | |
FCDENode (FCDocument *document, FCDENode *parent) | |
Constructor: do not use directly. | |
virtual | ~FCDENode () |
Destructor: do not use directly. | |
void | Release () |
Releases this extra tree node. | |
const char * | GetName () const |
Retrieves the name of the extra tree node. | |
void | SetName (const char *_name) |
Sets the name of the extra tree node. | |
void | SetName (const string &_name) |
See above. | |
const fchar * | GetContent () const |
Retrieves the textual content of the extra tree node. | |
void | SetContent (const fchar *_content) |
Sets the textual content of the extra tree node. | |
void | SetContent (const fstring &_content) |
See above. | |
FCDAnimatedCustom * | GetAnimated () |
Retrieves the animated values associated with this extra tree node. | |
const FCDAnimatedCustom * | GetAnimated () const |
See above. | |
FCDENode * | GetParent () |
Retrieves the parent of an extra tree node. | |
const FCDENode * | GetParent () const |
See above. | |
FCDENodeList & | GetChildNodes () |
Retrieves the children of an extra tree node. | |
const FCDENodeList & | GetChildNodes () const |
See above. | |
size_t | GetChildNodeCount () const |
Retrieves the number of children of an extra tree node. | |
FCDENode * | GetChildNode (size_t index) |
Retrieves a specific child extra tree node. | |
const FCDENode * | GetChildNode (size_t index) const |
See above. | |
FCDENode * | AddChildNode () |
Adds a new child extra tree to this extra tree node. | |
void | ReleaseChildNode (FCDENode *childNode) |
Releases a child extra tree node of this extra tree node. | |
FCDENode * | FindChildNode (const char *name) |
Retrieves the child extra tree node with the given name. | |
const FCDENode * | FindChildNode (const char *name) const |
See above. | |
FCDENode * | FindChildNode (const string &name) |
See above. | |
const FCDENode * | FindChildNode (const string &name) const |
See above. | |
FCDENode * | FindParameter (const char *name) |
Retrieves the child extra tree node with the given name. | |
void | FindParameters (FCDENodeList &nodes, StringList &names) |
Retrieves a list of all the parameters contained within the hierarchy. | |
FCDEAttributeList & | GetAttributes () |
Retrieves the list of attributes for this extra tree node. | |
const FCDEAttributeList & | GetAttributes () const |
See above. | |
size_t | GetAttributeCount () const |
Retrieves the number of attributes for this extra tree node. | |
FCDEAttribute * | GetAttribute (size_t index) |
Retrieves a specific attribute of this extra tree node. | |
const FCDEAttribute * | GetAttribute (size_t index) const |
See above. | |
FCDEAttribute * | AddAttribute (const char *_name, const fchar *_value) |
Adds a new attribute to this extra tree node. | |
FCDEAttribute * | AddAttribute (const string &_name, const fchar *_value) |
See above. | |
FCDEAttribute * | AddAttribute (const char *_name, const fstring &_value) |
See above. | |
FCDEAttribute * | AddAttribute (const string &_name, const fstring &_value) |
See above. | |
template<typename T> | |
FCDEAttribute * | AddAttribute (const char *_name, const T &_value) |
See above. | |
template<typename T> | |
FCDEAttribute * | AddAttribute (const string &_name, const T &_value) |
See above. | |
void | ReleaseAttribute (FCDEAttribute *attribute) |
Releases an attribute of this extra tree node. | |
FCDEAttribute * | FindAttribute (const char *name) |
Retrieve the attribute of this extra tree node with the given name. | |
const FCDEAttribute * | FindAttribute (const char *name) const |
See above. | |
virtual FUStatus | LoadFromXML (xmlNode *customNode) |
[INTERNAL] Reads in the extra tree node from a given COLLADA XML tree node. | |
virtual xmlNode * | WriteToXML (xmlNode *parentNode) const |
[INTERNAL] Writes out the extra tree node to the given COLLADA XML tree node. | |
Protected Member Functions | |
FUStatus | ReadChildrenFromXML (xmlNode *customNode) |
[INTERNAL] Reads in the children nodes of the extra tree node. | |
void | WriteChildrenToXML (xmlNode *customNode) const |
[INTERNAL] Writes out the children nodes of extra tree node. |
The extra tree node is a hierarchical structure that contains child extra tree nodes as well as attributes. If the extra tree node is a leaf of the tree, it may contain textual content.
The extra tree node leaf may be animated, if it has the 'sid' attribute.
|
Constructor: do not use directly. Instead, call the FCDENode::AddChild function of the parent within the hierarchy.
|
|
Destructor: do not use directly. Instead, for hierarchical nodes: call the Release function or the parent's ReleaseChildNode function and for techniques: call the FCDExtra::ReleaseTechnique function. |
|
Adds a new attribute to this extra tree node. If an attribute with the same name already exists, this function simply assigns the new value to the existing attribute and returns the existing attribute.
|
|
Adds a new child extra tree to this extra tree node.
|
|
Retrieve the attribute of this extra tree node with the given name. Attribute names are unique within an extra tree node.
|
|
Retrieves the child extra tree node with the given name.
|
|
Retrieves the child extra tree node with the given name. This function is used for COLLADA 1.3 backward compatibility, where all parameters were described as <param name='X'>value</param>. So, if the child extra tree node with the name 'X' as searched for: both the above COLLADA 1.3 parameter and the COLLADA 1.4+ <X>value</X> parameters will be returned.
|
|
Retrieves a list of all the parameters contained within the hierarchy. This function is used for COLLADA 1.3 backward compatibility, where all parameters were described as <param name='X'>value</param>. In COLLADA 1.4+, the same parameter should be described as: <X>value</X>. Using this function, both parameters would be returned with the name 'X'.
|
|
Retrieves the animated values associated with this extra tree node. Extra tree node leaves may be animated. If this extra tree node leaf is animated, this animated value will contain the animation curves.
|
|
Retrieves a specific attribute of this extra tree node.
|
|
Retrieves the number of attributes for this extra tree node.
|
|
Retrieves the list of attributes for this extra tree node.
|
|
Retrieves a specific child extra tree node.
|
|
Retrieves the number of children of an extra tree node.
|
|
Retrieves the children of an extra tree node.
|
|
Retrieves the textual content of the extra tree node. This value is only valid for extra tree node that have no children, as COLLADA doesn't allow for mixed-content.
|
|
Retrieves the name of the extra tree node. The name of the extra tree node is the name of the equivalent XML tree node.
|
|
Retrieves the parent of an extra tree node. The hierarchy cannot be changed dynamically. If you to move an extra tree node, you will need to clone it manually and release the old extra tree node.
|
|
[INTERNAL] Reads in the extra tree node from a given COLLADA XML tree node.
Reimplemented in FCDETechnique. |
|
[INTERNAL] Reads in the children nodes of the extra tree node. Used by the FCDETechnique class exclusively.
|
|
Releases this extra tree node. This function is a shortcut to the parent's FCDENode::ReleaseChildNode function. |
|
Releases an attribute of this extra tree node.
|
|
Releases a child extra tree node of this extra tree node.
|
|
Sets the textual content of the extra tree node. This function will release all the child node of this extra tree node, as COLLADA doesn't allow for mixed-content.
|
|
Sets the name of the extra tree node. The name of the extra tree node is the name of the equivalent XML tree node.
|
|
[INTERNAL] Writes out the children nodes of extra tree node. Used by the FCDETechnique class exclusively.
|
|
[INTERNAL] Writes out the extra tree node to the given COLLADA XML tree node.
Reimplemented in FCDETechnique. |