Class TextureBackground

java.lang.Object
org.web3d.x3d.jsail.X3DConcreteElement
org.web3d.x3d.jsail.X3DConcreteNode
org.web3d.x3d.jsail.EnvironmentalEffects.TextureBackground
All Implemented Interfaces:
X3DBindableNode, X3DChildNode, X3DNode, TextureBackground, X3DBackgroundNode

public class TextureBackground extends X3DConcreteNode implements TextureBackground
TextureBackground simulates ground and sky, using vertical arrays of wraparound color values, TextureBackground can also provide backdrop texture images on all six sides.

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. TextureBackground node tooltip: [X3DBackgroundNode] TextureBackground simulates ground and sky, using vertical arrays of wraparound color values, TextureBackground can also provide backdrop texture images on all six sides.
  • Hint: Background, Fog, GeoViewpoint, NavigationInfo, OrthoViewpoint, TextureBackground and Viewpoint are bindable nodes, meaning that no more than one of each node type can be active at a given time.
  • Warning: results are undefined if a bindable node (Background, Fog, NavigationInfo, OrthoViewpoint, TextureBackground, Viewpoint) is a contained descendant node of either LOD or Switch. Avoid this authoring pattern.
  • Warning: each of the child ImageTexture or PixelTexture nodes must have unique containerField values for backTexture, bottomTexture, frontTexture, leftTexture, rightTexture, or topTexture.
  • Hint: authors can have LoadSensor nodes receive notifications and send reporting events when background texture node(s) are loaded.

