Class TLcd3DMeshStyleBuilder

java.lang.Object
com.luciad.format.object3d.TLcd3DMeshStyleBuilder

public class TLcd3DMeshStyleBuilder extends Object
A builder class for creating mesh styles.
Since:
10.1
See Also:
  • Constructor Details

    • TLcd3DMeshStyleBuilder

      public TLcd3DMeshStyleBuilder()
  • Method Details

    • build

      public ILcd3DMeshStyle build()
      Builds a 3D mesh style based on the current set of parameters.
      Returns:
      a 3D mesh style
      See Also:
    • ambient

      public TLcd3DMeshStyleBuilder ambient(Color aAmbientColor)
      Sets the ambient color of the style to be built.
      Parameters:
      aAmbientColor - a Color
      Returns:
      this builder
    • diffuse

      public TLcd3DMeshStyleBuilder diffuse(Color aDiffuseColor)
      Sets the diffuse color of the style to be built.
      Parameters:
      aDiffuseColor - a Color
      Returns:
      this builder
    • specular

      public TLcd3DMeshStyleBuilder specular(Color aSpecularColor)
      Sets the specular color of the style to be built.
      Parameters:
      aSpecularColor - a Color
      Returns:
      this builder
    • emissive

      public TLcd3DMeshStyleBuilder emissive(Color aEmissiveColor)
      Sets the emissive color of the style to be built.
      Parameters:
      aEmissiveColor - a Color
      Returns:
      this builder
    • shininess

      public TLcd3DMeshStyleBuilder shininess(double aShininess)
      Sets the specular exponent of the style to be built. The value must lie between 0 and 128, inclusive.
      Parameters:
      aShininess - the specular exponent
      Returns:
      this builder
    • transparent

      public TLcd3DMeshStyleBuilder transparent(boolean aTransparent)
      Specifies whether or not the style requires transparency.
      Parameters:
      aTransparent - true if this style is transparent
      Returns:
      this builder
    • textureSource

      public TLcd3DMeshStyleBuilder textureSource(String aTextureSourceName)
      Sets the source name of the texture image to be used with the style.
      Parameters:
      aTextureSourceName - the source name of a texture image
      Returns:
      this builder
    • doubleSided

      public TLcd3DMeshStyleBuilder doubleSided(boolean aDoubleSided)
      Specifies whether or not the style is double sided. If true, back-face culling is disabled during rendering of the ILcdStyled3DMesh with the built style.
      Parameters:
      aDoubleSided - aDoubleSided true if the style is double sided.
      Returns:
      this builder