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.
|
java.lang.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.
|
int |
getModelFlags()
Returns the flags applied to 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.
|
Transformation[] |
getModelTransformations()
Returns the transformations 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 . |
void |
setModelCreator(java.lang.String modelCreator)
Sets the creator of the 3D model displayed by the view.
|
void |
setModelFlags(int modelFlags)
Sets the flags applied to the 3D model used to preview materials change.
|
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 void setModelCreator(java.lang.String modelCreator)
public java.lang.String getModelCreator()
public float[][] getModelRotation()
public Transformation[] getModelTransformations()
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 setModelFlags(int modelFlags)
public int getModelFlags()
public void setMaterials(HomeMaterial[] materials)
PropertyChangeEvent
.public HomeMaterial[] getMaterials()
public java.lang.String getDialogTitle()
public TextureChoiceController getTextureController()
© Copyright 2024 Space Mushrooms
Distributed under GNU General Public License