Package com.luciad.maps.effects
Class DirectionalLightModel
java.lang.Object
com.luciad.maps.effects.LightModel
com.luciad.maps.effects.DirectionalLightModel
- All Implemented Interfaces:
AutoCloseable
Light with a fixed, user-specified direction.
- 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 vector pointing towards the light source.inthashCode()Creates a new builder with the default directional-light 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 directional-light parameters.The direction is mandatory and must still be set.
- 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.
-
getDirection
Returns the vector pointing towards the light source.- Returns:
- the vector pointing towards the light source.
-
hashCode
public int hashCode() -
equals
-