|
Sweet Home 3D 4.1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.eteks.sweethome3d.viewcontroller.ObserverCameraController
public class ObserverCameraController
A MVC controller for observer camera attributes view.
Nested Class Summary | |
---|---|
static class |
ObserverCameraController.Property
The properties that may be edited by the view associated to this controller. |
Constructor Summary | |
---|---|
ObserverCameraController(Home home,
UserPreferences preferences,
ViewFactory viewFactory)
Creates the controller of 3D view with undo support. |
Method Summary | |
---|---|
void |
addPropertyChangeListener(ObserverCameraController.Property property,
PropertyChangeListener listener)
Adds the property change listener in parameter to this controller. |
void |
displayView(View parentView)
Displays the view controlled by this controller. |
float |
getElevation()
Returns the edited camera elevation. |
int |
getFieldOfViewInDegrees()
Returns the edited observer field of view in degrees. |
float |
getMinimumElevation()
Returns the minimum elevation. |
int |
getPitchInDegrees()
Returns the edited pitch in degrees. |
DialogView |
getView()
Returns the view associated with this controller. |
float |
getX()
Returns the edited abscissa. |
float |
getY()
Returns the edited ordinate. |
int |
getYawInDegrees()
Returns the edited yaw in degrees. |
boolean |
isElevationAdjusted()
Returns true if the observer elevation should be adjusted according
to the elevation of the selected level. |
boolean |
isObserverCameraElevationAdjustedEditable()
Returns true if the adjustment of the observer camera according to the current level is modifiable. |
void |
modifyObserverCamera()
Controls the modification of the observer camera of the edited home. |
void |
removePropertyChangeListener(ObserverCameraController.Property property,
PropertyChangeListener listener)
Removes the property change listener in parameter from this controller. |
void |
setElevation(float elevation)
Sets the edited camera elevation. |
void |
setElevationAdjusted(boolean observerCameraElevationAdjusted)
Sets whether the observer elevation should be adjusted according to the elevation of the selected level. |
void |
setFieldOfViewInDegrees(int observerFieldOfViewInDegrees)
Sets the edited observer field of view in degrees. |
void |
setPitchInDegrees(int pitchInDegrees)
Sets the edited pitch in degrees. |
void |
setX(float x)
Sets the edited abscissa. |
void |
setY(float y)
Sets the edited ordinate. |
void |
setYawInDegrees(int yawInDegrees)
Sets the edited yaw in degrees. |
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 ObserverCameraController(Home home, UserPreferences preferences, ViewFactory viewFactory)
Method Detail |
---|
public DialogView getView()
getView
in interface Controller
public void displayView(View parentView)
public void addPropertyChangeListener(ObserverCameraController.Property property, PropertyChangeListener listener)
listener
in parameter to this controller.
public void removePropertyChangeListener(ObserverCameraController.Property property, PropertyChangeListener listener)
listener
in parameter from this controller.
protected void updateProperties()
public void setX(float x)
public float getX()
public void setY(float y)
public float getY()
public void setElevation(float elevation)
public float getElevation()
public float getMinimumElevation()
public boolean isElevationAdjusted()
true
if the observer elevation should be adjusted according
to the elevation of the selected level.
public void setElevationAdjusted(boolean observerCameraElevationAdjusted)
public boolean isObserverCameraElevationAdjustedEditable()
true
if the adjustment of the observer camera according to the current level is modifiable.
public void setYawInDegrees(int yawInDegrees)
public int getYawInDegrees()
public void setPitchInDegrees(int pitchInDegrees)
public int getPitchInDegrees()
public void setFieldOfViewInDegrees(int observerFieldOfViewInDegrees)
public int getFieldOfViewInDegrees()
public void modifyObserverCamera()
|
Sweet Home 3D 4.1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
![]() |
© Copyrights 2006-2013 eTeks - All rights reserved
Distributed under GNU General Public License |