#include <FCDLibrary.h>
Public Member Functions | |
FCDLibrary (FCDocument *document) | |
Constructor: do not use directly. | |
virtual | ~FCDLibrary () |
Destructor: do not use directly. | |
T * | AddEntity () |
Create a new entity within this library. | |
void | ReleaseEntity (T *entity) |
Releases an entity contained within this library. | |
T * | FindDaeId (const string &daeId) |
Retrieve the library entity with the given COLLADA id. | |
bool | IsEmpty () const |
Returns whether the library contains no entities. | |
virtual FUStatus | LoadFromXML (xmlNode *node) |
[INTERNAL] Reads in the contents of the library from the COLLADA XML document. | |
virtual void | WriteToXML (xmlNode *node) const |
[INTERNAL] Writes out the library entities to the COLLADA XML document. | |
StringList | GetPostProcessCmds () const |
size_t | GetEntityCount () const |
Retrieve the number of entities within the library. | |
T * | GetEntity (size_t index) |
Retrieve an indexed entity from the library. | |
const T * | GetEntity (size_t index) const |
Retrieve an indexed entity from the library. | |
Protected Types | |
typedef vector< T * > | FCDEntityList |
The list type for the entities. | |
Protected Member Functions | |
FCDocument * | GetDocument () |
Retrieves the parent document. | |
const FCDocument * | GetDocument () const |
See above. | |
Protected Attributes | |
FCDEntityList | entities |
Entities list. |
A COLLADA library holds a list of entities. There are libraries for the following entities: animations (FCDAnimation), animation clips (FCDAnimationClip), meshes and splines (FCDGeometry), materials (FCDMaterial), effects (FCDEffect), images (FCDImage), skins and morphers (FCDController), cameras (FCDCamera), lights (FCDLight), physics models (FCDPhysicsModel), physics materials (FCDPhysicsMaterial), physics scenes (FCDPhysicsSceneNode) and visual scenes (FCDSceneNode).
The COLLADA libraries are contained within the FCDocument object.
|
Constructor: do not use directly. All the necessary libraries are created by the FCDocument object during its creation.
|
|
Destructor: do not use directly. The libraries are released by the FCDocument, just before it is released. |
|
Create a new entity within this library.
|
|
Retrieve the library entity with the given COLLADA id.
|
|
Retrieves the parent document.
|
|
Retrieve an indexed entity from the library.
|
|
Retrieve an indexed entity from the library.
|
|
Retrieve the number of entities within the library.
|
|
|
|
Returns whether the library contains no entities.
|
|
[INTERNAL] Reads in the contents of the library from the COLLADA XML document.
Reimplemented in FCDMaterialLibrary. |
|
Releases an entity contained within this library.
|
|
[INTERNAL] Writes out the library entities to the COLLADA XML document.
Reimplemented in FCDMaterialLibrary. |
|
Entities list. This list should contain all the root entities of the correct type. Note that the following entity types are tree-based, rather than list-based: FCDAnimation, FCDSceneNode and FCDPhysicsSceneNode. |