Class LineOfSightLayer

java.lang.Object
com.luciad.layers.Layer
com.luciad.layers.los.LineOfSightLayer
All Implemented Interfaces:
AutoCloseable

public final class LineOfSightLayer extends Layer implements AutoCloseable
A layer for feature models containing line-of-sight (LOS) features.

Such a feature represents an observer with some additional properties which together define a line-of-sight coverage.

Use LineOfSightLayer#newBuilder to create a line-of-sight layer instance.

Since:
2025.0
See Also:
  • Field Details

    • PropertyLineOfSightStyle

      public static final String PropertyLineOfSightStyle
      Property name for the LayerEvent that is fired as a result of changing the layer's style.
      See Also:
  • Method Details

    • finalize

      protected void finalize()
      Overrides:
      finalize in class Layer
    • close

      public void close()
      Specified by:
      close in interface AutoCloseable
      Overrides:
      close in class Layer
    • newBuilder

      @NotNull public static LineOfSightLayer.Builder newBuilder()
      Returns the new builder for creating a LineOfSightLayer.
      Returns:
      the new builder for creating a LineOfSightLayer.
    • asBuilder

      @NotNull public LineOfSightLayer.Builder asBuilder()
      Returns a new builder based on this layer instance.

      You can use this builder, for example, to create a copy of this layer.

      Note that observers will not be transferred to a new layer.

      Returns:
      a new builder based on this layer instance.
      Since:
      2025.0
    • getModel

      @NotNull public IFeatureModel getModel()
      Returns the layer's model, which provides the line-of-sight features to be presented.

      Such a feature represents an observer with some additional properties which together define a line-of-sight coverage.

      Returns:
      the layer's model, which provides the line-of-sight features to be presented.
      See Also:
    • getLineOfSightStyle

      @NotNull public LineOfSightStyle getLineOfSightStyle()
      Returns the line-of-sight style used for painting this layer.
      Returns:
      the style of this layer.
    • setLineOfSightStyle

      public void setLineOfSightStyle(@NotNull LineOfSightStyle losStyle)
      Sets the line-of-sight style used for painting this layer.

      If the new line-of-sight style is different from the old one, a LayerEvent is delivered to the observers with the property name propertyLineOfSightStyle.

      Parameters:
      losStyle - the new line-of-sight style.
    • hashCode

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

      public boolean equals(@Nullable Object other)
      Overrides:
      equals in class Object