Class TileOrganizer.Translation
java.lang.Object
org.apache.sis.internal.referencing.j2d.TileOrganizer.Translation
- Enclosing class:
- TileOrganizer
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
FieldsModifier and TypeFieldDescriptionprivate 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
ConstructorsConstructorDescriptionTranslation
(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 units of the level having finest resolution. This is the same units than for tiles at subsampling (1,1). -
dy
private final int dyThe 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
Applies the translation and the new "grid to CRS" transform on the given tile.- Parameters:
tile
- the tile on which to apply the translation.
-