Class ModelMaterialsController
Defined in: SweetHome3D.js.
Constructor Attributes | Constructor Name and Description |
---|---|
ModelMaterialsController(title, preferences, viewFactory, contentManager)
A MVC controller for model materials choice.
|
Method Attributes | Method Name and Description |
---|---|
addPropertyChangeListener(property, listener)
Adds the property change
listener in parameter to this controller. |
|
Returns the text that should be displayed as materials choice dialog title.
|
|
Returns the materials displayed by view.
|
|
getModel()
Returns the 3D model which materials are displayed by the view.
|
|
Returns the creator of the 3D model displayed by the view.
|
|
Returns the depth of the 3D model used to preview materials change.
|
|
Returns the flags applied to the 3D model used to preview materials change.
|
|
Returns the height of the 3D model used to preview materials change.
|
|
Returns the rotation of the 3D model used to preview materials change.
|
|
Returns the transformations of the 3D model used to preview materials change.
|
|
Returns the width of the 3D model used to preview materials change.
|
|
Returns the texture controller of the model materials.
|
|
getView()
Returns the view associated with this controller.
|
|
Returns
true if the 3D model used to preview materials change should show back face. |
|
removePropertyChangeListener(property, listener)
Removes the property change
listener in parameter from this controller. |
|
setMaterials(materials)
Sets the materials displayed by view and fires a
PropertyChangeEvent . |
|
setModel(model)
Sets the 3D model which materials are displayed by the view
and fires a
PropertyChangeEvent . |
|
setModelCreator(modelCreator)
Sets the creator of the 3D model displayed by the view.
|
|
setModelFlags(modelFlags)
Sets the flags applied to the 3D model used to preview materials change.
|
Class Detail
ModelMaterialsController(title, preferences, viewFactory, contentManager)
A MVC controller for model materials choice.
Author: Emmanuel Puybaret.
Author: Emmanuel Puybaret.
- Parameters:
- {string} title
- {UserPreferences} preferences
- {Object} viewFactory
- {Object} contentManager
Method Detail
addPropertyChangeListener(property, listener)
Adds the property change
listener
in parameter to this controller.
- Parameters:
- {string} property
- {PropertyChangeListener} listener
{string}
getDialogTitle()
Returns the text that should be displayed as materials choice dialog title.
- Returns:
- {string}
{com.eteks.sweethome3d.model.HomeMaterial[]}
getMaterials()
Returns the materials displayed by view.
- Returns:
- {com.eteks.sweethome3d.model.HomeMaterial[]}
{Object}
getModel()
Returns the 3D model which materials are displayed by the view.
- Returns:
- {Object}
{string}
getModelCreator()
Returns the creator of the 3D model displayed by the view.
- Returns:
- {string}
{number}
getModelDepth()
Returns the depth of the 3D model used to preview materials change.
- Returns:
- {number}
{number}
getModelFlags()
Returns the flags applied to the 3D model used to preview materials change.
- Returns:
- {number}
{number}
getModelHeight()
Returns the height of the 3D model used to preview materials change.
- Returns:
- {number}
{float[][]}
getModelRotation()
Returns the rotation of the 3D model used to preview materials change.
- Returns:
- {float[][]}
{com.eteks.sweethome3d.model.Transformation[]}
getModelTransformations()
Returns the transformations of the 3D model used to preview materials change.
- Returns:
- {com.eteks.sweethome3d.model.Transformation[]}
{number}
getModelWidth()
Returns the width of the 3D model used to preview materials change.
- Returns:
- {number}
{TextureChoiceController}
getTextureController()
Returns the texture controller of the model materials.
- Returns:
- {TextureChoiceController}
{Object}
getView()
Returns the view associated with this controller.
- Returns:
- {Object}
{boolean}
isBackFaceShown()
Returns
true
if the 3D model used to preview materials change should show back face.
- Returns:
- {boolean}
removePropertyChangeListener(property, listener)
Removes the property change
listener
in parameter from this controller.
- Parameters:
- {string} property
- {PropertyChangeListener} listener
setMaterials(materials)
Sets the materials displayed by view and fires a
PropertyChangeEvent
.
- Parameters:
- {com.eteks.sweethome3d.model.HomeMaterial[]} materials
setModel(model)
Sets the 3D model which materials are displayed by the view
and fires a
PropertyChangeEvent
.
- Parameters:
- {Object} model
setModelCreator(modelCreator)
Sets the creator of the 3D model displayed by the view.
- Parameters:
- {string} modelCreator
setModelFlags(modelFlags)
Sets the flags applied to the 3D model used to preview materials change.
- Parameters:
- {number} modelFlags