Class OGLContour2D
java.lang.Object
org.web3d.vrml.renderer.common.nodes.AbstractNode
org.web3d.vrml.renderer.common.nodes.nurbs.BaseContour2D
org.web3d.vrml.renderer.ogl.nodes.nurbs.OGLContour2D
- All Implemented Interfaces:
VRMLNode,FrameStateListener,VRMLNodeType,OGLVRMLNode
OpenGL rendering implementation of Contour2D
Uses classes from the net.jgeom package to implement
trimmed nurbs surface tesselation
This class presents methods to retrieve the geometry
of a trimming loop for a nurbs patch as an instance of
net.jgeom.nurbs.TrimCurve
- Version:
- $Revision: 1.17 $
- Author:
- Vincent Marchetti
-
Field Summary
Fields inherited from class org.web3d.vrml.renderer.common.nodes.nurbs.BaseContour2D
FIELD_ADDCHILDREN, FIELD_CHILDREN, FIELD_REMOVECHILDREN, LAST_COORDINATE_INDEX, vfChildrenFields 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.SceneGraphObjectgot the idea of returning null from OGLCoordinate Get the OGL scene graph object representation of this node.booleangetSense()Returns direction of this loop Considering s parameter axis as equivalent to x axis, and t parameter as y axis, return value of true corresponds to a ccw loop, suitable for an outer boundary trimmingnet.jgeom.nurbs.TrimCurveReturns representation of trimming loopvoidsetQuality(float q) voidNotification that the construction phase of this node has finished.Methods inherited from class org.web3d.vrml.renderer.common.nodes.nurbs.BaseContour2D
getFieldDeclaration, getFieldIndex, getNodeFieldIndices, getNumFields, getPrimaryType, sendRoute, setValueMethods inherited from class org.web3d.vrml.renderer.common.nodes.AbstractNode
addNodeListener, allEventsComplete, checkNodeType, checkSecondaryType, checkSecondaryType, clearRemovedLayerIds, fireFieldChanged, getFieldValue, 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, 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.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
-
OGLContour2D
public OGLContour2D()
-
-
Method Details
-
getTrimCurve
public net.jgeom.nurbs.TrimCurve getTrimCurve()Returns representation of trimming loop- Returns:
- triming geometry as net.jgeom object
-
getSense
public boolean getSense()Returns direction of this loop Considering s parameter axis as equivalent to x axis, and t parameter as y axis, return value of true corresponds to a ccw loop, suitable for an outer boundary trimming- Returns:
- sense
-
setQuality
public void setQuality(float q) -
setupFinished
public void setupFinished()Description copied from interface:VRMLNodeTypeNotification 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. It is then responsible for calling its children's setupFinished.- Specified by:
setupFinishedin interfaceVRMLNodeType- Overrides:
setupFinishedin classBaseContour2D
-
getSceneGraphObject
public org.j3d.aviatrix3d.SceneGraphObject getSceneGraphObject()got the idea of returning null from OGLCoordinate Get the OGL 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 null representation.
-