Class Index | File Index

Classes


Class HomeEnvironment


Defined in: SweetHome3D.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
HomeEnvironment(groundColor, groundTexture, skyColor, skyTexture, lightColor, wallsAlpha)
Creates home environment from parameters.
Method Summary
Method Attributes Method Name and Description
 
addPropertyChangeListener(property, listener)
Adds the property change listener in parameter to this environment.
 
Returns a clone of this environment.
 
Returns the color of ceiling lights.
 
Returns the drawing mode of this environment.
 
Returns the ground color of this environment.
 
Returns the ground texture of this environment.
 
Returns the light color of this environment.
 
Returns the preferred photo aspect ratio.
 
Returns the preferred photo height.
 
Returns the preferred photo quality.
 
Returns the preferred photo width.
 
Returns the sky color of this environment.
 
Returns the sky texture of this environment.
 
Returns the size of subparts under home lights in this environment.
 
Returns the preferred video aspect ratio.
 
Returns the preferred video camera path.
 
Returns the preferred video frame rate.
 
Returns the preferred video height.
 
Returns preferred video quality.
 
Returns the preferred video width.
 
Returns the walls transparency alpha factor of this environment.
 
Returns whether all levels should be visible or not.
 
Returns true if the observer elevation should be adjusted according to the elevation of the selected level.
 
removePropertyChangeListener(property, listener)
Removes the property change listener in parameter from this environment.
 
setAllLevelsVisible(allLevelsVisible)
Sets whether all levels should be visible or not and fires a PropertyChangeEvent.
 
setCeillingLightColor(ceilingLightColor)
Sets the color of ceiling lights and fires a PropertyChangeEvent.
 
setDrawingMode(drawingMode)
Sets the drawing mode of this environment and fires a PropertyChangeEvent.
 
setGroundColor(groundColor)
Sets the ground color of this environment and fires a PropertyChangeEvent.
 
setGroundTexture(groundTexture)
Sets the ground texture of this environment and fires a PropertyChangeEvent.
 
setLightColor(lightColor)
Sets the color that lights this environment and fires a PropertyChangeEvent.
 
setObserverCameraElevationAdjusted(observerCameraElevationAdjusted)
Sets whether the observer elevation should be adjusted according to the elevation of the selected level and fires a PropertyChangeEvent.
 
setPhotoAspectRatio(photoAspectRatio)
Sets the preferred photo aspect ratio, and notifies listeners of this change.
 
setPhotoHeight(photoHeight)
Sets the preferred photo height, and notifies listeners of this change.
 
setPhotoQuality(photoQuality)
Sets preferred photo quality, and notifies listeners of this change.
 
setPhotoWidth(photoWidth)
Sets the preferred photo width, and notifies listeners of this change.
 
setSkyColor(skyColor)
Sets the sky color of this environment and fires a PropertyChangeEvent.
 
setSkyTexture(skyTexture)
Sets the sky texture of this environment and fires a PropertyChangeEvent.
 
setSubpartSizeUnderLight(subpartSizeUnderLight)
Sets the size of subparts under home lights of this environment and fires a PropertyChangeEvent.
 
setVideoAspectRatio(videoAspectRatio)
Sets the preferred video aspect ratio, and notifies listeners of this change.
 
setVideoCameraPath(cameraPath)
Sets the preferred video camera path, and notifies listeners of this change.
 
setVideoFrameRate(videoFrameRate)
Sets the preferred video frame rate, and notifies listeners of this change.
 
setVideoQuality(videoQuality)
Sets the preferred video quality, and notifies listeners of this change.
 
setVideoWidth(videoWidth)
Sets the preferred video width, and notifies listeners of this change.
 
setWallsAlpha(wallsAlpha)
Sets the walls transparency alpha of this environment and fires a PropertyChangeEvent.
Class Detail
HomeEnvironment(groundColor, groundTexture, skyColor, skyTexture, lightColor, wallsAlpha)
Creates home environment from parameters.
Author: Emmanuel Puybaret.
Parameters:
{number} groundColor
{HomeTexture} groundTexture
{number} skyColor
{HomeTexture} skyTexture
{number} lightColor
{number} wallsAlpha
Method Detail
addPropertyChangeListener(property, listener)
Adds the property change listener in parameter to this environment.
Parameters:
{string} property
{PropertyChangeListener} listener

{HomeEnvironment} clone()
Returns a clone of this environment.
Returns:
{HomeEnvironment}

{number} getCeillingLightColor()
Returns the color of ceiling lights.
Returns:
{number}

{HomeEnvironment.DrawingMode} getDrawingMode()
Returns the drawing mode of this environment.
Returns:
{HomeEnvironment.DrawingMode}

{number} getGroundColor()
Returns the ground color of this environment.
Returns:
{number}

{HomeTexture} getGroundTexture()
Returns the ground texture of this environment.
Returns:
{HomeTexture}

{number} getLightColor()
Returns the light color of this environment.
Returns:
{number}

{AspectRatio} getPhotoAspectRatio()
Returns the preferred photo aspect ratio.
Returns:
{AspectRatio}

{number} getPhotoHeight()
Returns the preferred photo height.
Returns:
{number}

