Class TextureTransform

All Implemented Interfaces:
X3DNode, X3DAppearanceChildNode, TextureTransform, X3DTextureTransformNode

public class TextureTransform extends X3DConcreteNode implements TextureTransform
TextureTransform shifts 2D texture coordinates for positioning, orienting and scaling image textures on geometry.

X3D node tooltip: [X3DTextureTransformNode] TextureTransform shifts 2D texture coordinates for positioning, orienting and scaling image textures on geometry.
  • Warning: resulting visible effects appear reversed because image changes occur before mapping to geometry.
  • Hint: order of operations is translation, rotation about center, non-uniform scale about center.
  • Hint: insert Shape and Appearance nodes before adding TextureTransform.
  • Hint: Texture mapping https://en.wikipedia.org/wiki/Texture_mapping

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:
X3D Abstract Specification: TextureTransform, X3D Tooltips: TextureTransform, X3D Scene Authoring Hints: Images
  • Field Details

    • NAME

      public static final String NAME
      String constant NAME provides name of this element: TextureTransform.
      See Also:
      Constant Field Values
    • COMPONENT

      public static final String COMPONENT
      String constant COMPONENT defines X3D component for the TextureTransform element: Texturing
      See Also:
      Constant Field Values
    • LEVEL

      public static final int LEVEL
      Integer constant LEVEL provides default X3D Texturing component level for this element: 1
      See Also:
      Constant Field Values
    • CENTER_DEFAULT_VALUE

      public static final float[] CENTER_DEFAULT_VALUE
      SFVec2f field named center has default value {0f,0f} (Java syntax) or 0 0 (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).
    • ROTATION_DEFAULT_VALUE

      public static final float ROTATION_DEFAULT_VALUE
      SFFloat field named rotation has default value 0f (Java syntax) or 0 (XML syntax).
      See Also:
      Constant Field Values
    • SCALE_DEFAULT_VALUE

      public static final float[] SCALE_DEFAULT_VALUE
      SFVec2f field named scale has default value {1f,1f} (Java syntax) or 1 1 (XML syntax).
    • TRANSLATION_DEFAULT_VALUE

      public static final float[] TRANSLATION_DEFAULT_VALUE
      SFVec2f field named translation has default value {0f,0f} (Java syntax) or 0 0 (XML syntax).
    • 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:
      X3D Scene Authoring Hints: containerField, X3D Unified Object Model (X3DUOM), Constant Field Values
    • fromField_CENTER

      public static final String fromField_CENTER
      fromField ROUTE name for SFVec2f field named center.
      See Also:
      Constant Field Values
    • toField_CENTER

      public static final String toField_CENTER
      toField ROUTE name for SFVec2f field named center.
      See Also:
      Constant Field Values
    • fromField_IS

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

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

      public static final String toField_METADATA
      toField ROUTE name for SFNode field named metadata.
      See Also:
      Constant Field Values
    • fromField_ROTATION

      public static final String fromField_ROTATION
      fromField ROUTE name for SFFloat field named rotation.
      See Also:
      Constant Field Values
    • toField_ROTATION

      public static final String toField_ROTATION
      toField ROUTE name for SFFloat field named rotation.
      See Also:
      Constant Field Values
    • fromField_SCALE

      public static final String fromField_SCALE
      fromField ROUTE name for SFVec2f field named scale.
      See Also:
      Constant Field Values
    • toField_SCALE

      public static final String toField_SCALE
      toField ROUTE name for SFVec2f field named scale.
      See Also:
      Constant Field Values
    • fromField_TRANSLATION

      public static final String fromField_TRANSLATION
      fromField ROUTE name for SFVec2f field named translation.
      See Also:
      Constant Field Values
    • toField_TRANSLATION

      public static final String toField_TRANSLATION
      toField ROUTE name for SFVec2f field named translation.
      See Also:
      Constant Field Values
  • Constructor Details

    • TextureTransform

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

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