Class TLsp3DMeshStyle.Builder<B extends TLsp3DMeshStyle.Builder<B>>

java.lang.Object
com.luciad.view.lightspeed.style.ALspStyle.Builder<B>
com.luciad.view.lightspeed.style.TLsp3DMeshStyle.Builder<B>
All Implemented Interfaces:
ILspEffectsHintStyle.Builder
Enclosing class:
TLsp3DMeshStyle

public static final class TLsp3DMeshStyle.Builder<B extends TLsp3DMeshStyle.Builder<B>> extends ALspStyle.Builder<B> implements ILspEffectsHintStyle.Builder
Builder for 3D mesh styles.
Since:
2017.1
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • transparent

      public B transparent(boolean aTransparent)
      Sets whether or not the mesh is transparent.
      Parameters:
      aTransparent - whether or not the mesh is transparent
      Returns:
      this
      See Also:
    • opacity

      public B opacity(float aOpacity)
      Sets the opacity (alpha) value of the modulation color for the 3D mesh.
      Parameters:
      aOpacity - the alpha value. Must be contained in the [0,1] interval (0 is fully transparent, 1 is fully opaque).
      Returns:
      this
      See Also:
    • modulationColor

      public B modulationColor(Color aColor)
      Sets the color that is modulated with the 3D mesh. For example using an mesh with gray-scale colors and a red modulation color will result in a resulting painted icon with red hues. The alpha value of the color is also used to determine the opacity of the mesh.

      Using a white color has no effect.

      Note: If an opacity was set on this builder before it will be overwritten by the opacity of this color.
      Parameters:
      aColor - the modulation color
      Returns:
      this
      See Also:
    • effectsHints

      public B effectsHints(ILspEffectsHintStyle.EffectsHint... aEffectsHints)
      Description copied from interface: ILspEffectsHintStyle.Builder
      Specifies the effects hints to be added to the style.
      Specified by:
      effectsHints in interface ILspEffectsHintStyle.Builder
      Parameters:
      aEffectsHints - the effects hints to be added to the style
      Returns:
      this
    • all

      public B all(ALspStyle aStyle)
      Sets all builder parameters to the properties of the provided style.
      Specified by:
      all in class ALspStyle.Builder<B extends TLsp3DMeshStyle.Builder<B>>
      Parameters:
      aStyle - the style to copy
      Returns:
      this
    • build

      public TLsp3DMeshStyle build()
      Builds the resulting 3D mesh style.
      Specified by:
      build in class ALspStyle.Builder<B extends TLsp3DMeshStyle.Builder<B>>
      Returns:
      the resulting 3D mesh style using the set parameters