Package org.web3d.x3d.sai.NURBS
Interface NurbsTrimmedSurface
- All Superinterfaces:
X3DGeometryNode,X3DNode,X3DNurbsSurfaceGeometryNode,X3DParametricGeometryNode
- All Known Implementing Classes:
NurbsTrimmedSurfaceObject
public interface NurbsTrimmedSurface extends X3DNurbsSurfaceGeometryNode
NurbsTrimmedSurface generates texture coordinates from a Non-Uniform Rational B-Spline (NURBS) surface.
X3D node tooltip: [X3DNurbsSurfaceGeometryNode] NurbsTrimmedSurface generates texture coordinates from a Non-Uniform Rational B-Spline (NURBS) surface. *
Package hint: This interface is defined by the X3D Java Language Binding Specification for the Scene Authoring Interface (SAI).
X3D node tooltip: [X3DNurbsSurfaceGeometryNode] NurbsTrimmedSurface generates texture coordinates from a Non-Uniform Rational B-Spline (NURBS) surface. *
Package hint: This interface is defined by the X3D Java Language Binding Specification for the Scene Authoring Interface (SAI).
-
Method Summary
Modifier and Type Method Description voidaddTrimmingContour(X3DNode[] newValue)Add array of child trimmingContour nodes to array of existing nodes (if any).X3DCoordinateNodegetControlPoint()Provide X3DCoordinateNode instance (using a properly typed node) from inputOutput SFNode field controlPoint.X3DMetadataObjectgetMetadata()Provide X3DMetadataObject instance (using a properly typed node) from inputOutput SFNode field metadata.booleangetSolid()Provide boolean value from initializeOnly SFBool field named solid.X3DNodegetTexCoord()Provide X3DNode instance (using a properly typed node) with acceptable node types limited to X3DTextureCoordinateNode|NurbsTextureCoordinate, from inputOutput SFNode field texCoord.X3DNode[]getTrimmingContour()Provide array of X3DNode results (using an array consisting of properly typed nodes or ProtoInstanceObjects) from inputOutput MFNode field trimmingContour.booleangetUClosed()Provide boolean value from initializeOnly SFBool field named uClosed.intgetUDimension()Provide int value within allowed range of [0,infinity) from initializeOnly SFInt32 field named uDimension.double[]getUKnot()Provide array of double results from initializeOnly MFDouble field named uKnot.intgetUOrder()Provide int value within allowed range of [2,infinity) from initializeOnly SFInt32 field named uOrder.intgetUTessellation()Provide int value from inputOutput SFInt32 field named uTessellation.booleangetVClosed()Provide boolean value from initializeOnly SFBool field named vClosed.intgetVDimension()Provide int value within allowed range of [0,infinity) from initializeOnly SFInt32 field named vDimension.double[]getVKnot()Provide array of double results from initializeOnly MFDouble field named vKnot.intgetVOrder()Provide int value within allowed range of [2,infinity) from initializeOnly SFInt32 field named vOrder.intgetVTessellation()Provide int value from inputOutput SFInt32 field named vTessellation.double[]getWeight()Provide array of double results within allowed range of (0,infinity) from inputOutput MFDouble field named weight.NurbsTrimmedSurfacesetControlPoint(X3DCoordinateNode newValue)Accessor method to assign X3DCoordinateNode instance (using a properly typed node) to inputOutput SFNode field controlPoint.NurbsTrimmedSurfacesetMetadata(X3DMetadataObject newValue)Accessor method to assign X3DMetadataObject instance (using a properly typed node) to inputOutput SFNode field metadata.NurbsTrimmedSurfacesetSolid(boolean newValue)Accessor method to assign boolean value to initializeOnly SFBool field named solid.NurbsTrimmedSurfacesetTexCoord(X3DNode newValue)Accessor method to assign X3DNode instance (using a properly typed node) to inputOutput SFNode field texCoord. // newValueInstanceAcceptableNodeTypesTest checks are needed for methods that override/subset X3DNode interfaces #1 boolean isNodeTypeAllowed = (((X3DConcreteNode)newValue) instanceof org.web3d.x3d.sai.Texturing.X3DTextureCoordinateNode) || (((X3DConcreteNode)newValue) instanceof org.web3d.x3d.jsail.NURBS.NurbsTextureCoordinateObject); if (!voidsetTrimmingContour(X3DNode newValue)Set single child trimmingContour node, replacing prior array of existing nodes (if any).NurbsTrimmedSurfacesetTrimmingContour(X3DNode[] newValue)Accessor method to assign X3DNode array (using an array consisting of properly typed nodes or ProtoInstanceObjects) to inputOutput MFNode field trimmingContour.NurbsTrimmedSurfacesetUClosed(boolean newValue)Accessor method to assign boolean value to initializeOnly SFBool field named uClosed.NurbsTrimmedSurfacesetUDimension(int newValue)Accessor method to assign int value to initializeOnly SFInt32 field named uDimension.NurbsTrimmedSurfacesetUKnot(double[] newValue)Accessor method to assign double array to initializeOnly MFDouble field named uKnot.NurbsTrimmedSurfacesetUOrder(int newValue)Accessor method to assign int value to initializeOnly SFInt32 field named uOrder.NurbsTrimmedSurfacesetUTessellation(int newValue)Accessor method to assign int value to inputOutput SFInt32 field named uTessellation.NurbsTrimmedSurfacesetVClosed(boolean newValue)Accessor method to assign boolean value to initializeOnly SFBool field named vClosed.NurbsTrimmedSurfacesetVDimension(int newValue)Accessor method to assign int value to initializeOnly SFInt32 field named vDimension.NurbsTrimmedSurfacesetVKnot(double[] newValue)Accessor method to assign double array to initializeOnly MFDouble field named vKnot.NurbsTrimmedSurfacesetVOrder(int newValue)Accessor method to assign int value to initializeOnly SFInt32 field named vOrder.NurbsTrimmedSurfacesetVTessellation(int newValue)Accessor method to assign int value to inputOutput SFInt32 field named vTessellation.NurbsTrimmedSurfacesetWeight(double[] newValue)Accessor method to assign double array to inputOutput MFDouble field named weight.
-
Method Details
-
getControlPoint
X3DCoordinateNode getControlPoint()Provide X3DCoordinateNode instance (using a properly typed node) from inputOutput SFNode field controlPoint.
Tooltip: [X3DCoordinateNode] Single contained Coordinate or CoordinateDouble node that specifies control points for NURBS geometry definitions. *- Specified by:
getControlPointin interfaceX3DNurbsSurfaceGeometryNode- Returns:
- value of controlPoint field
-
setControlPoint
Accessor method to assign X3DCoordinateNode instance (using a properly typed node) to inputOutput SFNode field controlPoint.
Tooltip: [X3DCoordinateNode] Single contained Coordinate or CoordinateDouble node that specifies control points for NURBS geometry definitions. *- Specified by:
setControlPointin interfaceX3DNurbsSurfaceGeometryNode- Parameters:
newValue- is new value for the controlPoint field.- Returns:
NurbsTrimmedSurface- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).
-
getMetadata
X3DMetadataObject getMetadata()Provide X3DMetadataObject instance (using a properly typed node) from inputOutput SFNode field metadata.
Tooltip: [X3DMetadataObject] Information about this node can be contained in a MetadataBoolean, MetadataDouble, MetadataFloat, MetadataInteger, MetadataString or MetadataSet node.- Hint: X3D Architecture 7.2.4 Metadata https://www.web3d.org/documents/specifications/19775-1/V3.3/Part01/components/core.html#Metadata
- Specified by:
getMetadatain interfaceX3DGeometryNode- Specified by:
getMetadatain interfaceX3DNode- Specified by:
getMetadatain interfaceX3DNurbsSurfaceGeometryNode- Specified by:
getMetadatain interfaceX3DParametricGeometryNode- Returns:
- value of metadata field
- See Also:
- X3D Scene Authoring Hints: Metadata Nodes
-
setMetadata
Accessor method to assign X3DMetadataObject instance (using a properly typed node) to inputOutput SFNode field metadata.
Tooltip: [X3DMetadataObject] Information about this node can be contained in a MetadataBoolean, MetadataDouble, MetadataFloat, MetadataInteger, MetadataString or MetadataSet node.- Hint: X3D Architecture 7.2.4 Metadata https://www.web3d.org/documents/specifications/19775-1/V3.3/Part01/components/core.html#Metadata
- Specified by:
setMetadatain interfaceX3DGeometryNode- Specified by:
setMetadatain interfaceX3DNode- Specified by:
setMetadatain interfaceX3DNurbsSurfaceGeometryNode- Specified by:
setMetadatain interfaceX3DParametricGeometryNode- Parameters:
newValue- is new value for the metadata field.- Returns:
NurbsTrimmedSurface- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).- See Also:
- X3D Scene Authoring Hints: Metadata Nodes
-
getSolid
boolean getSolid()Provide boolean value from initializeOnly SFBool field named solid.
Tooltip: Setting solid true means draw only one side of polygons (backface culling on), setting solid false means draw both sides of polygons (backface culling off).- Warning: default value true can completely hide geometry if viewed from wrong side!
- Hint: if in doubt, use solid='false' for maximum visibility.
- Specified by:
getSolidin interfaceX3DNurbsSurfaceGeometryNode- Returns:
- value of solid field
-
setSolid
Accessor method to assign boolean value to initializeOnly SFBool field named solid.
Tooltip: Setting solid true means draw only one side of polygons (backface culling on), setting solid false means draw both sides of polygons (backface culling off).- Warning: default value true can completely hide geometry if viewed from wrong side!
- Hint: if in doubt, use solid='false' for maximum visibility.
- Specified by:
setSolidin interfaceX3DNurbsSurfaceGeometryNode- Parameters:
newValue- is new value for the solid field.- Returns:
NurbsTrimmedSurface- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).
-
getTexCoord
X3DNode getTexCoord()Provide X3DNode instance (using a properly typed node) with acceptable node types limited to X3DTextureCoordinateNode|NurbsTextureCoordinate, from inputOutput SFNode field texCoord.
Tooltip: [X3DTextureCoordinateNode|NurbsTextureCoordinate] Single contained NurbsTextureCoordinate, TextureCoordinate, TextureCoordinateGenerator or MultiTextureCoordinate node that specifies coordinates for texture mapping onto corresponding geometry. *- Specified by:
getTexCoordin interfaceX3DNurbsSurfaceGeometryNode- Returns:
- value of texCoord field
-
setTexCoord
Accessor method to assign X3DNode instance (using a properly typed node) to inputOutput SFNode field texCoord. // newValueInstanceAcceptableNodeTypesTest checks are needed for methods that override/subset X3DNode interfaces #1 boolean isNodeTypeAllowed = (((X3DConcreteNode)newValue) instanceof org.web3d.x3d.sai.Texturing.X3DTextureCoordinateNode) || (((X3DConcreteNode)newValue) instanceof org.web3d.x3d.jsail.NURBS.NurbsTextureCoordinateObject); if (!isNodeTypeAllowed) { throw new org.web3d.x3d.sai.InvalidFieldValueException("X3DNode newValue is not instanceof " + "acceptableNodeTypes X3DTextureCoordinateNode|NurbsTextureCoordinate; newValue=" + newValue); }
Tooltip: [X3DTextureCoordinateNode|NurbsTextureCoordinate] Single contained NurbsTextureCoordinate, TextureCoordinate, TextureCoordinateGenerator or MultiTextureCoordinate node that specifies coordinates for texture mapping onto corresponding geometry. *- Specified by:
setTexCoordin interfaceX3DNurbsSurfaceGeometryNode- Parameters:
newValue- is new value for the texCoord field.- Returns:
NurbsTrimmedSurface- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).
-
getTrimmingContour
X3DNode[] getTrimmingContour()Provide array of X3DNode results (using an array consisting of properly typed nodes or ProtoInstanceObjects) from inputOutput MFNode field trimmingContour.
Tooltip: [Contour2D] A set of Contour2D nodes are used as trimming loops.- Hint: if no trimming contours are defined, NurbsTrimmedSurface has same semantics as NurbsPatchSurface node.
Warning: according to X3D Unified Object Model (X3DUOM), acceptable node types are limited to Contour2D.- Returns:
- value of trimmingContour field
- See Also:
Contour2DObject
-
setTrimmingContour
Accessor method to assign X3DNode array (using an array consisting of properly typed nodes or ProtoInstanceObjects) to inputOutput MFNode field trimmingContour.
Tooltip: [Contour2D] A set of Contour2D nodes are used as trimming loops.- Hint: if no trimming contours are defined, NurbsTrimmedSurface has same semantics as NurbsPatchSurface node.
Note: according to X3D Unified Object Model (X3DUOM), acceptable node types are limited to Contour2D.- Parameters:
newValue- is new value for the trimmingContour field.- Returns:
NurbsTrimmedSurface- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).
-
addTrimmingContour
Add array of child trimmingContour nodes to array of existing nodes (if any).
Note: according to X3D Unified Object Model (X3DUOM), acceptable node types are limited to Contour2D.- Parameters:
newValue- is new value array to be appended the trimmingContour field.
-
setTrimmingContour
Set single child trimmingContour node, replacing prior array of existing nodes (if any).- Parameters:
newValue- is new node for the trimmingContour field
-
getUClosed
boolean getUClosed()Provide boolean value from initializeOnly SFBool field named uClosed.
Tooltip: Whether opposite surface sides are closed (seamless) across u dimension. *- Specified by:
getUClosedin interfaceX3DNurbsSurfaceGeometryNode- Returns:
- value of uClosed field
-
setUClosed
Accessor method to assign boolean value to initializeOnly SFBool field named uClosed.
Tooltip: Whether opposite surface sides are closed (seamless) across u dimension. *- Specified by:
setUClosedin interfaceX3DNurbsSurfaceGeometryNode- Parameters:
newValue- is new value for the uClosed field.- Returns:
NurbsTrimmedSurface- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).
-
getUDimension
int getUDimension()Provide int value within allowed range of [0,infinity) from initializeOnly SFInt32 field named uDimension.
Tooltip: Number of control points in u dimension. *- Specified by:
getUDimensionin interfaceX3DNurbsSurfaceGeometryNode- Returns:
- value of uDimension field
-
setUDimension
Accessor method to assign int value to initializeOnly SFInt32 field named uDimension.
Tooltip: Number of control points in u dimension. *- Specified by:
setUDimensionin interfaceX3DNurbsSurfaceGeometryNode- Parameters:
newValue- is new value for the uDimension field.- Returns:
NurbsTrimmedSurface- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).
-
getUKnot
double[] getUKnot()Provide array of double results from initializeOnly MFDouble field named uKnot.
Tooltip: Knot vector, where size = number of control points + order of curve. *- Specified by:
getUKnotin interfaceX3DNurbsSurfaceGeometryNode- Returns:
- value of uKnot field
-
setUKnot
Accessor method to assign double array to initializeOnly MFDouble field named uKnot.
Tooltip: Knot vector, where size = number of control points + order of curve. *- Specified by:
setUKnotin interfaceX3DNurbsSurfaceGeometryNode- Parameters:
newValue- is new value for the uKnot field.- Returns:
NurbsTrimmedSurface- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).
-
getUOrder
int getUOrder()Provide int value within allowed range of [2,infinity) from initializeOnly SFInt32 field named uOrder.
Tooltip: Define order of surface by polynomials of degree = order-1. *- Specified by:
getUOrderin interfaceX3DNurbsSurfaceGeometryNode- Returns:
- value of uOrder field
-
setUOrder
Accessor method to assign int value to initializeOnly SFInt32 field named uOrder.
Tooltip: Define order of surface by polynomials of degree = order-1. *- Specified by:
setUOrderin interfaceX3DNurbsSurfaceGeometryNode- Parameters:
newValue- is new value for the uOrder field.- Returns:
NurbsTrimmedSurface- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).
-
getUTessellation
int getUTessellation()Provide int value from inputOutput SFInt32 field named uTessellation.
Tooltip: hint for surface tesselation. *- Specified by:
getUTessellationin interfaceX3DNurbsSurfaceGeometryNode- Returns:
- value of uTessellation field
-
setUTessellation
Accessor method to assign int value to inputOutput SFInt32 field named uTessellation.
Tooltip: hint for surface tesselation. *- Specified by:
setUTessellationin interfaceX3DNurbsSurfaceGeometryNode- Parameters:
newValue- is new value for the uTessellation field.- Returns:
NurbsTrimmedSurface- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).
-
getVClosed
boolean getVClosed()Provide boolean value from initializeOnly SFBool field named vClosed.
Tooltip: Whether opposite surface sides are closed (seamless) across u dimension. *- Specified by:
getVClosedin interfaceX3DNurbsSurfaceGeometryNode- Returns:
- value of vClosed field
-
setVClosed
Accessor method to assign boolean value to initializeOnly SFBool field named vClosed.
Tooltip: Whether opposite surface sides are closed (seamless) across u dimension. *- Specified by:
setVClosedin interfaceX3DNurbsSurfaceGeometryNode- Parameters:
newValue- is new value for the vClosed field.- Returns:
NurbsTrimmedSurface- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).
-
getVDimension
int getVDimension()Provide int value within allowed range of [0,infinity) from initializeOnly SFInt32 field named vDimension.
Tooltip: Number of control points in v dimension. *- Specified by:
getVDimensionin interfaceX3DNurbsSurfaceGeometryNode- Returns:
- value of vDimension field
-
setVDimension
Accessor method to assign int value to initializeOnly SFInt32 field named vDimension.
Tooltip: Number of control points in v dimension. *- Specified by:
setVDimensionin interfaceX3DNurbsSurfaceGeometryNode- Parameters:
newValue- is new value for the vDimension field.- Returns:
NurbsTrimmedSurface- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).
-
getVKnot
double[] getVKnot()Provide array of double results from initializeOnly MFDouble field named vKnot.
Tooltip: Knot vector, where size = number of control points + order of curve. *- Specified by:
getVKnotin interfaceX3DNurbsSurfaceGeometryNode- Returns:
- value of vKnot field
-
setVKnot
Accessor method to assign double array to initializeOnly MFDouble field named vKnot.
Tooltip: Knot vector, where size = number of control points + order of curve. *- Specified by:
setVKnotin interfaceX3DNurbsSurfaceGeometryNode- Parameters:
newValue- is new value for the vKnot field.- Returns:
NurbsTrimmedSurface- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).
-
getVOrder
int getVOrder()Provide int value within allowed range of [2,infinity) from initializeOnly SFInt32 field named vOrder.
Tooltip: Define order of surface by polynomials of degree = order-1. *- Specified by:
getVOrderin interfaceX3DNurbsSurfaceGeometryNode- Returns:
- value of vOrder field
-
setVOrder
Accessor method to assign int value to initializeOnly SFInt32 field named vOrder.
Tooltip: Define order of surface by polynomials of degree = order-1. *- Specified by:
setVOrderin interfaceX3DNurbsSurfaceGeometryNode- Parameters:
newValue- is new value for the vOrder field.- Returns:
NurbsTrimmedSurface- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).
-
getVTessellation
int getVTessellation()Provide int value from inputOutput SFInt32 field named vTessellation.
Tooltip: hint for surface tesselation. *- Specified by:
getVTessellationin interfaceX3DNurbsSurfaceGeometryNode- Returns:
- value of vTessellation field
-
setVTessellation
Accessor method to assign int value to inputOutput SFInt32 field named vTessellation.
Tooltip: hint for surface tesselation. *- Specified by:
setVTessellationin interfaceX3DNurbsSurfaceGeometryNode- Parameters:
newValue- is new value for the vTessellation field.- Returns:
NurbsTrimmedSurface- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).
-
getWeight
double[] getWeight()Provide array of double results within allowed range of (0,infinity) from inputOutput MFDouble field named weight.
Tooltip: Vector assigning relative weight value to each control point. *- Specified by:
getWeightin interfaceX3DNurbsSurfaceGeometryNode- Returns:
- value of weight field
-
setWeight
Accessor method to assign double array to inputOutput MFDouble field named weight.
Tooltip: Vector assigning relative weight value to each control point. *- Specified by:
setWeightin interfaceX3DNurbsSurfaceGeometryNode- Parameters:
newValue- is new value for the weight field.- Returns:
NurbsTrimmedSurface- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).
-