Package com.luciad.maps.effects
Class HeadlightModel
java.lang.Object
com.luciad.maps.effects.LightModel
com.luciad.maps.effects.HeadlightModel
- All Implemented Interfaces:
AutoCloseable
Light that follows the orientation of the viewer.
In a 3D view, the light follows the azimuth from the eye point to the reference point of the camera. The vertical orientation of the camera does not affect the direction of the headlight. Instead, getPitchOffset is used, unless the pitch offset is null, in which case the light follows the camera's pitch exactly.
This is the default light.
- Since:
- 2026.1
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionCreates a builder pre-filled with this light's parameters.voidclose()booleanprotected voidfinalize()android.graphics.ColorReturns the ambient color of the light.android.graphics.ColorReturns the diffuse color of the light.Returns the pitch offset in degrees, ornullto follow the camera's pitch.inthashCode()static HeadlightModel.BuilderCreates a new builder with the default headlight parameters.
-
Method Details
-
finalize
protected void finalize()- Overrides:
finalizein classLightModel
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Overrides:
closein classLightModel
-
newBuilder
Creates a new builder with the default headlight parameters.- Returns:
- a new 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.
-
getPitchOffset
Returns the pitch offset in degrees, ornullto follow the camera's pitch.The pitch offset is the fixed vertical orientation of the light.
- Returns:
- the pitch offset in degrees, or
nullto follow the camera's pitch.
-
hashCode
public int hashCode() -
equals
-