Interface TwoSidedMaterial

All Superinterfaces:
X3DAppearanceChildNode, X3DMaterialNode, X3DNode
All Known Implementing Classes:
TwoSidedMaterialObject

public interface TwoSidedMaterial
extends X3DMaterialNode
TwoSidedMaterial specifies surface rendering properties for associated geometry nodes, for outer (front) and inner (back) sides of polygons.

X3D node tooltip: (X3D version 3.2 or later) [X3DMaterialNode] TwoSidedMaterial specifies surface rendering properties for associated geometry nodes, for outer (front) and inner (back) sides of polygons. Material attributes are used by the X3D lighting equations during rendering.
Package hint: This interface is defined by the X3D Java Language Binding Specification for the Scene Authoring Interface (SAI).
See Also:
SAI Java Specification: TODO, X3D Abstract Specification: TwoSidedMaterial, X3D Tooltips: TwoSidedMaterial, X3D Scene Authoring Hints
  • Method Summary

    Modifier and Type Method Description
    float getAmbientIntensity()
    Provide float value within allowed range of [0,1] from inputOutput SFFloat field named ambientIntensity.
    float getBackAmbientIntensity()
    Provide float value within allowed range of [0,1] from inputOutput SFFloat field named backAmbientIntensity.
    float[] getBackDiffuseColor()
    Provide array of 3-tuple float results using RGB values [0..1] using RGB values [0..1] from inputOutput SFColor field named backDiffuseColor.
    float[] getBackEmissiveColor()
    Provide array of 3-tuple float results using RGB values [0..1] using RGB values [0..1] from inputOutput SFColor field named backEmissiveColor.
    float getBackShininess()
    Provide float value within allowed range of [0,1] from inputOutput SFFloat field named backShininess.
    float[] getBackSpecularColor()
    Provide array of 3-tuple float results using RGB values [0..1] using RGB values [0..1] from inputOutput SFColor field named backSpecularColor.
    float getBackTransparency()
    Provide float value within allowed range of [0,1] from inputOutput SFFloat field named backTransparency.
    float[] getDiffuseColor()
    Provide array of 3-tuple float results using RGB values [0..1] using RGB values [0..1] from inputOutput SFColor field named diffuseColor.
    float[] getEmissiveColor()
    Provide array of 3-tuple float results using RGB values [0..1] using RGB values [0..1] from inputOutput SFColor field named emissiveColor.
    X3DMetadataObject getMetadata()
    Provide X3DMetadataObject instance (using a properly typed node) from inputOutput SFNode field metadata.
    boolean getSeparateBackColor()
    Provide boolean value from inputOutput SFBool field named separateBackColor.
    float getShininess()
    Provide float value within allowed range of [0,1] from inputOutput SFFloat field named shininess.
    float[] getSpecularColor()
    Provide array of 3-tuple float results using RGB values [0..1] using RGB values [0..1] from inputOutput SFColor field named specularColor.
    float getTransparency()
    Provide float value within allowed range of [0,1] from inputOutput SFFloat field named transparency.
    TwoSidedMaterial setAmbientIntensity​(float newValue)
    Accessor method to assign float value to inputOutput SFFloat field named ambientIntensity.
    TwoSidedMaterial setBackAmbientIntensity​(float newValue)
    Accessor method to assign float value to inputOutput SFFloat field named backAmbientIntensity.
    TwoSidedMaterial setBackDiffuseColor​(float[] newValue)
    Accessor method to assign 3-tuple float array using RGB values [0..1] to inputOutput SFColor field named backDiffuseColor.
    TwoSidedMaterial setBackEmissiveColor​(float[] newValue)
    Accessor method to assign 3-tuple float array using RGB values [0..1] to inputOutput SFColor field named backEmissiveColor.
    TwoSidedMaterial setBackShininess​(float newValue)
    Accessor method to assign float value to inputOutput SFFloat field named backShininess.
    TwoSidedMaterial setBackSpecularColor​(float[] newValue)
    Accessor method to assign 3-tuple float array using RGB values [0..1] to inputOutput SFColor field named backSpecularColor.
    TwoSidedMaterial setBackTransparency​(float newValue)
    Accessor method to assign float value to inputOutput SFFloat field named backTransparency.
    TwoSidedMaterial setDiffuseColor​(float[] newValue)
    Accessor method to assign 3-tuple float array using RGB values [0..1] to inputOutput SFColor field named diffuseColor.
    TwoSidedMaterial setEmissiveColor​(float[] newValue)
    Accessor method to assign 3-tuple float array using RGB values [0..1] to inputOutput SFColor field named emissiveColor.
    TwoSidedMaterial setMetadata​(X3DMetadataObject newValue)
    Accessor method to assign X3DMetadataObject instance (using a properly typed node) to inputOutput SFNode field metadata.
    TwoSidedMaterial setSeparateBackColor​(boolean newValue)
    Accessor method to assign boolean value to inputOutput SFBool field named separateBackColor.
    TwoSidedMaterial setShininess​(float newValue)
    Accessor method to assign float value to inputOutput SFFloat field named shininess.
    TwoSidedMaterial setSpecularColor​(float[] newValue)
    Accessor method to assign 3-tuple float array using RGB values [0..1] to inputOutput SFColor field named specularColor.
    TwoSidedMaterial setTransparency​(float newValue)
    Accessor method to assign float value to inputOutput SFFloat field named transparency.
  • Method Details

    • getAmbientIntensity

      float getAmbientIntensity()
      Provide float value within allowed range of [0,1] from inputOutput SFFloat field named ambientIntensity.

      Tooltip: [0,1] how much ambient omnidirectional light is reflected from all light sources. Interchange profile hint: this field may be ignored, applying the default value regardless. *
      Returns:
      value of ambientIntensity field
    • setAmbientIntensity

      TwoSidedMaterial setAmbientIntensity​(float newValue)
      Accessor method to assign float value to inputOutput SFFloat field named ambientIntensity.

      Tooltip: [0,1] how much ambient omnidirectional light is reflected from all light sources. Interchange profile hint: this field may be ignored, applying the default value regardless. *
      Parameters:
      newValue - is new value for the ambientIntensity field.
      Returns:
      TwoSidedMaterial - namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).
    • getBackAmbientIntensity

      float getBackAmbientIntensity()
      Provide float value within allowed range of [0,1] from inputOutput SFFloat field named backAmbientIntensity.

      Tooltip: [0,1] how much ambient omnidirectional light is reflected from all light sources. Interchange profile hint: this field may be ignored, applying the default value regardless. *
      Returns:
      value of backAmbientIntensity field
    • setBackAmbientIntensity

      TwoSidedMaterial setBackAmbientIntensity​(float newValue)
      Accessor method to assign float value to inputOutput SFFloat field named backAmbientIntensity.

      Tooltip: [0,1] how much ambient omnidirectional light is reflected from all light sources. Interchange profile hint: this field may be ignored, applying the default value regardless. *
      Parameters:
      newValue - is new value for the backAmbientIntensity field.
      Returns:
      TwoSidedMaterial - namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).
    • getBackDiffuseColor

      float[] getBackDiffuseColor()
      Provide array of 3-tuple float results using RGB values [0..1] using RGB values [0..1] from inputOutput SFColor field named backDiffuseColor.

      Tooltip: [0,1] how much direct, angle-dependent light is reflected from all light sources.
      • Hint: only emissiveColor affects IndexedLineSet, LineSet and PointSet.
      Returns:
      value of backDiffuseColor field
    • setBackDiffuseColor

      TwoSidedMaterial setBackDiffuseColor​(float[] newValue)
      Accessor method to assign 3-tuple float array using RGB values [0..1] to inputOutput SFColor field named backDiffuseColor.

      Tooltip: [0,1] how much direct, angle-dependent light is reflected from all light sources.
      • Hint: only emissiveColor affects IndexedLineSet, LineSet and PointSet.
      Parameters:
      newValue - is new value for the backDiffuseColor field.
      Returns:
      TwoSidedMaterial - namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).
    • getBackEmissiveColor

      float[] getBackEmissiveColor()
      Provide array of 3-tuple float results using RGB values [0..1] using RGB values [0..1] from inputOutput SFColor field named backEmissiveColor.

      Tooltip: [0,1] how much glowing light is emitted from this object.
      • Hint: emissiveColors glow even when all lights are off.
      • Hint: reset diffuseColor from default (.8 .8 .8) to (0 0 0) to avoid washout.
      • Hint: only emissiveColor affects IndexedLineSet, LineSet and PointSet.
      • Warning: bright emissiveColor values can wash out other colors and some textures.
      Returns:
      value of backEmissiveColor field
    • setBackEmissiveColor

      TwoSidedMaterial setBackEmissiveColor​(float[] newValue)
      Accessor method to assign 3-tuple float array using RGB values [0..1] to inputOutput SFColor field named backEmissiveColor.

      Tooltip: [0,1] how much glowing light is emitted from this object.
      • Hint: emissiveColors glow even when all lights are off.
      • Hint: reset diffuseColor from default (.8 .8 .8) to (0 0 0) to avoid washout.
      • Hint: only emissiveColor affects IndexedLineSet, LineSet and PointSet.
      • Warning: bright emissiveColor values can wash out other colors and some textures.
      Parameters:
      newValue - is new value for the backEmissiveColor field.
      Returns:
      TwoSidedMaterial - namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).
    • getBackShininess

      float getBackShininess()
      Provide float value within allowed range of [0,1] from inputOutput SFFloat field named backShininess.

      Tooltip: [0,1] Lower shininess values provide soft specular glows, while higher values result in sharper, smaller highlights. Interchange profile hint: this field may be ignored, applying the default value regardless. *
      Returns:
      value of backShininess field
    • setBackShininess

      TwoSidedMaterial setBackShininess​(float newValue)
      Accessor method to assign float value to inputOutput SFFloat field named backShininess.

      Tooltip: [0,1] Lower shininess values provide soft specular glows, while higher values result in sharper, smaller highlights. Interchange profile hint: this field may be ignored, applying the default value regardless. *
      Parameters:
      newValue - is new value for the backShininess field.
      Returns:
      TwoSidedMaterial - namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).
    • getBackSpecularColor

      float[] getBackSpecularColor()
      Provide array of 3-tuple float results using RGB values [0..1] using RGB values [0..1] from inputOutput SFColor field named backSpecularColor.

      Tooltip: [0,1] specular highlights are brightness reflections (example: shiny spots on an apple). Interchange profile hint: this field may be ignored, applying the default value regardless. *
      Returns:
      value of backSpecularColor field
    • setBackSpecularColor

      TwoSidedMaterial setBackSpecularColor​(float[] newValue)
      Accessor method to assign 3-tuple float array using RGB values [0..1] to inputOutput SFColor field named backSpecularColor.

      Tooltip: [0,1] specular highlights are brightness reflections (example: shiny spots on an apple). Interchange profile hint: this field may be ignored, applying the default value regardless. *
      Parameters:
      newValue - is new value for the backSpecularColor field.
      Returns:
      TwoSidedMaterial - namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).
    • getBackTransparency

      float getBackTransparency()
      Provide float value within allowed range of [0,1] from inputOutput SFFloat field named backTransparency.

      Tooltip: [0,1] how "clear" an object is: 1.0 is completely transparent, 0.0 is completely opaque. Interchange profile hint: transparency < .5 opaque, transparency > .5 transparent. *
      Returns:
      value of backTransparency field
    • setBackTransparency

      TwoSidedMaterial setBackTransparency​(float newValue)
      Accessor method to assign float value to inputOutput SFFloat field named backTransparency.

      Tooltip: [0,1] how "clear" an object is: 1.0 is completely transparent, 0.0 is completely opaque. Interchange profile hint: transparency < .5 opaque, transparency > .5 transparent. *
      Parameters:
      newValue - is new value for the backTransparency field.
      Returns:
      TwoSidedMaterial - namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).
    • getDiffuseColor

      float[] getDiffuseColor()
      Provide array of 3-tuple float results using RGB values [0..1] using RGB values [0..1] from inputOutput SFColor field named diffuseColor.

      Tooltip: [0,1] how much direct, angle-dependent light is reflected from all light sources.
      • Hint: only emissiveColor affects IndexedLineSet, LineSet and PointSet.
      Returns:
      value of diffuseColor field
    • setDiffuseColor

      TwoSidedMaterial setDiffuseColor​(float[] newValue)
      Accessor method to assign 3-tuple float array using RGB values [0..1] to inputOutput SFColor field named diffuseColor.

      Tooltip: [0,1] how much direct, angle-dependent light is reflected from all light sources.
      • Hint: only emissiveColor affects IndexedLineSet, LineSet and PointSet.
      Parameters:
      newValue - is new value for the diffuseColor field.
      Returns:
      TwoSidedMaterial - namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).
    • getEmissiveColor

      float[] getEmissiveColor()
      Provide array of 3-tuple float results using RGB values [0..1] using RGB values [0..1] from inputOutput SFColor field named emissiveColor.

      Tooltip: [0,1] how much glowing light is emitted from this object.
      • Hint: emissiveColors glow even when all lights are off.
      • Hint: reset diffuseColor from default (.8 .8 .8) to (0 0 0) to avoid washout.
      • Hint: only emissiveColor affects IndexedLineSet, LineSet and PointSet.
      • Warning: bright emissiveColor values can wash out other colors and some textures.
      Returns:
      value of emissiveColor field
    • setEmissiveColor

      TwoSidedMaterial setEmissiveColor​(float[] newValue)
      Accessor method to assign 3-tuple float array using RGB values [0..1] to inputOutput SFColor field named emissiveColor.

      Tooltip: [0,1] how much glowing light is emitted from this object.
      • Hint: emissiveColors glow even when all lights are off.
      • Hint: reset diffuseColor from default (.8 .8 .8) to (0 0 0) to avoid washout.
      • Hint: only emissiveColor affects IndexedLineSet, LineSet and PointSet.
      • Warning: bright emissiveColor values can wash out other colors and some textures.
      Parameters:
      newValue - is new value for the emissiveColor field.
      Returns:
      TwoSidedMaterial - namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).
    • getMetadata

      X3DMetadataObject getMetadata()
      Provide X3DMetadataObject instance (using a properly typed node) from inputOutput SFNode field metadata.
      Specified by:
      getMetadata in interface X3DAppearanceChildNode
      Specified by:
      getMetadata in interface X3DMaterialNode
      Specified by:
      getMetadata in interface X3DNode
      Returns:
      value of metadata field
      See Also:
      X3D Scene Authoring Hints: Metadata Nodes
    • setMetadata

      TwoSidedMaterial setMetadata​(X3DMetadataObject newValue)
      Accessor method to assign X3DMetadataObject instance (using a properly typed node) to inputOutput SFNode field metadata.
      Specified by:
      setMetadata in interface X3DAppearanceChildNode
      Specified by:
      setMetadata in interface X3DMaterialNode
      Specified by:
      setMetadata in interface X3DNode
      Parameters:
      newValue - is new value for the metadata field.
      Returns:
      TwoSidedMaterial - namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).
      See Also:
      X3D Scene Authoring Hints: Metadata Nodes
    • getSeparateBackColor

      boolean getSeparateBackColor()
      Provide boolean value from inputOutput SFBool field named separateBackColor.

      Tooltip: separateBackColor determines whether separate Material values are used for back faces.
      • Warning: backface Material values are ignored unless you set separateBackColor='true'.
      Returns:
      value of separateBackColor field
    • setSeparateBackColor

      TwoSidedMaterial setSeparateBackColor​(boolean newValue)
      Accessor method to assign boolean value to inputOutput SFBool field named separateBackColor.

      Tooltip: separateBackColor determines whether separate Material values are used for back faces.
      • Warning: backface Material values are ignored unless you set separateBackColor='true'.
      Parameters:
      newValue - is new value for the separateBackColor field.
      Returns:
      TwoSidedMaterial - namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).
    • getShininess

      float getShininess()
      Provide float value within allowed range of [0,1] from inputOutput SFFloat field named shininess.

      Tooltip: [0,1] Lower shininess values provide soft specular glows, while higher values result in sharper, smaller highlights. Interchange profile hint: this field may be ignored, applying the default value regardless. *
      Returns:
      value of shininess field
    • setShininess

      TwoSidedMaterial setShininess​(float newValue)
      Accessor method to assign float value to inputOutput SFFloat field named shininess.

      Tooltip: [0,1] Lower shininess values provide soft specular glows, while higher values result in sharper, smaller highlights. Interchange profile hint: this field may be ignored, applying the default value regardless. *
      Parameters:
      newValue - is new value for the shininess field.
      Returns:
      TwoSidedMaterial - namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).
    • getSpecularColor

      float[] getSpecularColor()
      Provide array of 3-tuple float results using RGB values [0..1] using RGB values [0..1] from inputOutput SFColor field named specularColor.

      Tooltip: [0,1] specular highlights are brightness reflections (example: shiny spots on an apple). Interchange profile hint: this field may be ignored, applying the default value regardless. *
      Returns:
      value of specularColor field
    • setSpecularColor

      TwoSidedMaterial setSpecularColor​(float[] newValue)
      Accessor method to assign 3-tuple float array using RGB values [0..1] to inputOutput SFColor field named specularColor.

      Tooltip: [0,1] specular highlights are brightness reflections (example: shiny spots on an apple). Interchange profile hint: this field may be ignored, applying the default value regardless. *
      Parameters:
      newValue - is new value for the specularColor field.
      Returns:
      TwoSidedMaterial - namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).
    • getTransparency

      float getTransparency()
      Provide float value within allowed range of [0,1] from inputOutput SFFloat field named transparency.

      Tooltip: [0,1] how "clear" an object is: 1.0 is completely transparent, 0.0 is completely opaque. Interchange profile hint: transparency < .5 opaque, transparency > .5 transparent. *
      Returns:
      value of transparency field
    • setTransparency

      TwoSidedMaterial setTransparency​(float newValue)
      Accessor method to assign float value to inputOutput SFFloat field named transparency.

      Tooltip: [0,1] how "clear" an object is: 1.0 is completely transparent, 0.0 is completely opaque. Interchange profile hint: transparency < .5 opaque, transparency > .5 transparent. *
      Parameters:
      newValue - is new value for the transparency field.
      Returns:
      TwoSidedMaterial - namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).