Class TLcdImageMosaicBuilder

java.lang.Object
com.luciad.imaging.TLcdImageMosaicBuilder

public class TLcdImageMosaicBuilder extends Object
Builder for creating ALcdImageMosaic or ALcdMultilevelImageMosaic instances.

Mosaics can only be created from one or more ALcdBasicImage.

You can find the other available builders on com.luciad.imaging.

Since:
2015.0
  • Method Details

    • newBuilder

      public static TLcdImageMosaicBuilder newBuilder()
      Create a new mosaic builder.
      Returns:
      a new builder instance
    • buildMultiLevelMosaic

      public ALcdMultilevelImageMosaic buildMultiLevelMosaic()
      Create a new ALcdImageMosaic with the currently defined properties. To create a new multilevel mosaic, a number of conditions must be met:
      • At least one ALcdBasicImage for each level must be set. Intermediate levels with no tiles are not allowed.
      • The level relationship must be set.
      • The semantics need to be set.
      Returns:
      a new multilevel mosaic
    • buildImageMosaic

      public ALcdImageMosaic buildImageMosaic()
      Create a new ALcdImageMosaic with the currently defined properties. To create a new mosaic, a number of conditions must be met:
      • At least one ALcdBasicImage must be set.
      • The semantics need to be set.
      Returns:
      a new mosaic
    • tile

      public TLcdImageMosaicBuilder tile(ALcdBasicImage aImage, int aTileX, int aTileY)
      Add a tile to be used in the mosaic. The tile will always be added at level 0.
      Parameters:
      aImage - the tile to be added to the mosaic
      aTileX - the X coordinate of the tile
      aTileY - the Y coordinate of the tile
      Returns:
      this builder
    • tile

      public TLcdImageMosaicBuilder tile(ALcdBasicImage aImage, int aLevel, int aTileX, int aTileY)
      Add a tile to be used in the mosaic.
      Parameters:
      aImage - the tile to be added to the mosaic
      aLevel - the level on which this tile is to be used
      aTileX - the X coordinate of the tile
      aTileY - the Y coordinate of the tile
      Returns:
      this builder
    • levelCount

      public TLcdImageMosaicBuilder levelCount(int aCount)
      Sets the level count.
      Parameters:
      aCount - the level count
      Returns:
      this builder
    • rowCount

      public TLcdImageMosaicBuilder rowCount(int aLevel, int aRowCount)
      Sets the row count for a level.
      Parameters:
      aLevel - the level
      aRowCount - the row count
      Returns:
      this builder
    • columnCount

      public TLcdImageMosaicBuilder columnCount(int aLevel, int aColumnCount)
      Sets the column count for a level.
      Parameters:
      aLevel - the level
      aColumnCount - the column count
      Returns:
      this builder
    • bounds

      public TLcdImageMosaicBuilder bounds(ILcdBounds aBounds)
      Set the mosaic bounds.
      Parameters:
      aBounds - the bounds
      Returns:
      this builder
    • imageReference

      public TLcdImageMosaicBuilder imageReference(ILcdModelReference aImageReference)
      Set the mosaic reference.
      Parameters:
      aImageReference - the mosaic reference
      Returns:
      this builder
    • semantics

      public TLcdImageMosaicBuilder semantics(List<ALcdBandSemantics> aSemantics)
      Set the mosaic band semantics.
      Parameters:
      aSemantics - the band semantics
      Returns:
      this builder
    • samplingMode

      public TLcdImageMosaicBuilder samplingMode(ELcdImageSamplingMode aSamplingMode)
      Set the mosaic sampling mode.

      The default value is ELcdImageSamplingMode.AREA.

      Parameters:
      aSamplingMode - the sampling mode
      Returns:
      this builder
    • tileGridBounds

      public TLcdImageMosaicBuilder tileGridBounds(int aLevel, ILcdBounds aTileGridBounds)
      Sets the bounds for the tile grid of this mosaic. By default these are equal to the mosaic bounds.
      Parameters:
      aLevel - the level to which these bounds apply.
      aTileGridBounds - the bounds
      Returns:
      this builder
      See Also:
    • levelRelationship

      public TLcdImageMosaicBuilder levelRelationship(ELcdLevelRelationship aLevelRelationship)
      Set the level relationship.
      Parameters:
      aLevelRelationship - the level relationship
      Returns:
      this builder