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, vfWeightFields 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.GeometryReturns a OGL Geometry node that represents this piece of geometry.net.jgeom.nurbs.BasicNurbsSurfaceorg.j3d.aviatrix3d.SceneGraphObjectGet the OpenGL scene graph object representation of this node.booleanisSolid()Get the value of the solid field.voidrender()voidset_renderer(Object renderer) voidNotification 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, setValueMethods 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, updateRefsMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.web3d.vrml.nodes.FrameStateListener
allEventsCompleteMethods inherited from interface org.web3d.vrml.nodes.VRMLGeometryNodeType
addLocalColorsListener, addTexCoordGenModeChanged, getNumSets, getTexCoordGenMode, hasLocalColorAlpha, hasLocalColors, isCCW, isLightingEnabled, removeLocalColorsListener, removeTexCoordGenModeChanged, setTextureCountMethods inherited from interface org.web3d.vrml.lang.VRMLNode
getFieldDeclaration, getFieldIndex, getNodeFieldIndices, getNumFields, getPrimaryType, getSecondaryType, getUserData, getVRMLNodeName, isDEF, setErrorReporter, setUserData, setVersionMethods 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:OGLGeometryNodeTypeReturns a OGL Geometry node that represents this piece of geometry. If no geometry is available, then return null.- Specified by:
getGeometryin interfaceOGLGeometryNodeType- Returns:
- The geometry needed to represent this object
-
getSceneGraphObject
public org.j3d.aviatrix3d.SceneGraphObject getSceneGraphObject()Description copied from interface:OGLVRMLNodeGet 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:
getSceneGraphObjectin interfaceOGLVRMLNode- Returns:
- The OpenGL representation.
-
getNurbsImpl
public net.jgeom.nurbs.BasicNurbsSurface getNurbsImpl()- Specified by:
getNurbsImplin interfaceVRMLBREPSurfaceNode- Overrides:
getNurbsImplin classBaseNurbsPatchSurface- Returns:
-
setupFinished
public void setupFinished()Description copied from class:BaseNurbsPatchSurfaceNotification 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:
setupFinishedin interfaceVRMLNodeType- Overrides:
setupFinishedin 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:
renderin interfaceVRMLBREPNodeType
-
set_renderer
- Specified by:
set_rendererin interfaceVRMLBREPNodeType
-
isSolid
public boolean isSolid()Description copied from class:BaseNurbsPatchSurfaceGet the value of the solid field.- Specified by:
isSolidin interfaceVRMLGeometryNodeType- Overrides:
isSolidin classBaseNurbsPatchSurface- Returns:
- true This object is solid (ie single sided)
-