shout3d.core
Class Extrusion

java.lang.Object
  |
  +--shout3d.core.Node
        |
        +--shout3d.core.Geometry
              |
              +--shout3d.core.Mesh
                    |
                    +--shout3d.core.S3DMesh
                          |
                          +--shout3d.core.IndexedFaceSet
                                |
                                +--shout3d.core.Extrusion

public class Extrusion
extends IndexedFaceSet
implements FieldObserver

Extrusion. Subclass of IndexedFaceSet Adds fields that define an Extrusion When any of these changes, retesselates the geometry and sets the base class IndexedFaceSet fields (coordinates, coordIndex, texCoord, texCoordIndex) accordingly


Field Summary
 BooleanField beginCap
           
 FloatArrayField crossSection
           
 float[] defaultCrossSection
           
 float[] defaultOrientation
           
 float[] defaultScale
           
 float[] defaultSpine
           
 BooleanField doTextureCoords
           
 BooleanField endCap
           
 FloatArrayField orientation
           
 FloatArrayField scale
           
 FloatArrayField spine
           
 
Fields inherited from class shout3d.core.IndexedFaceSet
creaseAngle, solid, texCoord, texCoordIndex
 
Fields inherited from class shout3d.core.S3DMesh
ccw, color, colorIndex, colorPerVertex, coord, coordIndex
 
Constructor Summary
Extrusion()
          Constructs a default Extrusion
 
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
 

Field Detail

defaultCrossSection

public final float[] defaultCrossSection

defaultOrientation

public final float[] defaultOrientation

defaultScale

public final float[] defaultScale

defaultSpine

public final float[] defaultSpine

beginCap

public final BooleanField beginCap

crossSection

public final FloatArrayField crossSection

endCap

public final BooleanField endCap

orientation

public final FloatArrayField orientation

scale

public final FloatArrayField scale

spine

public final FloatArrayField spine

doTextureCoords

public final BooleanField doTextureCoords
Constructor Detail

Extrusion

public Extrusion()
Constructs a default Extrusion
Method Detail

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