Class Index | File Index

Classes


Class TexturesCategory


Defined in: SweetHome3D.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
Create a category.
Method Summary
Method Attributes Method Name and Description
 
add(texture)
Adds a texture to this category.
 
compareTo(category)
Compares the names of this category and the one in parameter.
 
equals(obj)
Returns true if this category and the one in parameter have the same name.
 
Returns the index of the given texture.
 
Returns the name of this category.
 
getTexture(index)
Returns the texture at a given index.
 
Returns the textures list of this category sorted by name.
 
Returns the count of textures in this category.
Class Detail
TexturesCategory(name)
Create a category.
Author: Emmanuel Puybaret.
Parameters:
{string} name
the name of the category.
Method Detail
add(texture)
Adds a texture to this category.
Parameters:
{CatalogTexture} texture
the texture to add.

{number} compareTo(category)
Compares the names of this category and the one in parameter.
Parameters:
{TexturesCategory} category
Returns:
{number}

{boolean} equals(obj)
Returns true if this category and the one in parameter have the same name.
Parameters:
{Object} obj
Returns:
{boolean}

{number} getIndexOfTexture(texture)
Returns the index of the given texture.
Parameters:
{CatalogTexture} texture
Returns:
{number}

{string} getName()
Returns the name of this category.
Returns:
{string}

{CatalogTexture} getTexture(index)
Returns the texture at a given index.
Parameters:
{number} index
Returns:
{CatalogTexture}

{CatalogTexture[]} getTextures()
Returns the textures list of this category sorted by name.
Returns:
{CatalogTexture[]} a list of furniture.

{number} getTexturesCount()
Returns the count of textures in this category.
Returns:
{number}

© Copyrights 2017 Emmanuel PUYBARET / eTeks
Distributed under GNU General Public License
Documentation generated by JsDoc Toolkit 2.4.0 on Wed Oct 25 2017 16:36:09 GMT+0200 (CEST)