Class Index | File Index

Classes


Class HomeLight


Extends HomePieceOfFurniture.

Defined in: SweetHome3D.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
HomeLight(light)
Creates a home light from an existing one.
Method Summary
Method Attributes Method Name and Description
 
Adds the property change listener in parameter to this piece.
 
Returns a clone of this light.
 
Returns the sources managed by this light.
 
Returns the power of this light.
 
Removes the property change listener in parameter from this piece.
 
setPower(power)
Sets the power of this light.
Methods borrowed from class HomePieceOfFurniture:
getAngle, getCatalogId, getColor, getCreator, getCurrency, getDepth, getDepthInPlan, getDescription, getDropOnTopElevation, getElevation, getGroundElevation, getHeight, getHeightInPlan, getIcon, getInformation, getLevel, getModel, getModelMaterials, getModelRotation, getModelSize, getName, getNameAngle, getNameStyle, getNameXOffset, getNameYOffset, getPitch, getPlanIcon, getPrice, getPriceValueAddedTaxIncluded, getRoll, getShininess, getStaircaseCutOutShape, getTexture, getValueAddedTax, getValueAddedTaxPercentage, getWidth, getWidthInPlan, getX, getY, intersectsRectangle, isAtLevel, isBackFaceShown, isBottomLeftPointAt, isBottomRightPointAt, isDeformable, isDoorOrWindow, isHorizontallyRotatable, isHorizontallyRotated, isModelCenteredAtOrigin, isModelMirrored, isMovable, isNameCenterPointAt, isNameVisible, isParallelToWall, isPointAt, isResizable, isTexturable, isTopLeftPointAt, isTopRightPointAt, isVisible, isWidthDepthDeformable, move, scale, setAngle, setColor, setDepth, setDepthInPlan, setDescription, setElevation, setHeight, setHeightInPlan, setLevel, setModelCenteredAtOrigin, setModelMaterials, setModelMirrored, setModelSize, setMovable, setName, setNameAngle, setNameStyle, setNameVisible, setNameXOffset, setNameYOffset, setPitch, setPrice, setRoll, setShininess, setTexture, setVisible, setWidth, setWidthInPlan, setX, setY
Methods borrowed from class HomeObject:
getProperty, getPropertyNames, setProperty
Class Detail
HomeLight(light)
Creates a home light from an existing one.
Author: Emmanuel Puybaret.
Parameters:
{Object} light
the light from which data are copied
Method Detail
addPropertyChangeListener(listener)
Adds the property change listener in parameter to this piece.
Parameters:
{PropertyChangeListener} listener

{HomeLight} clone()
Returns a clone of this light.
Returns:
{HomeLight}

{Array} getLightSources()
Returns the sources managed by this light. Each light source point is a percentage of the width, the depth and the height of this light. with the abscissa origin at the left side of the piece, the ordinate origin at the front side of the piece and the elevation origin at the bottom side of the piece.
Returns:
{Array} a copy of light sources array.

{number} getPower()
Returns the power of this light.
Returns:
{number}

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

setPower(power)
Sets the power of this light. Once this light is updated, listeners added to this piece will receive a change notification.
Parameters:
{number} power

© 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:09 GMT+0200 (CEST)