Class OGLNurbsPatchSurface
java.lang.Object
org.web3d.vrml.renderer.common.nodes.AbstractNode
org.web3d.vrml.renderer.common.nodes.nurbs.BaseNurbsPatchSurface
org.web3d.vrml.renderer.ogl.nodes.nurbs.OGLNurbsPatchSurface
-
Field Summary
Fields inherited from class org.web3d.vrml.renderer.common.nodes.nurbs.BaseNurbsPatchSurface
FIELD_CONTROL_POINT, FIELD_SOLID, FIELD_TEXCOORD, FIELD_UCLOSED, FIELD_UDIMENSION, FIELD_UKNOT, FIELD_UORDER, FIELD_UTESSELLATION, FIELD_VCLOSED, FIELD_VDIMENSION, FIELD_VKNOT, FIELD_VORDER, FIELD_VTESSELLATION, FIELD_WEIGHT, geometryData, LAST_CURVE_INDEX, NUM_FIELDS, pCoord, pTexCoord, TEXTURE_NODE_MSG, TEXTURE_PROTO_MSG, vfCoord, vfSolid, vfTexCoord, vfUClosed, vfUDimension, vfUKnot, vfUOrder, vfUTessellation, vfVClosed, vfVDimension, vfVKnot, vfVOrder, vfVTessellation, vfWeight
Fields inherited from class org.web3d.vrml.renderer.common.nodes.AbstractNode
errorReporter, FIELD_METADATA, fieldLocalData, hasChanged, inSetup, isDEF, isStatic, LAST_NODE_INDEX, layerIds, nodeName, pMetadata, refCounts, removedLayerIds, stateManager, STATIC_SCENE_GRAPH, vfMetadata, vrmlMajorVersion, vrmlMinorVersion
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.j3d.aviatrix3d.Geometry
Returns a OGL Geometry node that represents this piece of geometry.net.jgeom.nurbs.BasicNurbsSurface
org.j3d.aviatrix3d.SceneGraphObject
Get the OpenGL scene graph object representation of this node.boolean
isSolid()
Get the value of the solid field.void
render()
void
set_renderer
(Object renderer) void
Notification that the construction phase of this node has finished.float[]
uniformKnotVector
(int order, int dimension) Returns a uniform vector of knot values (clamped) for a spline of order (order=polynomial degree + 1; order=4 are cubic splines) and dimension (dimension = number of control points) returns for parameter range 0 to 1 follows definition of uniform knot from "The Nurbs Book" (L.Methods inherited from class org.web3d.vrml.renderer.common.nodes.nurbs.BaseNurbsPatchSurface
addLocalColorsListener, addTexCoordGenModeChanged, getFieldDeclaration, getFieldIndex, getFieldValue, getNodeFieldIndices, getNumFields, getNumSets, getPrimaryType, getTexCoordGenMode, hasLocalColorAlpha, hasLocalColors, isCCW, isLightingEnabled, regenerateSurface, removeLocalColorsListener, removeTexCoordGenModeChanged, sendRoute, setTextureCount, setValue, setValue, setValue, setValue
Methods inherited from class org.web3d.vrml.renderer.common.nodes.AbstractNode
addNodeListener, allEventsComplete, checkNodeType, checkSecondaryType, checkSecondaryType, clearRemovedLayerIds, fireFieldChanged, getLayerIds, getMetadataObject, getRefCount, getRemovedLayerIds, getSecondaryType, getUserData, getVRMLNodeName, hasFieldChanged, isDEF, isSetupFinished, notifyExternProtoLoaded, removeNodeListener, setDEF, setErrorReporter, setFrameStateManager, setMetadataObject, setUserData, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setVersion, throwInitOnlyWriteException, throwInputOnlyWriteException, throwInvalidNodeException, throwInvalidProtoException, throwOutputOnlyWriteException, updateRefCount, updateRefs
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.web3d.vrml.nodes.FrameStateListener
allEventsComplete
Methods inherited from interface org.web3d.vrml.nodes.VRMLGeometryNodeType
addLocalColorsListener, addTexCoordGenModeChanged, getNumSets, getTexCoordGenMode, hasLocalColorAlpha, hasLocalColors, isCCW, isLightingEnabled, removeLocalColorsListener, removeTexCoordGenModeChanged, setTextureCount
Methods inherited from interface org.web3d.vrml.lang.VRMLNode
getFieldDeclaration, getFieldIndex, getNodeFieldIndices, getNumFields, getPrimaryType, getSecondaryType, getUserData, getVRMLNodeName, isDEF, setErrorReporter, setUserData, setVersion
Methods inherited from interface org.web3d.vrml.nodes.VRMLNodeType
addNodeListener, clearRemovedLayerIds, getFieldValue, getLayerIds, getMetadataObject, getRefCount, getRemovedLayerIds, hasFieldChanged, isSetupFinished, notifyExternProtoLoaded, removeNodeListener, sendRoute, setDEF, setFrameStateManager, setMetadataObject, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, updateRefCount
-
Constructor Details
-
OGLNurbsPatchSurface
public OGLNurbsPatchSurface()
-
-
Method Details
-
getGeometry
public org.j3d.aviatrix3d.Geometry getGeometry()Description copied from interface:OGLGeometryNodeType
Returns a OGL Geometry node that represents this piece of geometry. If no geometry is available, then return null.- Specified by:
getGeometry
in interfaceOGLGeometryNodeType
- Returns:
- The geometry needed to represent this object
-
getSceneGraphObject
public org.j3d.aviatrix3d.SceneGraphObject getSceneGraphObject()Description copied from interface:OGLVRMLNode
Get the OpenGL scene graph object representation of this node. This will need to be cast to the appropriate parent type when being used.- Specified by:
getSceneGraphObject
in interfaceOGLVRMLNode
- Returns:
- The OpenGL representation.
-
getNurbsImpl
public net.jgeom.nurbs.BasicNurbsSurface getNurbsImpl()- Specified by:
getNurbsImpl
in interfaceVRMLBREPSurfaceNode
- Overrides:
getNurbsImpl
in classBaseNurbsPatchSurface
- Returns:
-
setupFinished
public void setupFinished()Description copied from class:BaseNurbsPatchSurface
Notification that the construction phase of this node has finished. If the node would like to do any internal processing, such as setting up geometry, then go for it now.- Specified by:
setupFinished
in interfaceVRMLNodeType
- Overrides:
setupFinished
in classBaseNurbsPatchSurface
-
uniformKnotVector
public float[] uniformKnotVector(int order, int dimension) Returns a uniform vector of knot values (clamped) for a spline of order (order=polynomial degree + 1; order=4 are cubic splines) and dimension (dimension = number of control points) returns for parameter range 0 to 1 follows definition of uniform knot from "The Nurbs Book" (L. Piegl & W Tiller, 2nd ed) section 2.4- Parameters:
dimension
-- Returns:
- float[] array of knot values
-
render
public void render()- Specified by:
render
in interfaceVRMLBREPNodeType
-
set_renderer
- Specified by:
set_renderer
in interfaceVRMLBREPNodeType
-
isSolid
public boolean isSolid()Description copied from class:BaseNurbsPatchSurface
Get the value of the solid field.- Specified by:
isSolid
in interfaceVRMLGeometryNodeType
- Overrides:
isSolid
in classBaseNurbsPatchSurface
- Returns:
- true This object is solid (ie single sided)
-