Class Index | File Index

Classes


Class TexturesCatalog


Defined in: SweetHome3D.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
Textures catalog.
Method Summary
Method Attributes Method Name and Description
 
add(category, texture)
Adds texture of a given category to this catalog.
 
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.
 
Removes the texture listener in parameter from this catalog.
Class Detail
TexturesCatalog()
Textures catalog.
Author: Emmanuel Puybaret.
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

© Copyright 2024 Emmanuel PUYBARET / eTeks
Distributed under GNU General Public License
Documentation generated by JsDoc Toolkit 2.4.0 on Thu Apr 04 2024 17:30:27 GMT+0200 (CEST)