CSLMaterialLibrary Class Reference

This class represents an SI_MaterialLibrary template. More...

#include <MaterialLibrary.h>

Inheritance diagram for CSLMaterialLibrary:

CSLTemplate CSIBCNode CSLCOLLADAMaterialLibrary List of all members.

Public Member Functions

CSLMaterial AddMaterial ()
virtual CSLXSIMaterial AddXSIMaterial ()
SI_Error  ClearMaterials ()
CSLBaseMaterial **  GetMaterialList ()
SI_Int  GetMaterialCount ()
SI_Error  RemoveMaterial (SI_Int in_nIndex)
SI_Error  RemoveMaterial (CSLBaseMaterial *in_pMaterial)
virtual SI_Error  Synchronize ()
virtual ETemplateType  Type ()

Detailed Description

This class represents an SI_MaterialLibrary template.

Handles the material library (see the SI_MaterialLibrary template reference). From this class you can add or remove materials that can be used in the scene.


Member Function Documentation

CSLMaterial* AddMaterial (  ) 

Adds a new material to the material library.

Returns:
Pointer to the newly created material object.

virtual CSLXSIMaterial* AddXSIMaterial (  )  [virtual]

Adds a new Softimage material to the material library.

Returns:
Pointer to the newly created Softimage material object.

Reimplemented in CSLCOLLADAMaterialLibrary.

SI_Error ClearMaterials (  ) 

Removes all materials from the material library.

Returns:
Error code.

CSLBaseMaterial** GetMaterialList (  ) 

Returns an array of all materials in the library.

Returns:
Array of pointers to material objects.

SI_Int GetMaterialCount (  ) 

Returns the number of materials in the library.

Returns:
Number of materials.

SI_Error RemoveMaterial ( SI_Int  in_nIndex  ) 

Removes a single material from the library.

Parameters:
[in]  in_nIndex  Index of the material to remove.
Returns:
Error code.

SI_Error RemoveMaterial ( CSLBaseMaterial in_pMaterial  ) 

Removes a single material from the library.

Parameters:
[in]  in_pMaterial  Pointer to the material to remove.
Returns:
Error code.

virtual SI_Error Synchronize (  )  [virtual]

Synchronizes to ensure that the animated parameter is up to date.

Returns:
Error code

Reimplemented from CSLTemplate.

virtual ETemplateType Type (  )  [virtual]

Returns the type of this template

Returns:
CSLTemplate::SI_MATERIAL_LIBRARY Template type

Implements CSLTemplate.


The documentation for this class was generated from the following file: