Class TileOrganizer.Translation

java.lang.Object
org.apache.sis.internal.referencing.j2d.TileOrganizer.Translation
Enclosing class:
TileOrganizer

private static final class TileOrganizer.Translation extends Object
An affine transform which is translated relative to an original transform. The translation terms are stored separately without modifying the transform. This class if for internal use by TileOrganizer only.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private final int
    The translation in units of the level having finest resolution.
    private final int
    The translation in units of the level having finest resolution.
    private final AffineTransform
    The translated "grid to real world" transform, as an immutable instance.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Translation(Dimension subsampling, AffineTransform reference, int dx, int dy)
    Creates a new translated transform.
  • Method Summary

    Modifier and Type
    Method
    Description
    (package private) final void
    applyTo(Tile tile)
    Applies the translation and the new "grid to CRS" transform on the given tile.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • gridToCRS

      private final AffineTransform gridToCRS
      The translated "grid to real world" transform, as an immutable instance.
    • dx

      private final int dx
      The translation in units of the level having finest resolution. This is the same units than for tiles at subsampling (1,1).
    • dy

      private final int dy
      The translation in units of the level having finest resolution. This is the same units than for tiles at subsampling (1,1).
  • Constructor Details

    • Translation

      Translation(Dimension subsampling, AffineTransform reference, int dx, int dy)
      Creates a new translated transform. The translation is specified in unit of the level having finest resolution, i.e. in the same units than for tiles at subsampling (1,1).
      Parameters:
      subsampling - the tile subsampling.
      reference - the "grid to real world" transform at subsampling (1,1).
      dx - the translation along x axis in "finest units".
      dy - the translation along y axis in "finest units".
  • Method Details

    • applyTo

      final void applyTo(Tile tile)
      Applies the translation and the new "grid to CRS" transform on the given tile.
      Parameters:
      tile - the tile on which to apply the translation.