Class Appearance

All Implemented Interfaces:
X3DNode, Appearance, X3DAppearanceNode

public class Appearance extends X3DConcreteNode implements Appearance
Appearance specifies the visual properties of geometry by containing the Material, ImageTexture/MovieTexture/PixelTexture, FillProperties, LineProperties, programmable shader nodes (ComposedShader, PackagedShader, ProgramShader) and TextureTransform nodes.

X3D node tooltip: [X3DAppearanceNode] Appearance specifies the visual properties of geometry by containing the Material, ImageTexture/MovieTexture/PixelTexture, FillProperties, LineProperties, programmable shader nodes (ComposedShader, PackagedShader, ProgramShader) and TextureTransform 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:
X3D Abstract Specification: Appearance, X3D Tooltips: Appearance, X3D Scene Authoring Hints
  • Field Details

    • ALPHAMODE_AUTO

      public static final String ALPHAMODE_AUTO
      Tooltip: Material transparency is applied to texture transparency. SFString field named alphaMode with X3DUOM simpleType alphaModeChoices and with X3DUOM baseType SFString can equal this value "AUTO" (Java syntax) or AUTO (XML syntax).
      See Also:
      XML Schema: alphaModeChoices, Constant Field Values
    • ALPHAMODE_OPAQUE

      public static final String ALPHAMODE_OPAQUE
      Tooltip: Ignore alpha channel texture transparency, opaque. SFString field named alphaMode with X3DUOM simpleType alphaModeChoices and with X3DUOM baseType SFString can equal this value "OPAQUE" (Java syntax) or OPAQUE (XML syntax).
      See Also:
      XML Schema: alphaModeChoices, Constant Field Values
    • ALPHAMODE_MASK

      public static final String ALPHAMODE_MASK
      Tooltip: Alpha-testing mode for transparent when alpha value less than 0.5 and opaque when greater than or equal to 0.5. SFString field named alphaMode with X3DUOM simpleType alphaModeChoices and with X3DUOM baseType SFString can equal this value "MASK" (Java syntax) or MASK (XML syntax).
      See Also:
      XML Schema: alphaModeChoices, Constant Field Values
    • ALPHAMODE_BLEND

      public static final String ALPHAMODE_BLEND
      Tooltip: Blend combines partial transparency of textures and materials. SFString field named alphaMode with X3DUOM simpleType alphaModeChoices and with X3DUOM baseType SFString can equal this value "BLEND" (Java syntax) or BLEND (XML syntax).
      See Also:
      XML Schema: alphaModeChoices, Constant Field Values
    • NAME

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

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

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

      public static final AcousticProperties ACOUSTICPROPERTIES_DEFAULT_VALUE
      SFNode field named acousticProperties has default value null (Java syntax) or NULL (XML syntax).
    • ALPHACUTOFF_DEFAULT_VALUE

      public static final float ALPHACUTOFF_DEFAULT_VALUE
      SFFloat field named alphaCutoff has default value 0.5f (Java syntax) or 0.5 (XML syntax).
      See Also:
      Constant Field Values
    • ALPHAMODE_DEFAULT_VALUE

      public static final String ALPHAMODE_DEFAULT_VALUE
      SFString field named alphaMode has default value "AUTO" (Java syntax) or AUTO (XML syntax).
      See Also:
      Constant Field Values
    • FILLPROPERTIES_DEFAULT_VALUE

      public static final FillProperties FILLPROPERTIES_DEFAULT_VALUE
      SFNode field named fillProperties 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).
    • LINEPROPERTIES_DEFAULT_VALUE

      public static final LineProperties LINEPROPERTIES_DEFAULT_VALUE
      SFNode field named lineProperties has default value null (Java syntax) or NULL (XML syntax).
    • MATERIAL_DEFAULT_VALUE

      public static final X3DMaterialNode MATERIAL_DEFAULT_VALUE
      SFNode field named material 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).
    • POINTPROPERTIES_DEFAULT_VALUE

      public static final PointProperties POINTPROPERTIES_DEFAULT_VALUE
      SFNode field named pointProperties has default value null (Java syntax) or NULL (XML syntax).
    • TEXTURE_DEFAULT_VALUE

      public static final X3DTextureNode TEXTURE_DEFAULT_VALUE
      SFNode field named texture has default value null (Java syntax) or NULL (XML syntax).
    • TEXTURETRANSFORM_DEFAULT_VALUE

      public static final X3DTextureTransformNode TEXTURETRANSFORM_DEFAULT_VALUE
      SFNode field named textureTransform has default value null (Java syntax) or NULL (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_ACOUSTICPROPERTIES

      public static final String fromField_ACOUSTICPROPERTIES
      fromField ROUTE name for SFNode field named acousticProperties.
      See Also:
      Constant Field Values
    • toField_ACOUSTICPROPERTIES

      public static final String toField_ACOUSTICPROPERTIES
      toField ROUTE name for SFNode field named acousticProperties.
      See Also:
      Constant Field Values
    • fromField_ALPHACUTOFF

      public static final String fromField_ALPHACUTOFF
      fromField ROUTE name for SFFloat field named alphaCutoff.
      See Also:
      Constant Field Values
    • toField_ALPHACUTOFF

      public static final String toField_ALPHACUTOFF
      toField ROUTE name for SFFloat field named alphaCutoff.
      See Also:
      Constant Field Values
    • fromField_ALPHAMODE

      public static final String fromField_ALPHAMODE
      fromField ROUTE name for SFString field named alphaMode.
      See Also:
      Constant Field Values
    • toField_ALPHAMODE

      public static final String toField_ALPHAMODE
      toField ROUTE name for SFString field named alphaMode.
      See Also:
      Constant Field Values
    • fromField_FILLPROPERTIES

      public static final String fromField_FILLPROPERTIES
      fromField ROUTE name for SFNode field named fillProperties.
      See Also:
      Constant Field Values
    • toField_FILLPROPERTIES

      public static final String toField_FILLPROPERTIES
      toField ROUTE name for SFNode field named fillProperties.
      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_LINEPROPERTIES

      public static final String fromField_LINEPROPERTIES
      fromField ROUTE name for SFNode field named lineProperties.
      See Also:
      Constant Field Values
    • toField_LINEPROPERTIES

      public static final String toField_LINEPROPERTIES
      toField ROUTE name for SFNode field named lineProperties.
      See Also:
      Constant Field Values
    • fromField_MATERIAL

      public static final String fromField_MATERIAL
      fromField ROUTE name for SFNode field named material.
      See Also:
      Constant Field Values
    • toField_MATERIAL

      public static final String toField_MATERIAL
      toField ROUTE name for SFNode field named material.
      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_POINTPROPERTIES

      public static final String fromField_POINTPROPERTIES
      fromField ROUTE name for SFNode field named pointProperties.
      See Also:
      Constant Field Values
    • toField_POINTPROPERTIES

      public static final String toField_POINTPROPERTIES
      toField ROUTE name for SFNode field named pointProperties.
      See Also:
      Constant Field Values
    • fromField_SHADERS

      public static final String fromField_SHADERS
      fromField ROUTE name for MFNode field named shaders.
      See Also:
      Constant Field Values
    • toField_SHADERS

      public static final String toField_SHADERS
      toField ROUTE name for MFNode field named shaders.
      See Also:
      Constant Field Values
    • fromField_TEXTURE

      public static final String fromField_TEXTURE
      fromField ROUTE name for SFNode field named texture.
      See Also:
      Constant Field Values
    • toField_TEXTURE

      public static final String toField_TEXTURE
      toField ROUTE name for SFNode field named texture.
      See Also:
      Constant Field Values
    • fromField_TEXTURETRANSFORM

      public static final String fromField_TEXTURETRANSFORM
      fromField ROUTE name for SFNode field named textureTransform.
      See Also:
      Constant Field Values
    • toField_TEXTURETRANSFORM

      public static final String toField_TEXTURETRANSFORM
      toField ROUTE name for SFNode field named textureTransform.
      See Also:
      Constant Field Values
  • Constructor Details

    • Appearance

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

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