Sweet Home 3D 2.5

com.eteks.sweethome3d.model
Interface PieceOfFurniture

All Known Subinterfaces:
DoorOrWindow, Light
All Known Implementing Classes:
CatalogDoorOrWindow, CatalogLight, CatalogPieceOfFurniture, HomeDoorOrWindow, HomeFurnitureGroup, HomeLight, HomePieceOfFurniture

public interface PieceOfFurniture

A piece of furniture.

Author:
Emmanuel Puybaret

Method Summary
 Integer getColor()
          Returns the color of this piece of furniture.
 float getDepth()
          Returns the depth of this piece of furniture.
 String getDescription()
          Returns the description of this piece of furniture.
 float getElevation()
          Returns the elevation of this piece of furniture.
 float getHeight()
          Returns the height of this piece of furniture.
 Content getIcon()
          Returns the icon of this piece of furniture.
 Content getModel()
          Returns the 3D model of this piece of furniture.
 float[][] getModelRotation()
          Returns the rotation 3 by 3 matrix of this piece of furniture that ensures its model is correctly oriented.
 String getName()
          Returns the name of this piece of furniture.
 Content getPlanIcon()
          Returns the icon of this piece of furniture displayed in plan or null.
 BigDecimal getPrice()
          Returns the price of this piece of furniture or null.
 BigDecimal getValueAddedTaxPercentage()
          Returns the Value Added Tax percentage applied to the price of this piece of furniture.
 float getWidth()
          Returns the width of this piece of furniture.
 boolean isBackFaceShown()
          Returns true if the back face of the piece of furniture model should be displayed.
 boolean isDoorOrWindow()
          Returns true if this piece of furniture is a door or a window.
 boolean isMovable()
          Returns true if this piece of furniture is movable.
 boolean isResizable()
          Returns true if this piece is resizable.
 

Method Detail

getName

String getName()
Returns the name of this piece of furniture.


getDescription

String getDescription()
Returns the description of this piece of furniture.


getDepth

float getDepth()
Returns the depth of this piece of furniture.


getHeight

float getHeight()
Returns the height of this piece of furniture.


getWidth

float getWidth()
Returns the width of this piece of furniture.


getElevation

float getElevation()
Returns the elevation of this piece of furniture.


isMovable

boolean isMovable()
Returns true if this piece of furniture is movable.


isDoorOrWindow

boolean isDoorOrWindow()
Returns true if this piece of furniture is a door or a window. As this method existed before DoorOrWindow interface, you shouldn't rely on the value returned by this method to guess if a piece is an instance of DoorOrWindow class.


getIcon

Content getIcon()
Returns the icon of this piece of furniture.


getPlanIcon

Content getPlanIcon()
Returns the icon of this piece of furniture displayed in plan or null.

Since:
2.2

getModel

Content getModel()
Returns the 3D model of this piece of furniture.


getModelRotation

float[][] getModelRotation()
Returns the rotation 3 by 3 matrix of this piece of furniture that ensures its model is correctly oriented.


isBackFaceShown

boolean isBackFaceShown()
Returns true if the back face of the piece of furniture model should be displayed.


getColor

Integer getColor()
Returns the color of this piece of furniture.


isResizable

boolean isResizable()
Returns true if this piece is resizable.


getPrice

BigDecimal getPrice()
Returns the price of this piece of furniture or null.


getValueAddedTaxPercentage

BigDecimal getValueAddedTaxPercentage()
Returns the Value Added Tax percentage applied to the price of this piece of furniture.


Sweet Home 3D 2.5

© Copyrights 2006-2010 eTeks - All rights reserved
Distributed under GNU General Public License