Class TileTranslation

java.lang.Object
org.apache.sis.internal.referencing.j2d.TileTranslation

final class TileTranslation 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.
Since:
1.1
Version:
1.1
  • Field Summary

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

    Constructors
    Constructor
    Description
    TileTranslation(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 "absolute units". This is the same units than for tiles at subsampling (1,1).
    • dy

      private final int dy
      The translation in "absolute units". This is the same units than for tiles at subsampling (1,1).
  • Constructor Details

    • TileTranslation

      TileTranslation(Dimension subsampling, AffineTransform reference, int dx, int dy)
      Creates a new translated transform. The translation is specified in "absolute units", 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 "absolute units".
      dy - the translation along y axis in "absolute 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.