A material library represents a collection of materials divided into catalogs.
#include
<class_material_library_1_1_material_library.h>
Public Member Functions |
|
| __init__ () | |
| __del__ () | |
| instance () | |
| destruct () | |
| __iter__ () | |
| Iterates over the catalogs in this library.
|
|
| __len__ () | |
| Returns the number of catalogs in this
library. |
|
| loadMaterialFile () | |
| Loads the materials from the given file.
|
|
| unloadMaterialFile () | |
| Unloads the materials from the given file.
|
|
| loadAllCatalogs () | |
| Loads the material catalogs from all
material files found in the search directories designated in the
materials search path. |
|
| unloadAllCatalogs () | |
| addThumbnail () | |
| removeThumbnail () | |
| getAllMaterialNames () | |
| getAllMaterialFullLabelsAndNames () | |
| getCatalog () | |
| addCatalog () | |
| removeCatalog () | |
| findMaterial () | |
| isValidLibraryFile () | |
| getIdExtensionOfFile () | |
| getUniqueNameInFile () | |
| getMaterialWithSameLabelInFile () | |
| getMaterialFileNamespace () | |
| getUniqueNamespace () | |
| getUniqueLabel () | |
| removeFromMaterialFile () | |
| addToMaterialFile () | |
| isLibraryMaterial () | |
| parseMaterialPath () | |
| parseGroupPath () | |
| parseMaterialName () | |
| writeMaterialFile () | |
| getMaterialFile () | |
| isWritable () | |
| isExisting () | |
| MaterialLibrary.MaterialLibrary.__init__ | ( | ) |
| MaterialLibrary.MaterialLibrary.__del__ | ( | ) |
| MaterialLibrary.MaterialLibrary.instance | ( | ) |
| MaterialLibrary.MaterialLibrary.destruct | ( | ) |
| MaterialLibrary.MaterialLibrary.__iter__ | ( | ) |
Iterates over the catalogs in this library.
| MaterialLibrary.MaterialLibrary.__len__ | ( | ) |
Returns the number of catalogs in this library.
| MaterialLibrary.MaterialLibrary.loadMaterialFile | ( | ) |
Loads the materials from the given file.
If the file is an xml file, a new catalog will be created (if not already created) for the directory, and a group in that catalog for the file.
| MaterialLibrary.MaterialLibrary.unloadMaterialFile | ( | ) |
Unloads the materials from the given file.
| MaterialLibrary.MaterialLibrary.loadAllCatalogs | ( | ) |
Loads the material catalogs from all material files found in the search directories designated in the materials search path.
Currently we assume that any .xml file in these directories is a material catalog. The filename (without the suffix) is currently used as the catalog name.
| MaterialLibrary.MaterialLibrary.unloadAllCatalogs | ( | ) |
| MaterialLibrary.MaterialLibrary.addThumbnail | ( | ) |
| MaterialLibrary.MaterialLibrary.removeThumbnail | ( | ) |
| MaterialLibrary.MaterialLibrary.getAllMaterialNames | ( | ) |
| MaterialLibrary.MaterialLibrary.getAllMaterialFullLabelsAndNames | ( | ) |
| MaterialLibrary.MaterialLibrary.getCatalog | ( | ) |
| MaterialLibrary.MaterialLibrary.addCatalog | ( | ) |
| MaterialLibrary.MaterialLibrary.removeCatalog | ( | ) |
| MaterialLibrary.MaterialLibrary.findMaterial | ( | ) |
| MaterialLibrary.MaterialLibrary.isValidLibraryFile | ( | ) |
| MaterialLibrary.MaterialLibrary.getIdExtensionOfFile | ( | ) |
| MaterialLibrary.MaterialLibrary.getUniqueNameInFile | ( | ) |
| MaterialLibrary.MaterialLibrary.getMaterialWithSameLabelInFile | ( | ) |
| MaterialLibrary.MaterialLibrary.getMaterialFileNamespace | ( | ) |
| MaterialLibrary.MaterialLibrary.getUniqueNamespace | ( | ) |
| MaterialLibrary.MaterialLibrary.getUniqueLabel | ( | ) |
| MaterialLibrary.MaterialLibrary.removeFromMaterialFile | ( | ) |
| MaterialLibrary.MaterialLibrary.addToMaterialFile | ( | ) |
| MaterialLibrary.MaterialLibrary.isLibraryMaterial | ( | ) |
| MaterialLibrary.MaterialLibrary.parseMaterialPath | ( | ) |
| MaterialLibrary.MaterialLibrary.parseGroupPath | ( | ) |
| MaterialLibrary.MaterialLibrary.parseMaterialName | ( | ) |
| MaterialLibrary.MaterialLibrary.writeMaterialFile | ( | ) |
| MaterialLibrary.MaterialLibrary.getMaterialFile | ( | ) |
| MaterialLibrary.MaterialLibrary.isWritable | ( | ) |
| MaterialLibrary.MaterialLibrary.isExisting | ( | ) |