public class Box extends X3DGeometryNode
Java class for an X3D Box.
The following schema fragment specifies the expected content contained within this class.
<complexType>
<complexContent>
<extension base="{}X3DGeometryNode">
<attribute name="size" type="{}SFVec3f" default="2 2 2" />
<attribute name="solid" type="{}SFBool" default="true" />
</extension>
</complexContent>
</complexType>
| Modifier and Type | Field and Description |
|---|---|
protected SFVec3f |
size
The size of the box.
|
protected SFBool |
solid
Determines whether the Box is solid or a wireframe.
|
containerField| Constructor and Description |
|---|
Box()
Creates a new, solid 2x2x2 Box.
|
Box(float xDimension,
float yDimension,
float zDimension)
Creates a new, solid Box with the provided dimensions.
|
Box(float xDimension,
float yDimension,
float zDimension,
boolean solid)
Creates a new Box with the provided dimensions and solidity.
|
Box(SFVec3f size)
Creates a new, solid Box with the provided size.
|
Box(SFVec3f size,
SFBool solid)
Creates a new Box with the provided size and solidity.
|
| Modifier and Type | Method and Description |
|---|---|
SFVec3f |
getSize()
Gets the value of the size property.
|
SFBool |
isSolid()
Gets the value of the solid property.
|
void |
setSize(SFVec3f value)
Sets the value of the size property.
|
void |
setSolid(SFBool value)
Sets the value of the solid property.
|
getContainerField, setContainerFieldgetClazz, getDEF, getIS, getMetadataObject, getUSE, setDEF, setIS, setMetadataObject, setUSEprotected SFVec3f size
protected SFBool solid
public Box()
public Box(float xDimension, float yDimension, float zDimension)
xDimension - the x dimension.yDimension - the y dimension.zDimension - the z dimension.public Box(SFVec3f size)
size - the size of the box.public Box(float xDimension, float yDimension, float zDimension, boolean solid)
xDimension - the x dimension.yDimension - the y dimension.zDimension - the z dimension.solid - determines whether or not the box is solid.public SFVec3f getSize()
SFVec3fpublic void setSize(SFVec3f value)
value - allowed object is SFVec3fpublic SFBool isSolid()
SFBool