Class TLcd3DMeshStyle

java.lang.Object
com.luciad.format.object3d.TLcd3DMeshStyle
All Implemented Interfaces:
ILcd3DMeshStyle

public class TLcd3DMeshStyle extends Object implements ILcd3DMeshStyle
Default implementation of ILcd3DMeshStyle.
  • Constructor Details

    • TLcd3DMeshStyle

      public TLcd3DMeshStyle()
      Constructs a new mesh style with sensible default values.
      • Ambient, specular and emissive: black
      • Diffuse: white
      • Shininess: zero
      • Texture source name: null
      • Transparent: false
      • Double-sided: false
  • Method Details

    • getAmbientColor

      public Color getAmbientColor()
      Description copied from interface: ILcd3DMeshStyle
      Returns the ambient color of this style. If the ambient color is unknown, returns Color.BLACK.
      Specified by:
      getAmbientColor in interface ILcd3DMeshStyle
      Returns:
      the ambient color of this style
    • setAmbientColor

      public void setAmbientColor(Color aAmbientColor)
      Sets the ambient color of this style.
      Parameters:
      aAmbientColor - a Color
      See Also:
    • getDiffuseColor

      public Color getDiffuseColor()
      Description copied from interface: ILcd3DMeshStyle
      Returns the diffuse color of this style. If the diffuse color is unknown, returns Color.WHITE.
      Specified by:
      getDiffuseColor in interface ILcd3DMeshStyle
      Returns:
      the diffuse color of this style
    • setDiffuseColor

      public void setDiffuseColor(Color aDiffuseColor)
      Sets the diffuse color of this style.
      Parameters:
      aDiffuseColor - a Color
      See Also:
    • getSpecularColor

      public Color getSpecularColor()
      Description copied from interface: ILcd3DMeshStyle
      Returns the specular color of this style. If the specular color is unknown, returns Color.BLACK.
      Specified by:
      getSpecularColor in interface ILcd3DMeshStyle
      Returns:
      the specular color of this style
    • setSpecularColor

      public void setSpecularColor(Color aSpecularColor)
      Sets the specular color of this style.
      Parameters:
      aSpecularColor - a Color
      See Also:
    • getEmissiveColor

      public Color getEmissiveColor()
      Description copied from interface: ILcd3DMeshStyle
      Returns the emissive color of this style. If the emissive color is unknown, returns Color.BLACK.
      Specified by:
      getEmissiveColor in interface ILcd3DMeshStyle
      Returns:
      the emissive color of this style
    • setEmissiveColor

      public void setEmissiveColor(Color aEmissiveColor)
      Sets the emissive color of this style.
      Parameters:
      aEmissiveColor - a Color
      See Also:
    • getShininess

      public double getShininess()
      Description copied from interface: ILcd3DMeshStyle
      Returns the specular exponent of this style. The value must lie between 0 and 128, inclusive. If the specular exponent is unknown, returns zero.
      Specified by:
      getShininess in interface ILcd3DMeshStyle
      Returns:
      the specular exponent of this style
    • setShininess

      public void setShininess(double aShininess)
      Sets the specular exponent of this style. The value must lie between 0 and 128, inclusive.
      Parameters:
      aShininess - the specular exponent
      See Also:
    • isTransparent

      public boolean isTransparent()
      Description copied from interface: ILcd3DMeshStyle
      Returns true if this style is transparent.
      Specified by:
      isTransparent in interface ILcd3DMeshStyle
      Returns:
      true if this style is transparent
    • setTransparent

      public void setTransparent(boolean aTransparent)
      Specifies whether or not this style requires transparency.
      Parameters:
      aTransparent - true if this style is transparent
      See Also:
    • getTextureSourceName

      public String getTextureSourceName()
      Description copied from interface: ILcd3DMeshStyle
      Returns the path to a texture map for this style, or null if no texture is present.
      Specified by:
      getTextureSourceName in interface ILcd3DMeshStyle
      Returns:
      the path to a texture map for this style
    • setTextureSourceName

      public void setTextureSourceName(String aTextureSourceName)
      Sets the name of the texture image to be used with this style.
      Parameters:
      aTextureSourceName - the name of a texture image
      See Also:
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • isDoubleSided

      public boolean isDoubleSided()
      return true if the style is double sided. If true, back-face culling is disabled during rendering of the ILcdStyled3DMesh.
      Returns:
      true if the style is double sided.
    • setDoubleSided

      public void setDoubleSided(boolean aDoubleSided)
      Specifies whether or not the style is double sided.
      Parameters:
      aDoubleSided - true if the style is double sided.
      See Also: