Package com.luciad.maps.effects
Class HeadlightModel.Builder
java.lang.Object
com.luciad.maps.effects.HeadlightModel.Builder
- All Implemented Interfaces:
AutoCloseable
- Enclosing class:
HeadlightModel
Builder for a HeadlightModel.- Since:
- 2026.1
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionambientColor(android.graphics.Color color) Sets the ambient color of the light.build()Builds the headlight.voidclose()diffuseColor(android.graphics.Color color) Sets the diffuse color of the light.protected voidfinalize()pitchOffset(Double pitchOffset) Sets the fixed vertical orientation of the light in degrees.
-
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
-
ambientColor
Sets the ambient color of the light.The default is a dark gray (64, 64, 64).
- Parameters:
color- the ambient color of the light.- Returns:
- this builder.
-
diffuseColor
Sets the diffuse color of the light.The default is white.
- Parameters:
color- the diffuse color of the light.- Returns:
- this builder.
-
pitchOffset
Sets the fixed vertical orientation of the light in degrees.Pass
nullto have the light follow the camera's pitch exactly instead of using a fixed angle. The default is -45 degrees.- Parameters:
pitchOffset- the pitch offset in degrees, ornullto follow the camera's pitch.- Returns:
- this builder.
-
build
Builds the headlight.- Returns:
- the built headlight.
-