Class Index | File Index

Classes


Class ModelMaterialsController


Defined in: SweetHome3D.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
ModelMaterialsController(title, preferences, viewFactory, contentManager)
A MVC controller for model materials choice.
Method Summary
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.
 
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 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.
 
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.
Class Detail
ModelMaterialsController(title, preferences, viewFactory, contentManager)
A MVC controller for model materials choice.
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}

{Array} getMaterials()
Returns the materials displayed by view.
Returns:
{Array}

{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} getModelHeight()
Returns the height of the 3D model used to preview materials change.
Returns:
{number}

{Array} getModelRotation()
Returns the rotation of the 3D model used to preview materials change.
Returns:
{Array}

{Array} getModelTransformations()
Returns the transformations of the 3D model used to preview materials change.
Returns:
{Array}

{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:
{Array} 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

© Copyright 2021 Emmanuel PUYBARET / eTeks
Distributed under GNU General Public License
Documentation generated by JsDoc Toolkit 2.4.0 on Tue Mar 02 2021 19:55:52 GMT+0100 (CET)