Class PatternsCatalog
Defined in: SweetHome3D.js.
| Constructor Attributes | Constructor Name and Description |
|---|---|
|
PatternsCatalog(patterns)
Creates a patterns catalog.
|
| Method Attributes | Method Name and Description |
|---|---|
|
getPattern(name)
Returns the pattern with a given
name. |
|
|
Returns the patterns list.
|
|
|
Returns the count of patterns in this category.
|
Class Detail
PatternsCatalog(patterns)
Creates a patterns catalog.
Author: Emmanuel Puybaret.
Author: Emmanuel Puybaret.
- Parameters:
- {*[]} patterns
Method Detail
{Object}
getPattern(name)
Returns the pattern with a given
name.
- Parameters:
- {string} name
- Throws:
- IllegalArgumentException if no pattern with the given
nameexists
- Returns:
- {Object}
{*[]}
getPatterns()
Returns the patterns list.
- Returns:
- {*[]} a list of furniture.
{number}
getPatternsCount()
Returns the count of patterns in this category.
- Returns:
- {number}
