Interface NurbsCurve

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

public interface NurbsCurve
extends X3DParametricGeometryNode
NurbsCurve is a 3D curve analogous to NurbsPatchSurface.

X3D 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:
SAI Java Specification: TODO, X3D Abstract Specification: NurbsCurve, X3D Tooltips: NurbsCurve, X3D Scene Authoring Hints
  • Method Summary

    Modifier and Type Method Description
    boolean getClosed()
    Provide boolean value from initializeOnly SFBool field named closed.
    X3DCoordinateNode getControlPoint()
    Provide X3DCoordinateNode instance (using a properly typed node) from inputOutput SFNode field controlPoint.
    double[] getKnot()
    Provide array of double results from initializeOnly MFDouble field named knot.
    X3DMetadataObject getMetadata()
    Provide 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 getTessellation()
    Provide int value from inputOutput SFInt32 field named tessellation.
    double[] getWeight()
    Provide array of double results within allowed range of (0,infinity) from inputOutput MFDouble field named weight.
    NurbsCurve setClosed​(boolean newValue)
    Accessor method to assign boolean value to initializeOnly SFBool field named closed.
    NurbsCurve setControlPoint​(X3DCoordinateNode newValue)
    Accessor method to assign X3DCoordinateNode instance (using a properly typed node) to inputOutput SFNode field controlPoint.
    NurbsCurve setKnot​(double[] newValue)
    Accessor method to assign double array to initializeOnly MFDouble field named knot.
    NurbsCurve setMetadata​(X3DMetadataObject newValue)
    Accessor method to assign X3DMetadataObject instance (using a properly typed node) to inputOutput SFNode field metadata.
    NurbsCurve setOrder​(int newValue)
    Accessor method to assign int value to initializeOnly SFInt32 field named order.
    NurbsCurve setTessellation​(int newValue)
    Accessor method to assign int value to inputOutput SFInt32 field named tessellation.
    NurbsCurve 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

      X3DCoordinateNode getControlPoint()
      Provide X3DCoordinateNode instance (using a properly typed node) from inputOutput SFNode field controlPoint.
      Returns:
      value of controlPoint field
    • setControlPoint

      NurbsCurve setControlPoint​(X3DCoordinateNode newValue)
      Accessor method to assign X3DCoordinateNode instance (using a properly typed node) to inputOutput SFNode field controlPoint.
      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 X3DMetadataObject instance (using a properly typed node) from inputOutput SFNode field metadata.
      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:
      X3D Scene Authoring Hints: Metadata Nodes
    • setMetadata

      NurbsCurve setMetadata​(X3DMetadataObject newValue)
      Accessor method to assign X3DMetadataObject instance (using a properly typed node) to inputOutput SFNode field metadata.
      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:
      X3D Scene Authoring Hints: Metadata Nodes
    • 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 tesselation. *
      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 tesselation. *
      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).