Class TLspLOSCoverageStyle.Builder<B extends TLspLOSCoverageStyle.Builder<B>>

java.lang.Object
com.luciad.view.lightspeed.style.ALspStyle.Builder<B>
com.luciad.tea.lightspeed.los.view.TLspLOSCoverageStyle.Builder<B>
All Implemented Interfaces:
ILspEffectsHintStyle.Builder, ILspWorldElevationStyle.Builder
Enclosing class:
TLspLOSCoverageStyle

public static class TLspLOSCoverageStyle.Builder<B extends TLspLOSCoverageStyle.Builder<B>> extends ALspStyle.Builder<B> implements ILspWorldElevationStyle.Builder, ILspEffectsHintStyle.Builder

Builder for LOS coverage styles. The default LOS Coverage Style is painted above the ellipsoid and has a color map that is defined as follows:

  • Unknown values are blue
  • Invisible values (for all elevations) are completely transparent (r=0, g=0, b=0, a=0)
  • Points in red areas need a minimum height of 0 metres to be visible
  • Points in orange areas need a minimum height of 50 metres to be visible
  • Points in yellow areas need a minimum height of 150 metres to be visible
  • Points in green areas need a minimum height of 250 metres or more to be visible

Since:
2012.0
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • zOrder

      public B zOrder(int aZOrder)
      Sets the Z-order of this style. Styles should be painted from lowest to highest Z-order.

      Increasing the number of different Z-orders can negatively impact painting performance. By default, it is set to 0.

      Parameters:
      aZOrder - the z order
      Returns:
      this
      Since:
      2017.1.01
    • colorMap

      public B colorMap(TLcdColorMap aColorMap)
      Sets the color map. Should not be null.

      This color map should be defined with levels in the range [-32768, 32767]. Note that even though the given color map also, technically, can define colors for the invisible and unknown values, the colors for these values should be configured using the invisibleColor and unknownColor method respectively. For color maps that explicitly contain the unknown value an exception is made and thus will override the configured unknown color.

      Parameters:
      aColorMap - the color map
      Returns:
      this
      Throws:
      IllegalArgumentException - if aColorMap==null
    • unknownColor

      public B unknownColor(Color aUnknownColor)
      Sets the "unknown" value color, for LOS coverages of which the outcome could not be determined. Should not be null
      Parameters:
      aUnknownColor - a color for the "unknown" LOS value.
      Returns:
      this
      Throws:
      IllegalArgumentException - if aColor==null
    • invisibleColor

      public B invisibleColor(Color aInvisibleColor)
      Sets the "invisible" value color, for LOS coverages of which points are invisible for all elevations. Should not be null
      Parameters:
      aInvisibleColor - a color for the "unknown" LOS value.
      Returns:
      this
      Throws:
      IllegalArgumentException - if aColor==null
    • elevationMode

      public B elevationMode(ILspWorldElevationStyle.ElevationMode aElevationMode)
      Specifies the elevation mode. By default this is set to ILspWorldElevationStyle.ElevationMode.ABOVE_ELLIPSOID.
      Specified by:
      elevationMode in interface ILspWorldElevationStyle.Builder
      Parameters:
      aElevationMode - The elevation mode
      Returns:
      this
    • 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 aLOScoverageStyle)
      Sets all parameters on the builder based on the given LOS Coverage style.

      This is useful for example to create a new style that has almost all properties equal to another style.

      Specified by:
      all in class ALspStyle.Builder<B extends TLspLOSCoverageStyle.Builder<B>>
      Parameters:
      aLOScoverageStyle - the style to copy from
      Returns:
      this
    • build

      public TLspLOSCoverageStyle build()
      Builds the style with the set parameters.
      Specified by:
      build in class ALspStyle.Builder<B extends TLspLOSCoverageStyle.Builder<B>>
      Returns:
      the resulting style
    • toString

      public String toString()
      Overrides:
      toString in class Object