shout3d.core
Class Cone
java.lang.Object
|
+--shout3d.core.Node
|
+--shout3d.core.Geometry
|
+--shout3d.core.Mesh
|
+--shout3d.core.S3DMesh
|
+--shout3d.core.IndexedFaceSet
|
+--shout3d.core.Cone
- public class Cone
- extends IndexedFaceSet
- implements FieldObserver
Cone.
Subclass of IndexedFaceSet
Adds 5 fields -- bottomRadius, height, side, and bottom.
-- bottomRadius sets the radius of the circle forming the base of the cone.
-- height sets the distance from the center of the base to the apex.
-- side is a boolean -- if TRUE (default) then the sides are displayed, else they are not.
-- bottom is a boolean -- if TRUE (default) then the bottom circle is displayed, else it is not.
-- numSides is an int -- the number of panels around the sides of the cone.
When any of these changes, the Cone recalculates the
vertices of its geometry.
Constructor Summary |
Cone()
Constructs a default Cone |
Method Summary |
void |
onFieldChange(Field theField,
java.lang.Object userData)
Subclasses must call this from within their own onFieldChange() method. |
Methods inherited from class shout3d.core.Node |
cleanUp,
getDEFName,
getField,
getFieldByIndex,
getFieldName,
getNumFields,
getTypeName,
getViewer,
isOfType,
setDEFName,
setViewer |
Methods inherited from class java.lang.Object |
equals,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
bottomRadius
public final FloatField bottomRadius
height
public final FloatField height
numSides
public final IntField numSides
side
public final BooleanField side
bottom
public final BooleanField bottom
Cone
public Cone()
- Constructs a default Cone
onFieldChange
public void onFieldChange(Field theField,
java.lang.Object userData)
- Subclasses must call this from within their own onFieldChange() method.
- Specified by:
- onFieldChange in interface FieldObserver
- Overrides:
- onFieldChange in class IndexedFaceSet