Interface Polypoint2D

All Superinterfaces:
X3DGeometryNode, X3DNode
All Known Implementing Classes:
Polypoint2D

public interface Polypoint2D extends X3DGeometryNode
Polypoint2D is a geometry node that defines a set of 2D points in X-Y plane.

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. Polypoint2D node tooltip: [X3DGeometryNode] Polypoint2D is a geometry node that defines a set of 2D points in X-Y plane.
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
    Provide org.web3d.x3d.sai.Core.X3DMetadataObject instance (using a properly typed node) from inputOutput SFNode field metadata.
    float[]
    Provide array of 2-tuple float results from inputOutput MFVec2f field named point.
    Accessor method to assign org.web3d.x3d.sai.Core.X3DMetadataObject instance (using a properly typed node) to inputOutput SFNode field metadata.
    setPoint(float[] newValue)
    Accessor method to assign 2-tuple float array to inputOutput MFVec2f field named point.
  • Method Details

    • 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
      Returns:
      value of metadata field
      See Also:
    • setMetadata

      Polypoint2D 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
      Parameters:
      newValue - is new value for the metadata field.
      Returns:
      Polypoint2D - namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).
      See Also:
    • getPoint

      float[] getPoint()
      Provide array of 2-tuple float results from inputOutput MFVec2f field named point.

      Tooltip: 2D coordinates of vertices.
      • Warning: simple-geometry dimensions are initializeOnly and cannot be changed after initial creation, avoiding the need for potentially expensive tessellation at run time.
      • Hint: for size animation, modify the scale of a parent/ancestor Transform node instead.
      Returns:
      value of point field
    • setPoint

      Polypoint2D setPoint(float[] newValue)
      Accessor method to assign 2-tuple float array to inputOutput MFVec2f field named point.

      Tooltip: 2D coordinates of vertices.
      • Warning: simple-geometry dimensions are initializeOnly and cannot be changed after initial creation, avoiding the need for potentially expensive tessellation at run time.
      • Hint: for size animation, modify the scale of a parent/ancestor Transform node instead.
      Parameters:
      newValue - is new value for the point field.
      Returns:
      Polypoint2D - namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).