public class ModelMaterialsController extends java.lang.Object implements Controller
Modifier and Type | Class and Description |
---|---|
static class |
ModelMaterialsController.Property |
Constructor and Description |
---|
ModelMaterialsController(java.lang.String title,
UserPreferences preferences,
ViewFactory viewFactory,
ContentManager contentManager) |
Modifier and Type | Method and Description |
---|---|
void |
addPropertyChangeListener(ModelMaterialsController.Property property,
java.beans.PropertyChangeListener listener)
Adds the property change
listener in parameter to this controller. |
java.lang.String |
getDialogTitle()
Returns the text that should be displayed as materials choice dialog title.
|
HomeMaterial[] |
getMaterials()
Returns the materials displayed by view.
|
Content |
getModel()
Returns the 3D model which materials are displayed by the view.
|
float |
getModelDepth()
Returns the depth of the 3D model used to preview materials change.
|
float |
getModelHeight()
Returns the height of the 3D model used to preview materials change.
|
float[][] |
getModelRotation()
Returns the rotation of the 3D model used to preview materials change.
|
float |
getModelWidth()
Returns the width of the 3D model used to preview materials change.
|
TextureChoiceController |
getTextureController()
Returns the texture controller of the model materials.
|
View |
getView()
Returns the view associated with this controller.
|
boolean |
isBackFaceShown()
Returns
true if the 3D model used to preview materials change should show back face. |
void |
removePropertyChangeListener(ModelMaterialsController.Property property,
java.beans.PropertyChangeListener listener)
Removes the property change
listener in parameter from this controller. |
void |
setMaterials(HomeMaterial[] materials)
Sets the materials displayed by view and fires a
PropertyChangeEvent . |
void |
setModel(Content model)
Sets the 3D model which materials are displayed by the view
and fires a
PropertyChangeEvent . |
public ModelMaterialsController(java.lang.String title, UserPreferences preferences, ViewFactory viewFactory, ContentManager contentManager)
public View getView()
getView
in interface Controller
public void addPropertyChangeListener(ModelMaterialsController.Property property, java.beans.PropertyChangeListener listener)
listener
in parameter to this controller.public void removePropertyChangeListener(ModelMaterialsController.Property property, java.beans.PropertyChangeListener listener)
listener
in parameter from this controller.public void setModel(Content model)
PropertyChangeEvent
.public Content getModel()
public float[][] getModelRotation()
public float getModelWidth()
public float getModelDepth()
public float getModelHeight()
public boolean isBackFaceShown()
true
if the 3D model used to preview materials change should show back face.public void setMaterials(HomeMaterial[] materials)
PropertyChangeEvent
.public HomeMaterial[] getMaterials()
public java.lang.String getDialogTitle()
public TextureChoiceController getTextureController()
© Copyrights 2006-2014 eTeks - All rights reserved
Distributed under GNU General Public License