Class DirectionalLightModel

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

public final class DirectionalLightModel extends LightModel implements AutoCloseable
Light with a fixed, user-specified direction.
Since:
2026.1
  • Method Details

    • finalize

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

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

      @NotNull public static DirectionalLightModel.Builder newBuilder()
      Creates a new builder with the default directional-light parameters.

      The direction is mandatory and must still be set.

      Returns:
      a new builder.
    • asBuilder

      @NotNull public DirectionalLightModel.Builder asBuilder()
      Creates a builder pre-filled with this light's parameters.
      Returns:
      a builder pre-filled with this light's parameters.
    • getAmbientColor

      @NotNull public android.graphics.Color getAmbientColor()
      Returns the ambient color of the light.
      Returns:
      the ambient color of the light.
    • getDiffuseColor

      @NotNull public android.graphics.Color getDiffuseColor()
      Returns the diffuse color of the light.
      Returns:
      the diffuse color of the light.
    • getDirection

      @NotNull public Coordinate getDirection()
      Returns the vector pointing towards the light source.
      Returns:
      the vector pointing towards the light source.
    • hashCode

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

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