Class ProjectedVideoModel.Builder

java.lang.Object
com.luciad.models.projectedimagery.ProjectedVideoModel.Builder
All Implemented Interfaces:
AutoCloseable
Enclosing class:
ProjectedVideoModel

public static final class ProjectedVideoModel.Builder extends Object implements AutoCloseable
Builder for ProjectedVideoModel.

The id, title and bounds parameters are all optional.

Since:
2026.1
  • Constructor Details

  • Method Details

    • finalize

      protected void finalize()
      Overrides:
      finalize in class Object
    • close

      public void close()
      Specified by:
      close in interface AutoCloseable
    • build

      @NotNull public ProjectedVideoModel build()
      Builds the model.
      Returns:
      the new model.
    • id

      @NotNull public ProjectedVideoModel.Builder id(@NotNull String id)
      Sets the identifier of the projection.

      The default is "video".

      Parameters:
      id - the projection identifier.
      Returns:
      this builder.
    • title

      @NotNull public ProjectedVideoModel.Builder title(@NotNull String title)
      Sets the title that the model will use.

      The default is "ProjectedVideoModel".

      Parameters:
      title - the title this model will use.
      Returns:
      this builder.
    • bounds

      @NotNull public ProjectedVideoModel.Builder bounds(@NotNull Bounds bounds) throws NullPointerException
      Overrides the bounds that the model reports, fixed for the model's lifetime.

      If this is not set, the model computes its bounds automatically from where the camera's field of view intersects the earth ellipsoid, recomputing them on every pushed frame. Until the first frame is pushed, the model reports bounds that encompass the entire world.

      There is no way to change the override after the model is built. You may implement a custom IProjectedImageryModel if bounds need to change at runtime.

      Parameters:
      bounds - the fixed bounds this model will use instead of the automatically computed ones. Must not be null.
      Returns:
      this builder.
      Throws:
      NullPointerException - when bounds is null.