Class TexturesCatalog
Defined in: SweetHome3D.js.
| Constructor Attributes | Constructor Name and Description |
|---|---|
|
Textures catalog.
|
| Method Attributes | Method Name and Description |
|---|---|
|
add(category, texture)
Adds
texture of a given category to this catalog. |
|
|
addTexturesListener(listener)
Adds the texture
listener in parameter to this catalog. |
|
|
Returns the categories list sorted by name.
|
|
|
Returns the count of categories in this catalog.
|
|
|
getCategory(index)
Returns the category at a given
index. |
|
|
removeTexturesListener(listener)
Removes the texture
listener in parameter from this catalog. |
Method Detail
add(category, texture)
Adds
texture of a given category to this catalog.
Once the texture is added, texture listeners added to this catalog will receive a
{@link CollectionListener#collectionChanged(CollectionEvent) collectionChanged} notification.
- Parameters:
- {TexturesCategory} category
- the category of the texture.
- {CatalogTexture} texture
- a texture.
addTexturesListener(listener)
Adds the texture
listener in parameter to this catalog.
- Parameters:
- {Object} listener
{TexturesCategory[]}
getCategories()
Returns the categories list sorted by name.
- Returns:
- {TexturesCategory[]} a list of categories.
{number}
getCategoriesCount()
Returns the count of categories in this catalog.
- Returns:
- {number}
{TexturesCategory}
getCategory(index)
Returns the category at a given
index.
- Parameters:
- {number} index
- Returns:
- {TexturesCategory}
removeTexturesListener(listener)
Removes the texture
listener in parameter from this catalog.
- Parameters:
- {Object} listener
