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