Class TileTranslation
java.lang.Object
org.apache.sis.internal.referencing.j2d.TileTranslation
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
FieldsModifier and TypeFieldDescriptionprivate 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
ConstructorsConstructorDescriptionTileTranslation
(Dimension subsampling, AffineTransform reference, int dx, int dy) Creates a new translated transform. -
Method Summary
-
Field Details
-
gridToCRS
The translated "grid to real world" transform, as an immutable instance. -
dx
private final int dxThe translation in "absolute units". This is the same units than for tiles at subsampling (1,1). -
dy
private final int dyThe 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
Applies the translation and the new "grid to CRS" transform on the given tile.- Parameters:
tile
- the tile on which to apply the translation.
-