public class ModelMaterialsController extends Object implements Controller
| Modifier and Type | Class and Description |
|---|---|
static class |
ModelMaterialsController.Property |
| Constructor and Description |
|---|
ModelMaterialsController(String title,
UserPreferences preferences,
ViewFactory viewFactory,
ContentManager contentManager) |
| Modifier and Type | Method and Description |
|---|---|
void |
addPropertyChangeListener(ModelMaterialsController.Property property,
PropertyChangeListener listener)
Adds the property change
listener in parameter to this controller. |
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.
|
String |
getModelCreator()
Returns the creator of the 3D model 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,
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. |
void |
setModelCreator(String modelCreator)
Sets the creator of the 3D model displayed by the view.
|
public ModelMaterialsController(String title, UserPreferences preferences, ViewFactory viewFactory, ContentManager contentManager)
public View getView()
getView in interface Controllerpublic void addPropertyChangeListener(ModelMaterialsController.Property property, PropertyChangeListener listener)
listener in parameter to this controller.public void removePropertyChangeListener(ModelMaterialsController.Property property, PropertyChangeListener listener)
listener in parameter from this controller.public void setModel(Content model)
PropertyChangeEvent.public Content getModel()
public void setModelCreator(String modelCreator)
public String getModelCreator()
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 String getDialogTitle()
public TextureChoiceController getTextureController()

© Copyrights 2006-2017 Emmanuel PUYBARET / eTeks
Distributed under GNU General Public License