public interface PieceOfFurniture
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
DEFAULT_CUT_OUT_SHAPE
The default cut out shape that covers a 1 unit wide square.
|
static int |
HIDE_EDGE_COLOR_MATERIAL
The flag used to specify that the shapes of a 3D model which uses a material prefixed by "edge_color" should be hidden.
|
static float[][] |
IDENTITY_ROTATION
Identity model rotation matrix.
|
static int |
SHOW_BACK_FACE
The flag used to specify that the back faces of a 3D model should be shown.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Integer |
getColor()
Returns the color of this piece of furniture.
|
Content |
getContentProperty(java.lang.String name)
Returns the value of an additional content
name associated to this piece. |
java.lang.String |
getCreator()
Returns the creator of this piece or
null . |
java.lang.String |
getCurrency()
Returns the price currency, noted with ISO 4217 code, or
null
if it has no price or default currency should be used. |
float |
getDepth()
Returns the depth of this piece of furniture.
|
java.lang.String |
getDescription()
Returns the description of this piece of furniture.
|
float |
getDropOnTopElevation()
Returns the elevation at which should be placed an object dropped on this piece.
|
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.
|
java.lang.String |
getInformation()
Returns the additional information associated to this piece, or
null . |
java.lang.String |
getLicense()
Returns the license of this piece of furniture.
|
Content |
getModel()
Returns the 3D model of this piece of furniture.
|
int |
getModelFlags()
Returns flags that should apply on the 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.
|
java.lang.Long |
getModelSize()
Returns the size of the 3D model of this piece of furniture or
null if not known. |
java.lang.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 . |
java.math.BigDecimal |
getPrice()
Returns the price of this piece of furniture or
null . |
java.lang.String |
getProperty(java.lang.String name)
Returns the value of an additional property
name of this piece. |
java.util.Collection<java.lang.String> |
getPropertyNames()
Returns the names of the additional properties of this piece.
|
java.lang.String |
getStaircaseCutOutShape()
Returns the shape used to cut out upper levels when they intersect with the piece
like a staircase.
|
java.math.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 |
isContentProperty(java.lang.String name)
Returns
true if the type of given additional property is a content. |
boolean |
isDeformable()
Returns
true if this piece is deformable. |
boolean |
isDoorOrWindow()
Returns
true if this piece of furniture is a door or a window. |
boolean |
isHorizontallyRotatable()
Returns
false if this piece should not rotate around an horizontal axis. |
boolean |
isMovable()
Returns
true if this piece of furniture is movable. |
boolean |
isResizable()
Returns
true if this piece is resizable. |
boolean |
isTexturable()
Returns
false if this piece should always keep the same color or texture. |
boolean |
isWidthDepthDeformable()
Returns
true if the width and depth of this piece may
be changed independently from each other. |
static final java.lang.String DEFAULT_CUT_OUT_SHAPE
static final float[][] IDENTITY_ROTATION
static final int SHOW_BACK_FACE
static final int HIDE_EDGE_COLOR_MATERIAL
java.lang.String getName()
java.lang.String getDescription()
java.lang.String getInformation()
null
.java.lang.String getLicense()
float getDepth()
float getHeight()
float getWidth()
float getElevation()
float getDropOnTopElevation()
boolean isMovable()
true
if this piece of furniture is movable.boolean isDoorOrWindow()
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.Content getIcon()
Content getPlanIcon()
null
.Content getModel()
int getModelFlags()
java.lang.Long getModelSize()
null
if not known.float[][] getModelRotation()
java.lang.String getStaircaseCutOutShape()
java.lang.String getCreator()
null
.boolean isBackFaceShown()
true
if the back face of the piece of furniture
model should be displayed.java.lang.Integer getColor()
boolean isResizable()
true
if this piece is resizable.boolean isDeformable()
true
if this piece is deformable. The width, depth and height
of a deformable piece may change independently from each other.boolean isWidthDepthDeformable()
true
if the width and depth of this piece may
be changed independently from each other.boolean isTexturable()
false
if this piece should always keep the same color or texture.boolean isHorizontallyRotatable()
false
if this piece should not rotate around an horizontal axis.java.math.BigDecimal getPrice()
null
.java.math.BigDecimal getValueAddedTaxPercentage()
java.lang.String getCurrency()
null
if it has no price or default currency should be used.java.lang.String getProperty(java.lang.String name)
name
of this piece.null
if it doesn't exist or if it's not a string.java.util.Collection<java.lang.String> getPropertyNames()
Content getContentProperty(java.lang.String name)
name
associated to this piece.null
if it doesn't exist or if it's not a content.boolean isContentProperty(java.lang.String name)
true
if the type of given additional property is a content.
© Copyright 2024 Space Mushrooms
Distributed under GNU General Public License