#include <FCDExtra.h>
Inheritance diagram for FCDENode:
Public Member Functions | |
FCDENode (FCDocument *document, FCDENode *parent) | |
Constructor: do not use directly. | |
virtual | ~FCDENode () |
Destructor. | |
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 fm::string &_name) |
See above. | |
void | SetName (fm::string &_name) |
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. | |
void | SetContentDirect (const fstring &_content) |
[INTERNAL] Set the content directly. | |
FCDAnimatedCustom * | GetAnimated () |
Retrieves the animated values associated with this extra tree node. | |
const FCDAnimatedCustom * | GetAnimated () const |
See above. | |
void | SetAnimated (FCDAnimatedCustom *animatedCustom) |
[INTERNAL] Set the customized animated. | |
FCDENode * | GetParent () |
Retrieves the parent of an extra tree node. | |
const FCDENode * | GetParent () const |
See above. | |
DEPRECATED (3.05A, GetChildNodeCount and GetChildNode(index)) void GetChildNodes() const | |
Retrieves the children of an extra tree node. | |
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. | |
FCDENode * | AddChildNode (const char *name) |
Adds a new, named, child extra tree to this extra tree node. | |
FCDENode * | AddChildNode (const fm::string &name) |
See above. | |
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 fm::string &name) |
See above. | |
const FCDENode * | FindChildNode (const fm::string &name) const |
See above. | |
void | FindChildrenNodes (const char *name, FCDENodeList &nodes) const |
Retrieves the child extra tree nodes with the given name. | |
void | FindChildrenNodes (const fm::string &name, FCDENodeList &nodes) const |
See above. | |
const FCDENode * | FindParameter (const char *name) const |
Retrieves the child extra tree node with the given name. | |
FCDENode * | FindParameter (const char *name) |
See above. | |
void | FindParameters (FCDENodeList &nodes, StringList &names) |
Retrieves a list of all the parameters contained within the hierarchy. | |
DEPRECATED (3.05A, GetAttributeCount and GetAttribute(index)) void GetAttributes() const | |
Retrieves the list of attributes for this extra tree node. | |
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 (fm::string &_name, const fchar *_value) |
Adds a new attribute to this extra tree node. | |
FCDEAttribute * | AddAttribute (const char *_name, const fchar *_value) |
See above. | |
FCDEAttribute * | AddAttribute (const fm::string &_name, const fchar *_value) |
See above. | |
FCDEAttribute * | AddAttribute (const char *_name, const fstring &_value) |
See above. | |
FCDEAttribute * | AddAttribute (fm::string &_name, const fstring &_value) |
See above. | |
FCDEAttribute * | AddAttribute (const fm::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 (fm::string &_name, const T &_value) |
See above. | |
template<typename T> | |
FCDEAttribute * | AddAttribute (const fm::string &_name, const T &_value) |
See above. | |
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. | |
const fstring & | ReadAttribute (const char *name) const |
Retrieves the value of an attribute on this extra tree node. | |
FCDENode * | AddParameter (const char *name, const fchar *value) |
Adds a parameter as the child node. | |
FCDENode * | AddParameter (const fm::string &name, const fchar *value) |
See above. | |
FCDENode * | AddParameter (const char *name, const fstring &value) |
See above. | |
FCDENode * | AddParameter (const fm::string &name, const fstring &value) |
See above. | |
template<class T> | |
FCDENode * | AddParameter (const char *name, const T &value) |
See above. | |
template<class T> | |
FCDENode * | AddParameter (const fm::string &name, const T &value) |
See above. | |
virtual FCDENode * | Clone (FCDENode *clone) const |
Clones the extra tree node. | |
Static Public Member Functions | |
static void | CleanName (fm::string &n) |
Cleans up extra tree node names and extra tree attribute names in order to always start with an alphabetic character or an underscore, as well as contain only alphanumeric characters or underscore. |
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.
|
|
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, named, child extra tree to this extra tree node.
|
|
Adds a new child extra tree to this extra tree node.
|
|
Adds a parameter as the child node. A parameter is the simplest child node possible: with a name and a value, represented as the node's content.
|
|
Cleans up extra tree node names and extra tree attribute names in order to always start with an alphabetic character or an underscore, as well as contain only alphanumeric characters or underscore.
|
|
Clones the extra tree node.
Reimplemented in FCDETechnique. |
|
Retrieves the list of attributes for this extra tree node.
|
|
Retrieves the children of an 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 nodes with the given name.
|
|
Retrieves the child extra tree node with the given name. A parameter has no child nodes and is described as: <X>value</X>. The first child extra tree node where the name matches 'X' will be returned.
|
|
Retrieves a list of all the parameters contained within the hierarchy. A parameter has no child nodes and is described as: <X>value</X>. Using this function, The parameter 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 a specific child extra tree node.
|
|
Retrieves the number of 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.
|
|
Retrieves the value of an attribute on this extra tree node. Attributes names are unique within an extra tree node.
|
|
[INTERNAL] Set the customized animated. The old pointer is released first. The new animated. |
|
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.
|
|
[INTERNAL] Set the content directly.
|
|
Sets the name of the extra tree node. The name of the extra tree node is the name of the equivalent XML tree node.
|