#include <FCDEntity.h>
Inheritance diagram for FCDEntity:
Public Types | |
enum | Type { ENTITY, ANIMATION, ANIMATION_CLIP, CAMERA, LIGHT, IMAGE, TEXTURE, MATERIAL, EFFECT, GEOMETRY, CONTROLLER, SCENE_NODE, PHYSICS_RIGID_CONSTRAINT, PHYSICS_MATERIAL, PHYSICS_RIGID_BODY, PHYSICS_SHAPE, PHYSICS_ANALYTICAL_GEOMETRY, PHYSICS_MODEL, PHYSICS_SCENE_NODE } |
The types of entity classes. More... | |
Public Member Functions | |
FCDEntity (FCDocument *document, const char *baseId="GenericEntity") | |
Constructor: do not use directly. | |
virtual | ~FCDEntity () |
Destructor: do not use directly. | |
virtual Type | GetType () const |
Retrieves the entity class type for an entity. | |
const fstring & | GetName () const |
Retrieves the name of the entity. | |
void | SetName (const fstring &_name) |
Sets the name of the entity. | |
FCDExtra * | GetExtra () |
Retrieves the extra information tree for this entity. | |
const FCDExtra * | GetExtra () const |
See above. | |
bool | HasNote () const |
Retrieves whether the entity has a user-defined note. | |
const fstring & | GetNote () const |
Retrieves the user-defined note for this entity. | |
void | SetNote (const fstring &_note) |
Sets the user-defined note for this entity. | |
virtual FCDEntity * | FindDaeId (const string &daeId) |
Retrieves the child entity that has the given COLLADA id. | |
virtual FUStatus | LoadFromXML (xmlNode *entityNode) |
[INTERNAL] Reads in the entity from a given COLLADA XML tree node. | |
virtual xmlNode * | WriteToXML (xmlNode *parentNode) const |
[INTERNAL] Writes out the entity to the given COLLADA XML tree node. | |
StringList & | GetPostProcessCmds () |
Protected Member Functions | |
xmlNode * | WriteToEntityXML (xmlNode *parentNode, const char *nodeName) const |
[INTERNAL] Writes out the top entity XML node for the entity. | |
void | WriteToExtraXML (xmlNode *entityNode) const |
[INTERNAL] Writes out the extra information for the entity. | |
void | Clone (FCDEntity *clone) |
[INTERNAL] Copies the entity information into a cloned entity. |
A COLLADA entity is an object contained within a COLLADA library. As such, it is based on the FCDObjectWithId class so that it can be accessed by other entities, such as the scene graph.
The entity adds to the FCDObjectWithId class: a name, an extra tree and an optional note, as well as a way to identity the type of the entity, in order to up-cast it to its correct class.
|
The types of entity classes. Each type corresponds directly to one class that contains the FCDEntity class as a parent, so you can up-cast FCDEntity pointers.
|
|
Constructor: do not use directly. Instead, create objects of the up-classes.
|
|
Destructor: do not use directly. Instead, release objects through their libraries or their parent entities. |
|
[INTERNAL] Copies the entity information into a cloned entity. This function should be used by all up-classes when cloning an entity to copy the COLLADA id and the other entity-level information into a clone.
|
|
Retrieves the child entity that has the given COLLADA id. This function is only useful for entities that are hierarchical: visual/physics scene nodes and animations.
Reimplemented in FCDAnimation, and FCDSceneNode. |
|
Retrieves the extra information tree for this entity. The prefered way to save extra information in FCollada is at the entity level. Use this extra information tree to store any information you want exported and imported back.
|
|
Retrieves the name of the entity. This value has no direct use in COLLADA but is useful to track the user-friendly name of an entity.
|
|
Retrieves the user-defined note for this entity. This value is a simpler way, than the extra tree, to store user-defined information that does not belong in COLLADA.
|
|
|
|
Retrieves the entity class type for an entity. You can use the entity class type of up-cast an entity pointer to the correct up-class. This function should be overwritten by all up-classes.
Reimplemented in FCDAnimation, FCDCamera, FCDController, FCDEffect, FCDGeometry, FCDImage, FCDLight, FCDMaterial, FCDSceneNode, and FCDTexture. |
|
Retrieves whether the entity has a user-defined note. This value is a simpler way, than the extra tree, to store user-defined information that does not belong in COLLADA.
|
|
[INTERNAL] Reads in the entity from a given COLLADA XML tree node. This function should be overwritten by all up-classes.
Reimplemented in FCDAnimation, FCDCamera, FCDController, FCDEffect, FCDGeometry, FCDImage, FCDLight, FCDMaterial, FCDSceneNode, and FCDTexture. |
|
Sets the name of the entity. This value has no direct use in COLLADA but is useful to track the user-friendly name of an entity.
|
|
Sets the user-defined note for this entity. This value is a simpler way, than the extra tree, to store user-defined information that does not belong in COLLADA.
|
|
[INTERNAL] Writes out the top entity XML node for the entity. This function should be used by all up-classes within the WriteToXML overwritting function to create the top XML node, as it will write out the name and COLLADA id of the entity.
|
|
[INTERNAL] Writes out the extra information for the entity. This function should be used by all up-classes within the WriteToXML overwritting function, at the very end, to write the user-defined note and the extra tree to the COLLADA document.
|
|
[INTERNAL] Writes out the entity to the given COLLADA XML tree node. This function should be overwritten by all up-classes.
Reimplemented in FCDAnimation, FCDCamera, FCDController, FCDEffect, FCDGeometry, FCDImage, FCDLight, FCDMaterial, and FCDSceneNode. |