#include <FCDLibrary.h>
Inheritance diagram for FCDLibrary< T >:
Public Member Functions | |
FCDLibrary (FCDocument *document) | |
Constructor: do not use directly. | |
virtual | ~FCDLibrary () |
Destructor. | |
T * | AddEntity () |
Creates a new entity within this library. | |
void | AddEntity (T *entity) |
Inserts a new entity to this library. | |
T * | FindDaeId (const fm::string &daeId) |
Retrieves the library entity with the given COLLADA id. | |
const T * | FindDaeId (const fm::string &daeId) const |
See above. | |
bool | IsEmpty () const |
Returns whether the library contains no entities. | |
size_t | GetEntityCount () const |
Retrieves the number of entities within the library. | |
T * | GetEntity (size_t index) |
Retrieves an indexed entity from the library. | |
const T * | GetEntity (size_t index) const |
See above. | |
FCDAsset * | GetAsset (bool create=true) |
Retrieves the asset information for the library. | |
const FCDAsset * | GetAsset () const |
FCDExtra * | GetExtra () |
Retrieves the asset information for the library. | |
const FCDExtra * | GetExtra () const |
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 (FCDPhysicsScene) 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.
|
|
Inserts a new entity to this library. This function is useful if you are adding cloned entites back inside the library.
|
|
Creates a new entity within this library.
|
|
Retrieves the library entity with the given COLLADA id.
|
|
Retrieves the asset information for the library. The non-const version of this function can create an empty asset structure for this library.
|
|
Retrieves an indexed entity from the library.
|
|
Retrieves the number of entities within the library.
|
|
Retrieves the asset information for the library.
|
|
Returns whether the library contains no entities.
|