public class Cylinder extends X3DGeometryNode
Java class for an X3D Cylinder.
The following schema fragment specifies the expected content contained within this class.
<complexType> <complexContent> <extension base="{}X3DGeometryNode"> <attribute name="bottomVisible" type="{}SFBool" default="true" /> <attribute name="height" default="2"> <simpleType> <restriction base="{}SFFloat"> <minExclusive value="0"/> </restriction> </simpleType> </attribute> <attribute name="radius" default="1"> <simpleType> <restriction base="{}SFFloat"> <minExclusive value="0"/> </restriction> </simpleType> </attribute> <attribute name="sideVisible" type="{}SFBool" default="true" /> <attribute name="topVisible" type="{}SFBool" default="true" /> <attribute name="solid" type="{}SFBool" default="true" /> </extension> </complexContent> </complexType>
Modifier and Type | Field and Description |
---|---|
protected SFBool |
bottomVisible
Determines whether the bottom of the Cylinder is visible.
|
protected SFFloat |
height
The height of the Cylinder.
|
protected SFFloat |
radius
The radius of the Cylinder.
|
protected SFBool |
sideVisible
Determines whether the side of the Cylinder is visible.
|
protected SFBool |
solid
Determines whether the Cylinder is solid or a wireframe.
|
protected SFBool |
topVisible
Determines whether the top of the Cylinder is visible.
|
containerField
Constructor and Description |
---|
Cylinder()
Creates a new Cylinder with radius=1, height=2 that is solid with all
sides visible.
|
Cylinder(float radius,
float height)
Creates a new Cylinder with the provided radius and height that is solid
with all sides visible.
|
Cylinder(float radius,
float height,
boolean solid)
Creates a new Cylinder with the provided radius and height that is solid
with all sides visible.
|
Cylinder(float radius,
float height,
boolean solid,
boolean bottomVisible,
boolean sideVisible,
boolean topVisible)
Creates a new Cylinder with the provided radius and height that is solid
with all sides visible.
|
Cylinder(SFFloat radius,
SFFloat height)
Creates a new Cylinder with the provided radius and height that is solid
with all sides visible.
|
Cylinder(SFFloat radius,
SFFloat height,
SFBool solid)
Creates a new Cylinder with the provided radius and height that is solid
with all sides visible.
|
Cylinder(SFFloat radius,
SFFloat height,
SFBool solid,
SFBool bottomVisible,
SFBool sideVisible,
SFBool topVisible)
Creates a new Cylinder with the provided radius and height that is solid
with all sides visible.
|
Modifier and Type | Method and Description |
---|---|
SFFloat |
getHeight()
Gets the value of the height property.
|
SFFloat |
getRadius()
Gets the value of the radius property.
|
SFBool |
isBottomVisible()
Gets the value of the bottomVisible property.
|
SFBool |
isSideVisible()
Gets the value of the sideVisible property.
|
SFBool |
isSolid()
Gets the value of the solid property.
|
SFBool |
isTopVisible()
Gets the value of the topVisible property.
|
void |
setBottomVisible(SFBool value)
Sets the value of the bottomVisible property.
|
void |
setHeight(float value)
Sets the value of the height property.
|
void |
setHeight(SFFloat value)
Sets the value of the height property.
|
void |
setRadius(float value)
Sets the value of the radius property.
|
void |
setRadius(SFFloat value)
Sets the value of the radius property.
|
void |
setSideVisible(boolean value)
Sets the value of the sideVisible property.
|
void |
setSideVisible(SFBool value)
Sets the value of the sideVisible property.
|
void |
setSolid(boolean value)
Sets the value of the solid property.
|
void |
setSolid(SFBool value)
Sets the value of the solid property.
|
void |
setTopVisible(boolean value)
Sets the value of the topVisible property.
|
void |
setTopVisible(SFBool value)
Sets the value of the topVisible property.
|
getContainerField, setContainerField
getClazz, getDEF, getIS, getMetadataObject, getUSE, setDEF, setIS, setMetadataObject, setUSE
protected SFBool bottomVisible
protected SFFloat height
protected SFFloat radius
protected SFBool sideVisible
protected SFBool topVisible
protected SFBool solid
public Cylinder()
public Cylinder(float radius, float height)
radius
- the radius of the cylinder.height
- the height of the cylinder.public Cylinder(SFFloat radius, SFFloat height)
radius
- the radius of the cylinder.height
- the height of the cylinder.public Cylinder(float radius, float height, boolean solid)
radius
- the radius of the cylinder.height
- the height of the cylinder.solid
- determines whether or not the cylinder is solid.public Cylinder(SFFloat radius, SFFloat height, SFBool solid)
radius
- the radius of the cylinder.height
- the height of the cylinder.solid
- determines whether or not the cylinder is solid.public Cylinder(float radius, float height, boolean solid, boolean bottomVisible, boolean sideVisible, boolean topVisible)
radius
- the radius of the cylinder.height
- the height of the cylinder.solid
- determines whether or not the cylinder is solid.bottomVisible
- determines whether or not the bottom of the cylinder is
visible.sideVisible
- determines whether or not the side of the cylinder is visible.topVisible
- determines whether or not the top of the cylinder is visible.public Cylinder(SFFloat radius, SFFloat height, SFBool solid, SFBool bottomVisible, SFBool sideVisible, SFBool topVisible)
radius
- the radius of the cylinder.height
- the height of the cylinder.solid
- determines whether or not the cylinder is solid.bottomVisible
- determines whether or not the bottom of the cylinder is
visible.sideVisible
- determines whether or not the side of the cylinder is visible.topVisible
- determines whether or not the top of the cylinder is visible.public SFBool isBottomVisible()
SFBool
public void setBottomVisible(SFBool value)
value
- allowed object is SFBool
public SFFloat getHeight()
SFFloat
public void setHeight(SFFloat value)
value
- allowed object is SFFloat
public void setHeight(float value)
value
- allowed object is SFFloat
public SFFloat getRadius()
SFFloat
public void setRadius(SFFloat value)
value
- allowed object is SFFloat
public void setRadius(float value)
value
- allowed object is SFFloat
public SFBool isSideVisible()
SFBool
public void setSideVisible(SFBool value)
value
- allowed object is SFBool
public void setSideVisible(boolean value)
value
- allowed object is SFBool
public SFBool isTopVisible()
SFBool
public void setTopVisible(SFBool value)
value
- allowed object is SFBool
public void setTopVisible(boolean value)
value
- allowed object is SFBool
public SFBool isSolid()
SFBool
public void setSolid(SFBool value)
value
- allowed object is SFBool
public void setSolid(boolean value)
value
- allowed object is SFBool