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, vfChildren
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.SceneGraphObject
got the idea of returning null from OGLCoordinate Get the OGL scene graph object representation of this node.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 trimmingnet.jgeom.nurbs.TrimCurve
Returns representation of trimming loopvoid
setQuality
(float q) void
Notification 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, setValue
Methods 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, 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.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
-
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:VRMLNodeType
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. It is then responsible for calling its children's setupFinished.- Specified by:
setupFinished
in interfaceVRMLNodeType
- Overrides:
setupFinished
in 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:
getSceneGraphObject
in interfaceOGLVRMLNode
- Returns:
- The null representation.
-