Class ProjectedImagery.Builder
java.lang.Object
com.luciad.models.projectedimagery.ProjectedImagery.Builder
- All Implemented Interfaces:
AutoCloseable
- Enclosing class:
ProjectedImagery
Builder for constructing a ProjectedImagery.
The id, location and structure parameters are mandatory, and fovs is mandatory for a pinhole structure. The rotation parameter is optional, as is fovs for cubemap and equirectangular structures, which derive their coverage from the structure. Call build() to obtain the finished ProjectedImagery instance.
- Since:
- 2026.1
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Returns a newProjectedImagerybased on the properties set on this builder.voidclose()protected voidfinalize()fovs(double fovX, double fovY) Sets the horizontal and vertical fields of view of the camera, in degrees.Sets the stable identifier of the imagery.Sets the georeferenced location of the camera.rotation(double yaw, double pitch, double roll) Sets the rotation of the camera.structure(ProjectionStructure structure) Sets the structure describing the tile layout of the imagery.
-
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
-
build
Returns a newProjectedImagerybased on the properties set on this builder.- Returns:
- a new
ProjectedImageryinstance. - Throws:
IllegalStateException- if a mandatory parameter has not been set.
-
id
Sets the stable identifier of the imagery.This parameter is mandatory.
- Parameters:
id- the identifier.- Returns:
- this builder.
-
location
Sets the georeferenced location of the camera.This parameter is mandatory.
- Parameters:
location- the camera position as a georeferenced point.- Returns:
- this builder.
-
rotation
Sets the rotation of the camera.This parameter is optional. The default is no rotation (0, 0, 0).
- Parameters:
yaw- rotation around the vertical axis, in degrees.pitch- rotation around the lateral axis, in degrees. Positive values tilt the camera down.roll- rotation around the longitudinal axis, in degrees.- Returns:
- this builder.
-
fovs
Sets the horizontal and vertical fields of view of the camera, in degrees.Mandatory for a pinhole structure, which needs a field of view to define its frustum. Optional for cubemap and equirectangular structures, which derive their coverage from the structure. The default is (0, 0).
- Parameters:
fovX- the horizontal field of view, in degrees.fovY- the vertical field of view, in degrees.- Returns:
- this builder.
-
structure
Sets the structure describing the tile layout of the imagery.This parameter is mandatory.
- Parameters:
structure- the projection structure.- Returns:
- this builder.
-