Interface NurbsCurve
- All Superinterfaces:
X3DGeometryNode
,X3DNode
,X3DParametricGeometryNode
- All Known Implementing Classes:
NurbsCurve
NurbsCurve is a 3D curve analogous to NurbsPatchSurface.
Warning: this is an abstract interface that cannot be instantiated as a concrete object. Java programmers typically only need to use concrete objects provided by the
Package hint: This interface is defined by the X3D Java Language Binding Specification for the Scene Authoring Interface (SAI).
Warning: this is an abstract interface that cannot be instantiated as a concrete object. Java programmers typically only need to use concrete objects provided by the
org.web3d.x3d.jsail
classes.
NurbsCurve node tooltip: [X3DParametricGeometryNode] NurbsCurve is a 3D curve analogous to NurbsPatchSurface.
- Hint: the contained controlPoint field can hold a Coordinate or CoordinateDouble node.
Package hint: This interface is defined by the X3D Java Language Binding Specification for the Scene Authoring Interface (SAI).
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Provide boolean value from initializeOnly SFBool field named closed.Provide org.web3d.x3d.sai.Core.X3DNode instance (using a properly typed node) with acceptable node types limited to Coordinate|CoordinateDouble, from inputOutput SFNode field controlPoint.double[]
getKnot()
Provide array of double results from initializeOnly MFDouble field named knot.Provide org.web3d.x3d.sai.Core.X3DMetadataObject instance (using a properly typed node) from inputOutput SFNode field metadata.int
getOrder()
Provide int value within allowed range of [2,infinity) from initializeOnly SFInt32 field named order.int
Provide int value from inputOutput SFInt32 field named tessellation.double[]
Provide array of double results within allowed range of (0,infinity) from inputOutput MFDouble field named weight.setClosed
(boolean newValue) Accessor method to assign boolean value to initializeOnly SFBool field named closed.setControlPoint
(X3DNode newValue) Accessor method to assign org.web3d.x3d.sai.Core.X3DNode instance (using a properly typed node) to inputOutput SFNode field controlPoint.setKnot
(double[] newValue) Accessor method to assign double array to initializeOnly MFDouble field named knot.setMetadata
(X3DMetadataObject newValue) Accessor method to assign org.web3d.x3d.sai.Core.X3DMetadataObject instance (using a properly typed node) to inputOutput SFNode field metadata.setOrder
(int newValue) Accessor method to assign int value to initializeOnly SFInt32 field named order.setTessellation
(int newValue) Accessor method to assign int value to inputOutput SFInt32 field named tessellation.setWeight
(double[] newValue) Accessor method to assign double array to inputOutput MFDouble field named weight.
-
Method Details
-
getClosed
boolean getClosed()Provide boolean value from initializeOnly SFBool field named closed.
Tooltip: Whether or not the curve is closed (i.e. matching end values). *- Returns:
- value of closed field
-
setClosed
Accessor method to assign boolean value to initializeOnly SFBool field named closed.
Tooltip: Whether or not the curve is closed (i.e. matching end values). *- Parameters:
newValue
- is new value for the closed field.- Returns:
NurbsCurve
- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).
-
getControlPoint
X3DNode getControlPoint()Provide org.web3d.x3d.sai.Core.X3DNode instance (using a properly typed node) with acceptable node types limited to Coordinate|CoordinateDouble, from inputOutput SFNode field controlPoint.
Tooltip: [Coordinate|CoordinateDouble|GeoCoordinate] Single contained Coordinate or CoordinateDouble node that can specify control points for NURBS geometry definitions. *- Returns:
- value of controlPoint field
-
setControlPoint
Accessor method to assign org.web3d.x3d.sai.Core.X3DNode instance (using a properly typed node) to inputOutput SFNode field controlPoint.
Tooltip: [Coordinate|CoordinateDouble|GeoCoordinate] Single contained Coordinate or CoordinateDouble node that can specify control points for NURBS geometry definitions. *- Parameters:
newValue
- is new value for the controlPoint field.- Returns:
NurbsCurve
- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).
-
getKnot
double[] getKnot()Provide array of double results from initializeOnly MFDouble field named knot.
Tooltip: knot vector, where size = number of control points + order of curve. *- Returns:
- value of knot field
-
setKnot
Accessor method to assign double array to initializeOnly MFDouble field named knot.
Tooltip: knot vector, where size = number of control points + order of curve. *- Parameters:
newValue
- is new value for the knot field.- Returns:
NurbsCurve
- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).
-
getMetadata
X3DMetadataObject getMetadata()Provide org.web3d.x3d.sai.Core.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/specifications/X3Dv4/ISO-IEC19775-1v4-IS/Part01/components/core.html#Metadata
- Specified by:
getMetadata
in interfaceX3DGeometryNode
- Specified by:
getMetadata
in interfaceX3DNode
- Specified by:
getMetadata
in interfaceX3DParametricGeometryNode
- Returns:
- value of metadata field
- See Also:
-
setMetadata
Accessor method to assign org.web3d.x3d.sai.Core.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/specifications/X3Dv4/ISO-IEC19775-1v4-IS/Part01/components/core.html#Metadata
- Specified by:
setMetadata
in interfaceX3DGeometryNode
- Specified by:
setMetadata
in interfaceX3DNode
- Specified by:
setMetadata
in interfaceX3DParametricGeometryNode
- Parameters:
newValue
- is new value for the metadata field.- Returns:
NurbsCurve
- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).- See Also:
-
getOrder
int getOrder()Provide int value within allowed range of [2,infinity) from initializeOnly SFInt32 field named order.
Tooltip: define order of surface by polynomials of degree = order-1. *- Returns:
- value of order field
-
setOrder
Accessor method to assign int value to initializeOnly SFInt32 field named order.
Tooltip: define order of surface by polynomials of degree = order-1. *- Parameters:
newValue
- is new value for the order field.- Returns:
NurbsCurve
- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).
-
getTessellation
int getTessellation()Provide int value from inputOutput SFInt32 field named tessellation.
Tooltip: hint for surface tessellation. *- Returns:
- value of tessellation field
-
setTessellation
Accessor method to assign int value to inputOutput SFInt32 field named tessellation.
Tooltip: hint for surface tessellation. *- Parameters:
newValue
- is new value for the tessellation field.- Returns:
NurbsCurve
- 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. *- 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. *- Parameters:
newValue
- is new value for the weight field.- Returns:
NurbsCurve
- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).
-