|
Sweet Home 3D 3.4 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.eteks.sweethome3d.viewcontroller.Home3DAttributesController
public class Home3DAttributesController
A MVC controller for home 3D attributes view.
Nested Class Summary | |
---|---|
static class |
Home3DAttributesController.EnvironmentPaint
The possible values for ground paint type. |
static class |
Home3DAttributesController.Property
The properties that may be edited by the view associated to this controller. |
Constructor Summary | |
---|---|
Home3DAttributesController(Home home,
UserPreferences preferences,
ViewFactory viewFactory,
ContentManager contentManager,
javax.swing.undo.UndoableEditSupport undoSupport)
Creates the controller of 3D view with undo support. |
Method Summary | |
---|---|
void |
addPropertyChangeListener(Home3DAttributesController.Property property,
java.beans.PropertyChangeListener listener)
Adds the property change listener in parameter to this controller. |
void |
displayView(View parentView)
Displays the view controlled by this controller. |
int |
getGroundColor()
Returns the edited ground color. |
Home3DAttributesController.EnvironmentPaint |
getGroundPaint()
Returns whether the ground is colored or textured. |
TextureChoiceController |
getGroundTextureController()
Returns the texture controller of the ground. |
int |
getLightColor()
Returns the edited light color. |
float |
getMinimumElevation()
Returns the minimum elevation. |
java.lang.Float |
getObserverCameraElevation()
Returns the edited camera elevation or null if observer height should be preferred. |
int |
getObserverFieldOfViewInDegrees()
Returns the edited observer field of view in degrees. |
float |
getObserverHeight()
Returns the edited observer height. |
int |
getSkyColor()
Returns the edited sky color. |
Home3DAttributesController.EnvironmentPaint |
getSkyPaint()
Returns whether the sky is colored or textured. |
TextureChoiceController |
getSkyTextureController()
Returns the texture controller of the sky. |
DialogView |
getView()
Returns the view associated with this controller. |
float |
getWallsAlpha()
Returns the edited walls transparency alpha. |
void |
modify3DAttributes()
Controls the modification of the 3D attributes of the edited home. |
void |
removePropertyChangeListener(Home3DAttributesController.Property property,
java.beans.PropertyChangeListener listener)
Removes the property change listener in parameter from this controller. |
void |
setGroundColor(int groundColor)
Sets the edited ground color. |
void |
setGroundPaint(Home3DAttributesController.EnvironmentPaint groundPaint)
Sets whether the ground is colored or textured. |
void |
setLightColor(int lightColor)
Sets the edited light color. |
void |
setObserverCameraElevation(java.lang.Float observerCameraElevation)
Sets the edited camera elevation. |
void |
setObserverFieldOfViewInDegrees(int observerFieldOfViewInDegrees)
Sets the edited observer field of view in degrees. |
void |
setObserverHeight(float observerHeight)
Sets the edited observer height. |
void |
setSkyColor(int skyColor)
Sets the edited sky color. |
void |
setSkyPaint(Home3DAttributesController.EnvironmentPaint skyPaint)
Sets whether the sky is colored or textured. |
void |
setWallsAlpha(float wallsAlpha)
Sets the edited walls transparency alpha. |
protected void |
updateProperties()
Updates edited properties from the 3D attributes of the home edited by this controller. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Home3DAttributesController(Home home, UserPreferences preferences, ViewFactory viewFactory, ContentManager contentManager, javax.swing.undo.UndoableEditSupport undoSupport)
Method Detail |
---|
public TextureChoiceController getGroundTextureController()
public TextureChoiceController getSkyTextureController()
public DialogView getView()
getView
in interface Controller
public void displayView(View parentView)
public void addPropertyChangeListener(Home3DAttributesController.Property property, java.beans.PropertyChangeListener listener)
listener
in parameter to this controller.
public void removePropertyChangeListener(Home3DAttributesController.Property property, java.beans.PropertyChangeListener listener)
listener
in parameter from this controller.
protected void updateProperties()
public void setObserverFieldOfViewInDegrees(int observerFieldOfViewInDegrees)
public int getObserverFieldOfViewInDegrees()
public void setObserverHeight(float observerHeight)
public float getObserverHeight()
public void setObserverCameraElevation(java.lang.Float observerCameraElevation)
public java.lang.Float getObserverCameraElevation()
null
if observer height should be preferred.
public float getMinimumElevation()
public void setGroundColor(int groundColor)
public int getGroundColor()
public void setGroundPaint(Home3DAttributesController.EnvironmentPaint groundPaint)
public Home3DAttributesController.EnvironmentPaint getGroundPaint()
public void setSkyColor(int skyColor)
public int getSkyColor()
public void setSkyPaint(Home3DAttributesController.EnvironmentPaint skyPaint)
public Home3DAttributesController.EnvironmentPaint getSkyPaint()
public void setLightColor(int lightColor)
public int getLightColor()
public void setWallsAlpha(float wallsAlpha)
public float getWallsAlpha()
public void modify3DAttributes()
|
Sweet Home 3D 3.4 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
![]() |
? Copyrights 2006-2011 eTeks - All rights reserved
Distributed under GNU General Public License |