Class EyeDomeLightingModel

java.lang.Object
com.luciad.maps.effects.EyeDomeLightingModel
All Implemented Interfaces:
AutoCloseable

public final class EyeDomeLightingModel extends Object implements AutoCloseable
Immutable set of parameters that describe the EyeDomeLightingEffect, a non-photorealistic lighting model which accentuates the shapes of objects by shading their outlines.

This eye-dome lighting (EDL) model uses 3 parameters:

  • the window parameter defines how many surrounding pixels must be taken into account.
  • the strength parameter is a factor to multiply with the shading that is applied to the image.
  • the color parameter defines what color the shade will have.

Create one with EyeDomeLightingModel#newBuilder, or start from an existing model with asBuilder, and apply it with EyeDomeLightingEffect#setModel.

Since:
2026.1
  • Method Details

    • finalize

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

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

      @NotNull public static EyeDomeLightingModel.Builder newBuilder()
      Creates a new builder with the default eye-dome lighting parameters.
      Returns:
      a new builder.
    • asBuilder

      @NotNull public EyeDomeLightingModel.Builder asBuilder()
      Creates a builder pre-filled with this model's parameters.
      Returns:
      a builder pre-filled with this model's parameters.
    • getWindow

      public long getWindow()
      Returns the number of surrounding pixels taken into account by the EDL model.
      Returns:
      the number of surrounding pixels taken into account by the EDL model.
    • getStrength

      public double getStrength()
      Returns the shading multiplication factor.
      Returns:
      the shading multiplication factor.
    • getColor

      @NotNull public android.graphics.Color getColor()
      Returns the color of the shade.
      Returns:
      the color of the shade.
    • hashCode

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

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