#include <FCDEntityInstance.h>
Inheritance diagram for FCDEntityInstance:
Public Types | |
enum | Type { SIMPLE, EXTERNAL_REFERENCE, GEOMETRY, MATERIAL, PHYSICS_MODEL, PHYSICS_RIGID_BODY, PHYSICS_RIGID_CONSTRAINT } |
The class type of the entity instance class. More... | |
Public Member Functions | |
FCDEntityInstance (FCDocument *document, FCDEntity *entity=NULL) | |
Constructor: do not use directly. | |
virtual | ~FCDEntityInstance () |
Destructor: do not use directly. | |
virtual Type | GetType () const |
Retrieves the entity instance class type. | |
FCDEntity * | GetEntity () |
Retrieves the instantiated entity. | |
const FCDEntity * | GetEntity () const |
See above. | |
virtual FUStatus | LoadFromXML (xmlNode *UNUSED(instanceNode)) |
[INTERNAL] Reads in the entity instance from a given COLLADA XML tree node. | |
virtual xmlNode * | WriteToXML (xmlNode *parentNode) const |
[INTERNAL] Writes out the entity instance to the given COLLADA XML tree node. | |
Protected Member Functions | |
void | SetEntity (FCDEntity *_entity) |
Sets the instantiated entity. | |
Static Protected Member Functions | |
static const char * | GetInstanceClassType (FCDEntity::Type type) |
[INTERNAL] Retrieves the COLLADA name for the instantiation of a given entity type. |
COLLADA allows for quite a bit of per-instance settings for entities. This information is held by the up-classes of this class. This base class is simply meant to hold the entity that is instantiated.
|
|
Constructor: do not use directly. Instead, use the appropriate allocation function. For scene node instance: FCDSceneNode::AddInstance.
|
|
Destructor: do not use directly. Instead, use the appropriate release funciton. For scene node instances: FCDSceneNode::ReleaseInstance. |
|
Retrieves the instantiated entity.
|
|
[INTERNAL] Retrieves the COLLADA name for the instantiation of a given entity type.
|
|
Retrieves the entity instance class type. This is used to determine the up-class for the entity instance object.
Reimplemented in FCDExternalReference, FCDGeometryInstance, and FCDMaterialInstance. |
|
[INTERNAL] Reads in the entity instance from a given COLLADA XML tree node.
|
|
Sets the instantiated entity. This is used in up-classes to support different instantiation schemes.
|
|
[INTERNAL] Writes out the entity instance to the given COLLADA XML tree node.
Reimplemented in FCDExternalReference, FCDGeometryInstance, and FCDMaterialInstance. |