Note that SFColor provides a variety of color constants.

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: TextureBackground.
      See Also:
    • COMPONENT

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

      public static final int LEVEL
      Integer constant LEVEL provides default X3D EnvironmentalEffects component level for this element: 3
      See Also:
    • BACKTEXTURE_DEFAULT_VALUE

      public static final X3DNode BACKTEXTURE_DEFAULT_VALUE
      SFNode field named backTexture has default value null (Java syntax) or NULL (XML syntax).
    • BOTTOMTEXTURE_DEFAULT_VALUE

      public static final X3DNode BOTTOMTEXTURE_DEFAULT_VALUE
      SFNode field named bottomTexture has default value null (Java syntax) or NULL (XML syntax).
    • FRONTTEXTURE_DEFAULT_VALUE

      public static final X3DNode FRONTTEXTURE_DEFAULT_VALUE
      SFNode field named frontTexture has default value null (Java syntax) or NULL (XML syntax).
    • GROUNDANGLE_DEFAULT_VALUE

      public static final ArrayList<Float> GROUNDANGLE_DEFAULT_VALUE
      MFFloat field named groundAngle has default value equal to an empty list.
    • GROUNDCOLOR_DEFAULT_VALUE

      public static final float[] GROUNDCOLOR_DEFAULT_VALUE
      MFColor field named groundColor has default value equal to an empty list.
    • IS_DEFAULT_VALUE

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

      public static final X3DNode LEFTTEXTURE_DEFAULT_VALUE
      SFNode field named leftTexture 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).
    • RIGHTTEXTURE_DEFAULT_VALUE

      public static final X3DNode RIGHTTEXTURE_DEFAULT_VALUE
      SFNode field named rightTexture has default value null (Java syntax) or NULL (XML syntax).
    • SKYANGLE_DEFAULT_VALUE

      public static final ArrayList<Float> SKYANGLE_DEFAULT_VALUE
      MFFloat field named skyAngle has default value equal to an empty list.
    • SKYCOLOR_DEFAULT_VALUE

      public static final float[] SKYCOLOR_DEFAULT_VALUE
      MFColor field named skyColor has default value {0f,0f,0f} (Java syntax) or 0 0 0 (XML syntax).
    • TOPTEXTURE_DEFAULT_VALUE

      public static final X3DNode TOPTEXTURE_DEFAULT_VALUE
      SFNode field named topTexture has default value null (Java syntax) or NULL (XML syntax).
    • TRANSPARENCY_DEFAULT_VALUE

      public static final float TRANSPARENCY_DEFAULT_VALUE
      SFFloat field named transparency has default value 0f (Java syntax) or 0 (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, this default value is provided for informational purposes only.
      containerField_DEFAULT_VALUE = "children";
      containerField_ALLOWED_VALUES = {"children" }; type xs:NMTOKEN
      See Also:
    • fromField_BACKTEXTURE

      public static final String fromField_BACKTEXTURE
      fromField ROUTE name for SFNode field named backTexture.
      See Also:
    • toField_BACKTEXTURE

      public static final String toField_BACKTEXTURE
      toField ROUTE name for SFNode field named backTexture.
      See Also:
    • fromField_BINDTIME

      public static final String fromField_BINDTIME
      fromField ROUTE name for SFTime field named bindTime.
      See Also:
    • fromField_BOTTOMTEXTURE

      public static final String fromField_BOTTOMTEXTURE
      fromField ROUTE name for SFNode field named bottomTexture.
      See Also:
    • toField_BOTTOMTEXTURE

      public static final String toField_BOTTOMTEXTURE
      toField ROUTE name for SFNode field named bottomTexture.
      See Also:
    • fromField_FRONTTEXTURE

      public static final String fromField_FRONTTEXTURE
      fromField ROUTE name for SFNode field named frontTexture.
      See Also:
    • toField_FRONTTEXTURE

      public static final String toField_FRONTTEXTURE
      toField ROUTE name for SFNode field named frontTexture.
      See Also:
    • fromField_GROUNDANGLE

      public static final String fromField_GROUNDANGLE
      fromField ROUTE name for MFFloat field named groundAngle.
      See Also:
    • toField_GROUNDANGLE

      public static final String toField_GROUNDANGLE
      toField ROUTE name for MFFloat field named groundAngle.
      See Also:
    • fromField_GROUNDCOLOR

      public static final String fromField_GROUNDCOLOR
      fromField ROUTE name for MFColor field named groundColor.
      See Also:
    • toField_GROUNDCOLOR

      public static final String toField_GROUNDCOLOR
      toField ROUTE name for MFColor field named groundColor.
      See Also:
    • fromField_IS

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

      public static final String fromField_ISBOUND
      fromField ROUTE name for SFBool field named isBound.
      See Also:
    • fromField_LEFTTEXTURE

      public static final String fromField_LEFTTEXTURE
      fromField ROUTE name for SFNode field named leftTexture.
      See Also:
    • toField_LEFTTEXTURE

      public static final String toField_LEFTTEXTURE
      toField ROUTE name for SFNode field named leftTexture.
      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_RIGHTTEXTURE

      public static final String fromField_RIGHTTEXTURE
      fromField ROUTE name for SFNode field named rightTexture.
      See Also:
    • toField_RIGHTTEXTURE

      public static final String toField_RIGHTTEXTURE
      toField ROUTE name for SFNode field named rightTexture.
      See Also:
    • toField_SET_BIND

      public static final String toField_SET_BIND
      toField ROUTE name for SFBool field named set_bind.
      See Also:
    • fromField_SKYANGLE

      public static final String fromField_SKYANGLE
      fromField ROUTE name for MFFloat field named skyAngle.
      See Also:
    • toField_SKYANGLE

      public static final String toField_SKYANGLE
      toField ROUTE name for MFFloat field named skyAngle.
      See Also:
    • fromField_SKYCOLOR

      public static final String fromField_SKYCOLOR
      fromField ROUTE name for MFColor field named skyColor.
      See Also:
    • toField_SKYCOLOR

      public static final String toField_SKYCOLOR
      toField ROUTE name for MFColor field named skyColor.
      See Also:
    • fromField_TOPTEXTURE

      public static final String fromField_TOPTEXTURE
      fromField ROUTE name for SFNode field named topTexture.
      See Also:
    • toField_TOPTEXTURE

      public static final String toField_TOPTEXTURE
      toField ROUTE name for SFNode field named topTexture.
      See Also:
    • fromField_TRANSPARENCY

      public static final String fromField_TRANSPARENCY
      fromField ROUTE name for SFFloat field named transparency.
      See Also:
    • toField_TRANSPARENCY

      public static final String toField_TRANSPARENCY
      toField ROUTE name for SFFloat field named transparency.
      See Also:
  • Constructor Details

    • TextureBackground

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

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