{number} getPhotoQuality()
Returns the preferred photo quality.
Returns:
{number}

{number} getPhotoWidth()
Returns the preferred photo width.
Returns:
{number}

{number} getSkyColor()
Returns the sky color of this environment.
Returns:
{number}

{HomeTexture} getSkyTexture()
Returns the sky texture of this environment.
Returns:
{HomeTexture}

{number} getSubpartSizeUnderLight()
Returns the size of subparts under home lights in this environment.
Returns:
{number} a size in centimeters or 0 if home lights don't illuminate home.

{AspectRatio} getVideoAspectRatio()
Returns the preferred video aspect ratio.
Returns:
{AspectRatio}

{Camera[]} getVideoCameraPath()
Returns the preferred video camera path.
Returns:
{Camera[]}

{number} getVideoFrameRate()
Returns the preferred video frame rate.
Returns:
{number}

{number} getVideoHeight()
Returns the preferred video height.
Returns:
{number}

{number} getVideoQuality()
Returns preferred video quality.
Returns:
{number}

{number} getVideoWidth()
Returns the preferred video width.
Returns:
{number}

{number} getWallsAlpha()
Returns the walls transparency alpha factor of this environment.
Returns:
{number}

{boolean} isAllLevelsVisible()
Returns whether all levels should be visible or not.
Returns:
{boolean}

{boolean} isObserverCameraElevationAdjusted()
Returns true if the observer elevation should be adjusted according to the elevation of the selected level.
Returns:
{boolean}

removePropertyChangeListener(property, listener)
Removes the property change listener in parameter from this environment.
Parameters:
{string} property
{PropertyChangeListener} listener

setAllLevelsVisible(allLevelsVisible)
Sets whether all levels should be visible or not and fires a PropertyChangeEvent.
Parameters:
{boolean} allLevelsVisible

setCeillingLightColor(ceilingLightColor)
Sets the color of ceiling lights and fires a PropertyChangeEvent.
Parameters:
{number} ceilingLightColor

setDrawingMode(drawingMode)
Sets the drawing mode of this environment and fires a PropertyChangeEvent.
Parameters:
{HomeEnvironment.DrawingMode} drawingMode

setGroundColor(groundColor)
Sets the ground color of this environment and fires a PropertyChangeEvent.
Parameters:
{number} groundColor

setGroundTexture(groundTexture)
Sets the ground texture of this environment and fires a PropertyChangeEvent.
Parameters:
{HomeTexture} groundTexture

setLightColor(lightColor)
Sets the color that lights this environment and fires a PropertyChangeEvent.
Parameters:
{number} lightColor

setObserverCameraElevationAdjusted(observerCameraElevationAdjusted)
Sets whether the observer elevation should be adjusted according to the elevation of the selected level and fires a PropertyChangeEvent.
Parameters:
{boolean} observerCameraElevationAdjusted

setPhotoAspectRatio(photoAspectRatio)
Sets the preferred photo aspect ratio, and notifies listeners of this change.
Parameters:
{AspectRatio} photoAspectRatio

setPhotoHeight(photoHeight)
Sets the preferred photo height, and notifies listeners of this change.
Parameters:
{number} photoHeight

setPhotoQuality(photoQuality)
Sets preferred photo quality, and notifies listeners of this change.
Parameters:
{number} photoQuality

setPhotoWidth(photoWidth)
Sets the preferred photo width, and notifies listeners of this change.
Parameters:
{number} photoWidth

setSkyColor(skyColor)
Sets the sky color of this environment and fires a PropertyChangeEvent.
Parameters:
{number} skyColor

setSkyTexture(skyTexture)
Sets the sky texture of this environment and fires a PropertyChangeEvent.
Parameters:
{HomeTexture} skyTexture

setSubpartSizeUnderLight(subpartSizeUnderLight)
Sets the size of subparts under home lights of this environment and fires a PropertyChangeEvent.
Parameters:
{number} subpartSizeUnderLight

setVideoAspectRatio(videoAspectRatio)
Sets the preferred video aspect ratio, and notifies listeners of this change.
Parameters:
{AspectRatio} videoAspectRatio

setVideoCameraPath(cameraPath)
Sets the preferred video camera path, and notifies listeners of this change.
Parameters:
{Camera[]} cameraPath

setVideoFrameRate(videoFrameRate)
Sets the preferred video frame rate, and notifies listeners of this change.
Parameters:
{number} videoFrameRate

setVideoQuality(videoQuality)
Sets the preferred video quality, and notifies listeners of this change.
Parameters:
{number} videoQuality

setVideoWidth(videoWidth)
Sets the preferred video width, and notifies listeners of this change.
Parameters:
{number} videoWidth

setWallsAlpha(wallsAlpha)
Sets the walls transparency alpha of this environment and fires a PropertyChangeEvent.
Parameters:
{number} wallsAlpha
a value between 0 and 1, 0 meaning opaque and 1 invisible.

© Copyrights 2017 Emmanuel PUYBARET / eTeks
Distributed under GNU General Public License
Documentation generated by JsDoc Toolkit 2.4.0 on Wed Oct 25 2017 16:36:08 GMT+0200 (CEST)