public class Sphere extends X3DGeometryNode
Java class for an X3D Sphere.
The following schema fragment specifies the expected content contained within this class.
<complexType>
<complexContent>
<extension base="{}X3DGeometryNode">
<attribute name="radius" default="1">
<simpleType>
<restriction base="{}SFFloat">
<minExclusive value="0"/>
</restriction>
</simpleType>
</attribute>
<attribute name="solid" type="{}SFBool" default="true" />
</extension>
</complexContent>
</complexType>
| Modifier and Type | Field and Description |
|---|---|
protected SFFloat |
radius
The radius of the Sphere.
|
protected SFBool |
solid
Determines whether the Sphere is solid or a wireframe.
|
containerField| Constructor and Description |
|---|
Sphere()
Creates a new, solid Sphere with radius=1.
|
Sphere(float radius)
Creates a new, solid Sphere with the provided radius.
|
Sphere(float radius,
boolean solid)
Creates a new Sphere with the provided radius and solidity.
|
Sphere(SFFloat radius)
Creates a new, solid Sphere with the provided radius.
|
Sphere(SFFloat radius,
SFBool solid)
Creates a new Sphere with the provided radius and solidity.
|
| Modifier and Type | Method and Description |
|---|---|
SFFloat |
getRadius()
Gets the value of the radius property.
|
SFBool |
isSolid()
Gets the value of the solid property.
|
void |
setRadius(float value)
Sets the value of the radius property.
|
void |
setRadius(SFFloat value)
Sets the value of the radius property.
|
void |
setSolid(SFBool value)
Sets the value of the solid property.
|
getContainerField, setContainerFieldgetClazz, getDEF, getIS, getMetadataObject, getUSE, setDEF, setIS, setMetadataObject, setUSEprotected SFFloat radius
protected SFBool solid
public Sphere()
public Sphere(float radius)
radius - the radius.public Sphere(SFFloat radius)
radius - the radius.public Sphere(float radius,
boolean solid)
radius - the radius.solid - determines whether or not the Sphere is solid.public SFFloat getRadius()
SFFloatpublic void setRadius(SFFloat value)
value - allowed object is SFFloatpublic void setRadius(float value)
value - allowed object is Floatpublic SFBool isSolid()
SFBool