Package com.luciad.maps.effects
Class EyeDomeLightingEffect
java.lang.Object
com.luciad.maps.effects.EyeDomeLightingEffect
- All Implemented Interfaces:
AutoCloseable
This class implements the Eye-dome lighting (EDL) effect, a non-photorealistic lighting model which helps accentuate the shapes of different objects to improve depth perception, by shading their outlines.
The lighting model applies a shade to each pixel, based on the depth difference between that pixel and its surrounding pixels. Its parameters are held by an immutable EyeDomeLightingModel. Read them with getModel and change them by building a new model and passing it to setModel.
Note that Eye-dome lighting is only applied in 3D views.
You cannot create an EyeDomeLightingEffect. Instead, you can retrieve it from GraphicsEffects#getEyeDomeLighting.
-
Method Summary
Modifier and TypeMethodDescriptionvoidclose()protected voidfinalize()getModel()Returns the eye-dome lighting model.booleanReturns whether the Eye-dome lighting effect is enabled.voidsetEnabled(boolean enabled) Sets whether the Eye-dome lighting effect is enabled.voidsetModel(EyeDomeLightingModel model) Sets the eye-dome lighting model.
-
Method Details
-
finalize
protected void finalize() -
close
public void close()- Specified by:
closein interfaceAutoCloseable
-
isEnabled
public boolean isEnabled()Returns whether the Eye-dome lighting effect is enabled.- Returns:
- whether the Eye-dome lighting effect is enabled.
-
setEnabled
public void setEnabled(boolean enabled) Sets whether the Eye-dome lighting effect is enabled.The default is false.
- Parameters:
enabled- true to enable the Eye-dome lighting effect or false to disable it.
-
getModel
Returns the eye-dome lighting model.- Returns:
- the eye-dome lighting model.
-
setModel
Sets the eye-dome lighting model.- Parameters:
model- the eye-dome lighting model.- Throws:
NullPointerException- when the model is anullvalue.
-