shout3d.core
Class NurbsSurface

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

public class NurbsSurface
extends IndexedFaceSet
implements FieldObserver

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


Field Summary
 FloatArrayField controlPoint
           
 BooleanField doTextureCoords
           
 IntField uDimension
           
 FloatArrayField uKnot
           
 IntField uOrder
           
 IntField uTesselation
           
 IntField vDimension
           
 FloatArrayField vKnot
           
 IntField vOrder
           
 IntField vTesselation
           
 FloatArrayField weight
           
 
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
NurbsSurface()
          Constructs a default NurbsSurface
 
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

uDimension

public final IntField uDimension

vDimension

public final IntField vDimension

uKnot

public final FloatArrayField uKnot

vKnot

public final FloatArrayField vKnot

uOrder

public final IntField uOrder

vOrder

public final IntField vOrder

controlPoint

public final FloatArrayField controlPoint

weight

public final FloatArrayField weight

uTesselation

public final IntField uTesselation

vTesselation

public final IntField vTesselation

doTextureCoords

public final BooleanField doTextureCoords
Constructor Detail

NurbsSurface

public NurbsSurface()
Constructs a default NurbsSurface
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