Class HeadlightModel.Builder

java.lang.Object
com.luciad.maps.effects.HeadlightModel.Builder
All Implemented Interfaces:
AutoCloseable
Enclosing class:
HeadlightModel

public static final class HeadlightModel.Builder extends Object implements AutoCloseable
Since:
2026.1
  • Constructor Details

    • Builder

      public Builder(@NotNull HeadlightModel.Builder other)
      Copy constructor.
      Parameters:
      other - the builder to copy.
  • Method Details

    • finalize

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

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

      @NotNull public HeadlightModel.Builder ambientColor(@NotNull android.graphics.Color color)
      Sets the ambient color of the light.

      The default is a dark gray (64, 64, 64).

      Parameters:
      color - the ambient color of the light.
      Returns:
      this builder.
    • diffuseColor

      @NotNull public HeadlightModel.Builder diffuseColor(@NotNull android.graphics.Color color)
      Sets the diffuse color of the light.

      The default is white.

      Parameters:
      color - the diffuse color of the light.
      Returns:
      this builder.
    • pitchOffset

      @NotNull public HeadlightModel.Builder pitchOffset(@Nullable Double pitchOffset)
      Sets the fixed vertical orientation of the light in degrees.

      Pass null to have the light follow the camera's pitch exactly instead of using a fixed angle. The default is -45 degrees.

      Parameters:
      pitchOffset - the pitch offset in degrees, or null to follow the camera's pitch.
      Returns:
      this builder.
    • build

      @NotNull public HeadlightModel build()
      Builds the headlight.
      Returns:
      the built headlight.