Package com.luciad.maps.effects
Class AmbientOcclusionModel.Builder
java.lang.Object
com.luciad.maps.effects.AmbientOcclusionModel.Builder
- All Implemented Interfaces:
AutoCloseable
- Enclosing class:
AmbientOcclusionModel
Builder for an AmbientOcclusionModel.- Since:
- 2026.1
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the ambient-occlusion model.voidclose()protected voidfinalize()performanceHint(PerformanceHint performanceHint) Sets the performance hint that indicates if Ambient Occlusion should prioritize the quality or the rendering performance of the effect.power(double power) Sets the power factor which determines how strongly the effect is applied to the view.radius(double radius) Sets the radius in meters at which the effect is sampled.
-
Constructor Details
-
Builder
Copy constructor.- Parameters:
other- the builder to copy.
-
-
Method Details
-
finalize
protected void finalize() -
close
public void close()- Specified by:
closein interfaceAutoCloseable
-
radius
Sets the radius in meters at which the effect is sampled.A lower value produces sharper results, while higher values produce softer results. The default is 30.
- Parameters:
radius- radius in meters at which the effect should be sampled. Must be non-negative.- Returns:
- this builder.
- Throws:
IllegalArgumentException- when the radius is negative.
-
power
Sets the power factor which determines how strongly the effect is applied to the view.The power factor determines how much to brighten or darken the effect. Values should be a positive floating point number, generally between 0 and 5. Higher values are accepted, but not recommended. The default is 1.
- Parameters:
power- factor to brighten or darken the effect. Must be non-negative.- Returns:
- this builder.
- Throws:
IllegalArgumentException- when the power is negative.
-
performanceHint
@NotNull public AmbientOcclusionModel.Builder performanceHint(@NotNull PerformanceHint performanceHint) Sets the performance hint that indicates if Ambient Occlusion should prioritize the quality or the rendering performance of the effect.The default is
PerformanceHint#PreferPerformance.- Parameters:
performanceHint- indicates if Ambient Occlusion should prioritize quality or performance.- Returns:
- this builder.
-
build
Builds the ambient-occlusion model.- Returns:
- the built ambient-occlusion model.
-