#include <FCDMaterialLibrary.h>
Inheritance diagram for FCDMaterialLibrary:
Public Member Functions | |
FCDMaterialLibrary (FCDocument *document) | |
Constructor: do not use directly. | |
virtual | ~FCDMaterialLibrary () |
Destructor: do not use directly. | |
FCDEffectList & | GetEffects () |
Retrieves the list of effects contained by this library. | |
const FCDEffectList & | GetEffects () const |
See above. | |
size_t | GetEffectCount () const |
Retrieves the number of effects contained by this library. | |
FCDEffect * | GetEffect (size_t index) |
Retrieves an effect contained by this library. | |
const FCDEffect * | GetEffect (size_t index) const |
See above. | |
FCDEffect * | FindEffect (const string &daeId) |
[INTERNAL] Retrieves an effect contained by this library. | |
FCDEffect * | AddEffect () |
Creates a new effect. | |
void | ReleaseEffect (FCDEffect *effect) |
Releases an effect. | |
FCDMaterialList & | GetMaterials () |
Retrieves the list of materials contained by this library. | |
const FCDMaterialList & | GetMaterials () const |
See above. | |
size_t | GetMaterialCount () const |
Retrieves the number of materials contained by this library. | |
FCDMaterial * | GetMaterial (size_t index) |
Retrieves a material contained by this library. | |
const FCDMaterial * | GetMaterial (size_t index) const |
See above. | |
FCDMaterial * | FindMaterial (const string &daeId) |
[INTERNAL] Retrieves a material contained by this library. | |
FCDTexture * | FindTexture (const string &daeId) |
[INTERNAL] Retrieves a texture contained by this library. | |
FCDMaterial * | AddMaterial () |
Creates a new material. | |
void | ReleaseMaterial (FCDMaterial *material) |
Releases a material. | |
virtual FUStatus | LoadFromXML (xmlNode *node) |
[INTERNAL] Reads in the contents of the library from the COLLADA XML document. | |
virtual void | WriteToXML (xmlNode *libraryNode) const |
[INTERNAL] Writes out the library entities to the COLLADA XML document. |
This class covers the material and effect libraries, as well as the texture library for COLLADA 1.3 backward compatibility.
|
Constructor: do not use directly. The document object will create the one and only object of this class.
|
|
Destructor: do not use directly. The document object will release its libraries. |
|
Creates a new effect.
|
|
Creates a new material.
|
|
[INTERNAL] Retrieves an effect contained by this library.
|
|
[INTERNAL] Retrieves a material contained by this library.
|
|
[INTERNAL] Retrieves a texture contained by this library.
|
|
Retrieves an effect contained by this library.
|
|
Retrieves the number of effects contained by this library.
|
|
Retrieves the list of effects contained by this library.
|
|
Retrieves a material contained by this library.
|
|
Retrieves the number of materials contained by this library.
|
|
Retrieves the list of materials contained by this library.
|
|
[INTERNAL] Reads in the contents of the library from the COLLADA XML document. This method will be called once for the effect library and once for the material library. It may also be called once, for COLLADA 1.3 backward compatibility, for the texture library.
Reimplemented from FCDLibrary< FCDEntity >. |
|
Releases an effect.
|
|
Releases a material.
|
|
[INTERNAL] Writes out the library entities to the COLLADA XML document. This method writes out the material library within the given node and writes out the effect library as a sibling node to the given node.
Reimplemented from FCDLibrary< FCDEntity >. |