public abstract class X3DShapeNode extends X3DChildNode implements X3DBoundedObject
Java class for X3D ShapeNode complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType name="X3DShapeNode">
<complexContent>
<extension base="{}X3DChildNode">
<group ref="{}ShapeChildContentModel" minOccurs="0"/>
<attribute name="bboxCenter" type="{}SFVec3f" default="0 0 0" />
<attribute name="bboxSize" type="{}BoundingBoxSize" default="-1 -1 -1" />
</extension>
</complexContent>
</complexType>
| Modifier and Type | Field and Description |
|---|---|
protected X3DAppearanceNode |
appearance
The appearance of the X3DShapeNode.
|
protected SFVec3f |
bboxCenter
Specifies the bounding box center of the X3DShapeNode.
|
protected BoundingBoxSize |
bboxSize
Specifies the bounding box size of the X3DShapeNode.
|
protected X3DGeometryNode |
geometry
The geometry contained in the X3DShapeNode.
|
containerField| Constructor and Description |
|---|
X3DShapeNode()
Creates an empty X3DShapeNode.
|
X3DShapeNode(X3DGeometryNode geometry,
X3DAppearanceNode appearance)
Creates an X3DShapeNode with the provided geometry and appearance.
|
| Modifier and Type | Method and Description |
|---|---|
X3DAppearanceNode |
getAppearance()
Gets the value of the appearance property.
|
SFVec3f |
getBboxCenter()
Gets the value of the bboxCenter property.
|
BoundingBoxSize |
getBboxSize()
Gets the value of the bboxSize property.
|
X3DGeometryNode |
getGeometry()
Gets the value of the geometry property.
|
void |
setAppearance(X3DAppearanceNode value)
Sets the value of the appearance property.
|
void |
setBboxCenter(SFVec3f value)
Sets the value of the bboxCenter property.
|
void |
setBboxSize(BoundingBoxSize value)
Sets the value of the bboxSize property.
|
void |
setGeometry(X3DGeometryNode geometry)
Sets the value of the geometry property.
|
getContainerField, setContainerFieldgetClazz, getDEF, getIS, getMetadataObject, getUSE, setDEF, setIS, setMetadataObject, setUSEprotected X3DGeometryNode geometry
protected X3DAppearanceNode appearance
protected SFVec3f bboxCenter
protected BoundingBoxSize bboxSize
public X3DShapeNode()
public X3DShapeNode(X3DGeometryNode geometry, X3DAppearanceNode appearance)
geometry - the geometry.appearance - the appearance.public X3DGeometryNode getGeometry()
X3DGeometryNodepublic void setGeometry(X3DGeometryNode geometry)
geometry - public X3DAppearanceNode getAppearance()
X3DAppearanceNodepublic void setAppearance(X3DAppearanceNode value)
value - allowed object is X3DAppearanceNodepublic SFVec3f getBboxCenter()
getBboxCenter in interface X3DBoundedObjectSFVec3fpublic void setBboxCenter(SFVec3f value)
setBboxCenter in interface X3DBoundedObjectvalue - allowed object is SFVec3fpublic BoundingBoxSize getBboxSize()
getBboxSize in interface X3DBoundedObjectBoundingBoxSizepublic void setBboxSize(BoundingBoxSize value)
setBboxSize in interface X3DBoundedObjectvalue - allowed object is BoundingBoxSize