public class CatalogShelfUnit extends CatalogPieceOfFurniture implements ShelfUnit
DEFAULT_CUT_OUT_SHAPE, HIDE_EDGE_COLOR_MATERIAL, IDENTITY_ROTATION, SHOW_BACK_FACE
Constructor and Description |
---|
CatalogShelfUnit(java.lang.String id,
java.lang.String name,
java.lang.String description,
java.lang.String information,
java.lang.String license,
java.lang.String[] tags,
java.lang.Long creationDate,
java.lang.Float grade,
Content icon,
Content planIcon,
Content model,
float width,
float depth,
float height,
float elevation,
float dropOnTopElevation,
float[] shelfElevations,
BoxBounds[] shelfBoxes,
boolean movable,
java.lang.String staircaseCutOutShape,
float[][] modelRotation,
int modelFlags,
java.lang.Long modelSize,
java.lang.String creator,
boolean resizable,
boolean deformable,
boolean texturable,
boolean horizontallyRotatable,
java.math.BigDecimal price,
java.math.BigDecimal valueAddedTaxPercentage,
java.lang.String currency,
java.util.Map<java.lang.String,java.lang.String> properties,
java.util.Map<java.lang.String,Content> contents)
Creates an unmodifiable catalog shelf unit of the default catalog.
|
Modifier and Type | Method and Description |
---|---|
BoxBounds[] |
getShelfBoxes()
Returns the coordinates of the shelf box(es) in which other objects can be placed in this shelf unit.
|
float[] |
getShelfElevations()
Returns the elevation(s) at which other objects can be placed on this shelf unit.
|
clone, compareTo, equals, getCategory, getColor, getContentProperty, getCreationDate, getCreator, getCurrency, getDepth, getDescription, getDropOnTopElevation, getElevation, getFilterCriteria, getGrade, getHeight, getIcon, getIconPitch, getIconScale, getIconYaw, getId, getInformation, getLicense, getModel, getModelFlags, getModelRotation, getModelSize, getName, getPlanIcon, getPrice, getProperty, getPropertyNames, getStaircaseCutOutShape, getTags, getValueAddedTaxPercentage, getWidth, hashCode, isBackFaceShown, isContentProperty, isDeformable, isDoorOrWindow, isHorizontallyRotatable, isModifiable, isMovable, isProportional, isResizable, isTexturable, isWidthDepthDeformable, matchesFilter
finalize, getClass, notify, notifyAll, toString, wait, wait, wait
getColor, getContentProperty, getCreator, getCurrency, getDepth, getDescription, getDropOnTopElevation, getElevation, getHeight, getIcon, getInformation, getLicense, getModel, getModelFlags, getModelRotation, getModelSize, getName, getPlanIcon, getPrice, getProperty, getPropertyNames, getStaircaseCutOutShape, getValueAddedTaxPercentage, getWidth, isBackFaceShown, isContentProperty, isDeformable, isDoorOrWindow, isHorizontallyRotatable, isMovable, isResizable, isTexturable, isWidthDepthDeformable
public CatalogShelfUnit(java.lang.String id, java.lang.String name, java.lang.String description, java.lang.String information, java.lang.String license, java.lang.String[] tags, java.lang.Long creationDate, java.lang.Float grade, Content icon, Content planIcon, Content model, float width, float depth, float height, float elevation, float dropOnTopElevation, float[] shelfElevations, BoxBounds[] shelfBoxes, boolean movable, java.lang.String staircaseCutOutShape, float[][] modelRotation, int modelFlags, java.lang.Long modelSize, java.lang.String creator, boolean resizable, boolean deformable, boolean texturable, boolean horizontallyRotatable, java.math.BigDecimal price, java.math.BigDecimal valueAddedTaxPercentage, java.lang.String currency, java.util.Map<java.lang.String,java.lang.String> properties, java.util.Map<java.lang.String,Content> contents)
id
- the id of the shelf unit or null
name
- the name of the shelf unitdescription
- the description of the shelf unitinformation
- additional information associated to the shelf unitlicense
- license of the shelf unittags
- tags associated to the shelf unitcreationDate
- creation date of the shelf unit in milliseconds since the epochgrade
- grade of the piece of furniture or null
icon
- content of the icon of the shelf unitplanIcon
- content of the icon of the shelf unit displayed in planmodel
- content of the 3D model of the shelf unitwidth
- the width in centimeters of the shelf unitdepth
- the depth in centimeters of the shelf unitheight
- the height in centimeters of the shelf unitelevation
- the elevation in centimeters of the shelf unitdropOnTopElevation
- a percentage of the height at which should be placed
an object dropped on the shelf unitshelfElevations
- shelf elevation(s) at which other objects can be placed on the shelf unitshelfBoxes
- coordinates of the shelf box(es) in which other objects can be placed in the shelf unitmovable
- if true
, the shelf unit is movablestaircaseCutOutShape
- the shape used to cut out upper levels when they intersect
with the piece like a staircasemodelRotation
- the rotation 3 by 3 matrix applied to the piece modelmodelFlags
- flags which should be applied to piece modelmodelSize
- size of the 3D model of the shelf unitcreator
- the creator of the modelresizable
- if true
, the size of the shelf unit may be editeddeformable
- if true
, the width, depth and height of the shelf unit may
change independently from each othertexturable
- if false
this piece should always keep the same color or texturehorizontallyRotatable
- if false
this piece
should not rotate around an horizontal axisprice
- the price of the shelf unit or null
valueAddedTaxPercentage
- the Value Added Tax percentage applied to the
price of the shelf unit or null
currency
- the price currency, noted with ISO 4217 code, or null
properties
- additional properties associating a key to a value or null
contents
- additional contents associating a key to a value or null
public float[] getShelfElevations()
getShelfElevations
in interface ShelfUnit
public BoxBounds[] getShelfBoxes()
getShelfBoxes
in interface ShelfUnit
© Copyright 2024 Space Mushrooms
Distributed under GNU General Public License