Class Shape

All Implemented Interfaces:
X3DChildNode, X3DNode, X3DBoundedObject, Shape, X3DShapeNode

public class Shape extends X3DConcreteNode implements Shape
Shape can appear under any grouping node.

X3D node tooltip: [X3DShapeNode,X3DVisibleObject] Shape can appear under any grouping node. Shape can contain an Appearance node and a geometry node (for example one of the primitives Box Cone Cylinder Sphere Text, one of ElevationGrid Extrusion IndexedFaceSet IndexedLineSet LineSet PointSet, or one of the other geometry nodes).
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: Shape.
      See Also:
    • COMPONENT

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

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

      public static final X3DAppearanceNode APPEARANCE_DEFAULT_VALUE
      SFNode field named appearance has default value null (Java syntax) or NULL (XML syntax).
    • BBOXCENTER_DEFAULT_VALUE

      public static final float[] BBOXCENTER_DEFAULT_VALUE
      SFVec3f field named bboxCenter has default value {0f,0f,0f} (Java syntax) or 0 0 0 (XML syntax).
    • BBOXDISPLAY_DEFAULT_VALUE

      public static final boolean BBOXDISPLAY_DEFAULT_VALUE
      SFBool field named bboxDisplay has default value false (Java syntax) or false (XML syntax).
      See Also:
    • BBOXSIZE_DEFAULT_VALUE

      public static final float[] BBOXSIZE_DEFAULT_VALUE
      SFVec3f field named bboxSize has default value {-1f,-1f,-1f} (Java syntax) or -1 -1 -1 (XML syntax).
    • CASTSHADOW_DEFAULT_VALUE

      public static final boolean CASTSHADOW_DEFAULT_VALUE
      SFBool field named castShadow has default value true (Java syntax) or true (XML syntax).
      See Also:
    • GEOMETRY_DEFAULT_VALUE

      public static final X3DGeometryNode GEOMETRY_DEFAULT_VALUE
      SFNode field named geometry 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).
    • VISIBLE_DEFAULT_VALUE

      public static final boolean VISIBLE_DEFAULT_VALUE
      SFBool field named visible has default value true (Java syntax) or true (XML syntax).
      See Also:
    • 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, default value is provided for informational purposes.
      See Also:
    • fromField_APPEARANCE

      public static final String fromField_APPEARANCE
      fromField ROUTE name for SFNode field named appearance.
      See Also:
    • toField_APPEARANCE

      public static final String toField_APPEARANCE
      toField ROUTE name for SFNode field named appearance.
      See Also:
    • fromField_BBOXDISPLAY

      public static final String fromField_BBOXDISPLAY
      fromField ROUTE name for SFBool field named bboxDisplay.
      See Also:
    • toField_BBOXDISPLAY

      public static final String toField_BBOXDISPLAY
      toField ROUTE name for SFBool field named bboxDisplay.
      See Also:
    • fromField_CASTSHADOW

      public static final String fromField_CASTSHADOW
      fromField ROUTE name for SFBool field named castShadow.
      See Also:
    • toField_CASTSHADOW

      public static final String toField_CASTSHADOW
      toField ROUTE name for SFBool field named castShadow.
      See Also:
    • fromField_GEOMETRY

      public static final String fromField_GEOMETRY
      fromField ROUTE name for SFNode field named geometry.
      See Also:
    • toField_GEOMETRY

      public static final String toField_GEOMETRY
      toField ROUTE name for SFNode field named geometry.
      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_VISIBLE

      public static final String fromField_VISIBLE
      fromField ROUTE name for SFBool field named visible.
      See Also:
    • toField_VISIBLE

      public static final String toField_VISIBLE
      toField ROUTE name for SFBool field named visible.
      See Also:
  • Constructor Details

    • Shape

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

      public Shape(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