Class LineSet

All Implemented Interfaces:
X3DNode, LineSet, X3DGeometryNode

public class LineSet extends X3DConcreteNode implements LineSet
LineSet is a geometry node that can contain a Coordinate|CoordinateDouble node and optionally a Color|ColorRGBA node.

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. LineSet node tooltip: [X3DGeometryNode] LineSet is a geometry node that can contain a Coordinate|CoordinateDouble node and optionally a Color|ColorRGBA node.
  • Hint: Polygonal chain https://en.wikipedia.org/wiki/Polygonal_chain
  • Hint: either values in a contained Color node, or else Material emissiveColor in corresponding Appearance node, are used for rendering lines and points.
  • Warning: lines are not lit, are not texture-mapped, and do not participate in collision detection.
  • Warning: use a different color (or Material emissiveColor) than the Background color, otherwise geometry is invisible.
  • Hint: adding LineProperties to the corresponding Appearance node can modify the rendering style of these lines.
  • Hint: step-wise variation or linear interpolation of color values can be used as a good scientific visualization technique to map arbitrary function values to a color map.
  • Hint: insert a Shape node before adding geometry or Appearance.
  • Hint: for advanced extensibility, authors can substitute a type-matched ProtoInstance node (with correct containerField value) for contained node content.
  • Hint: consider including Fog (with Fog color matching Background color) to provide further depth cueing for LineSet (LS).

Package hint: This org.web3d.x3d.jsail concrete class is used for implementing a standalone X3D object as a Plain Old Java Object (POJO). If you are writing Java code for use inside an X3D Script node, compile separate code using only the org.web3d.x3d.sai package instead.
See Also:
  • Field Details

    • NAME

      public static final String NAME
      String constant NAME provides name of this element: LineSet.
      See Also:
    • COMPONENT

      public static final String COMPONENT
      String constant COMPONENT defines X3D component for the LineSet element: Rendering
      See Also:
    • LEVEL

      public static final int LEVEL
      Integer constant LEVEL provides default X3D Rendering component level for this element: 1
      See Also:
    • COLOR_DEFAULT_VALUE

      public static final X3DColorNode COLOR_DEFAULT_VALUE
      SFNode field named color has default value null (Java syntax) or NULL (XML syntax).
    • COORD_DEFAULT_VALUE

      public static final X3DCoordinateNode COORD_DEFAULT_VALUE
      SFNode field named coord has default value null (Java syntax) or NULL (XML syntax).
    • FOGCOORD_DEFAULT_VALUE

      public static final FogCoordinate FOGCOORD_DEFAULT_VALUE
      SFNode field named fogCoord has default value null (Java syntax) or NULL (XML syntax).
    • IS_DEFAULT_VALUE

      public static final IS IS_DEFAULT_VALUE
      SFNode field named IS has default value null (Java syntax) or NULL (XML syntax).
    • METADATA_DEFAULT_VALUE

      public static final X3DMetadataObject METADATA_DEFAULT_VALUE
      SFNode field named metadata has default value null (Java syntax) or NULL (XML syntax).
    • NORMAL_DEFAULT_VALUE

      public static final X3DNormalNode NORMAL_DEFAULT_VALUE
      SFNode field named normal has default value null (Java syntax) or NULL (XML syntax).
    • VERTEXCOUNT_DEFAULT_VALUE

      public static final ArrayList<Integer> VERTEXCOUNT_DEFAULT_VALUE
      MFInt32 field named vertexCount has default value equal to an empty list.
    • containerField_DEFAULT_VALUE

      public static final String containerField_DEFAULT_VALUE
      containerField describes typical field relationship of a node to its parent. Usage is not ordinarily needed when using this API, this default value is provided for informational purposes only.
      containerField_DEFAULT_VALUE = "geometry";
      containerField_ALLOWED_VALUES = {"geometry" }; type xs:NMTOKEN
      See Also:
    • fromField_ATTRIB

      public static final String fromField_ATTRIB
      fromField ROUTE name for MFNode field named attrib.
      See Also:
    • toField_ATTRIB

      public static final String toField_ATTRIB
      toField ROUTE name for MFNode field named attrib.
      See Also:
    • fromField_COLOR

      public static final String fromField_COLOR
      fromField ROUTE name for SFNode field named color.
      See Also:
    • toField_COLOR

      public static final String toField_COLOR
      toField ROUTE name for SFNode field named color.
      See Also:
    • fromField_COORD

      public static final String fromField_COORD
      fromField ROUTE name for SFNode field named coord.
      See Also:
    • toField_COORD

      public static final String toField_COORD
      toField ROUTE name for SFNode field named coord.
      See Also:
    • fromField_FOGCOORD

      public static final String fromField_FOGCOORD
      fromField ROUTE name for SFNode field named fogCoord.
      See Also:
    • toField_FOGCOORD

      public static final String toField_FOGCOORD
      toField ROUTE name for SFNode field named fogCoord.
      See Also:
    • fromField_IS

      public static final String fromField_IS
      fromField ROUTE name for SFNode field named IS.
      See Also:
    • fromField_METADATA

      public static final String fromField_METADATA
      fromField ROUTE name for SFNode field named metadata.
      See Also:
    • toField_METADATA

      public static final String toField_METADATA
      toField ROUTE name for SFNode field named metadata.
      See Also:
    • fromField_NORMAL

      public static final String fromField_NORMAL
      fromField ROUTE name for SFNode field named normal.
      See Also:
    • toField_NORMAL

      public static final String toField_NORMAL
      toField ROUTE name for SFNode field named normal.
      See Also:
    • fromField_VERTEXCOUNT

      public static final String fromField_VERTEXCOUNT
      fromField ROUTE name for MFInt32 field named vertexCount.
      See Also:
    • toField_VERTEXCOUNT

      public static final String toField_VERTEXCOUNT
      toField ROUTE name for MFInt32 field named vertexCount.
      See Also:
  • Constructor Details

    • LineSet

      public LineSet()
      Constructor for LineSet to initialize member variables with default values.
    • LineSet

      public LineSet(String DEFlabel)
      Utility constructor that assigns DEF label after initializing member variables with default values.
      Parameters:
      DEFlabel - unique DEF name for this X3D node
  • Method Details