Interface NurbsCurve

All Superinterfaces:
X3DGeometryNode, X3DNode, X3DParametricGeometryNode
All Known Implementing Classes:
NurbsCurve

public interface NurbsCurve extends X3DParametricGeometryNode
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 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 Type
    Method
    Description
    boolean
    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[]
    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
    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.
    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.
    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

      NurbsCurve setClosed(boolean newValue)
      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

      NurbsCurve setControlPoint(X3DNode newValue)
      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

      NurbsCurve setKnot(double[] newValue)
      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.
      Specified by:
      getMetadata in interface X3DGeometryNode
      Specified by:
      getMetadata in interface X3DNode
      Specified by:
      getMetadata in interface X3DParametricGeometryNode
      Returns:
      value of metadata field
      See Also:
    • setMetadata

      NurbsCurve setMetadata(X3DMetadataObject newValue)
      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.
      Specified by:
      setMetadata in interface X3DGeometryNode
      Specified by:
      setMetadata in interface X3DNode
      Specified by:
      setMetadata in interface X3DParametricGeometryNode
      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

      NurbsCurve setOrder(int newValue)
      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

      NurbsCurve setTessellation(int newValue)
      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

      NurbsCurve setWeight(double[] newValue)
      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).