Package com.luciad.maps.effects
Class EyeDomeLightingModel
java.lang.Object
com.luciad.maps.effects.EyeDomeLightingModel
- All Implemented Interfaces:
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
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionCreates a builder pre-filled with this model's parameters.voidclose()booleanprotected voidfinalize()android.graphics.ColorgetColor()Returns the color of the shade.doubleReturns the shading multiplication factor.longReturns the number of surrounding pixels taken into account by the EDL model.inthashCode()static EyeDomeLightingModel.BuilderCreates a new builder with the default eye-dome lighting parameters.
-
Method Details
-
finalize
protected void finalize() -
close
public void close()- Specified by:
closein interfaceAutoCloseable
-
newBuilder
Creates a new builder with the default eye-dome lighting parameters.- Returns:
- a new 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() -
equals
-