Package omero.util
Class TileLoop
- java.lang.Object
-
- omero.util.TileLoop
-
- Direct Known Subclasses:
RPSTileLoop
public abstract class TileLoop extends java.lang.Object- Since:
- 4.3.0
-
-
Constructor Summary
Constructors Constructor Description TileLoop()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract TileDatacreateData()Subclasses must provide a fresh instance ofTileData.intforEachTile(int sizeX, int sizeY, int sizeZ, int sizeC, int sizeT, int tileWidth, int tileHeight, TileLoopIteration iteration)Iterates over every tile in a given pixel based on the over arching dimensions and a requested maximum tile width and height.
-
-
-
Method Detail
-
createData
public abstract TileData createData()
Subclasses must provide a fresh instance ofTileData. The instance will be closed after the run offorEachTile(int, int, int, int, int, int, int, TileLoopIteration).- Returns:
- the new instance
-
forEachTile
public int forEachTile(int sizeX, int sizeY, int sizeZ, int sizeC, int sizeT, int tileWidth, int tileHeight, TileLoopIteration iteration)Iterates over every tile in a given pixel based on the over arching dimensions and a requested maximum tile width and height.- Parameters:
sizeX- the size of the plane's X dimensionsizeY- the size of the plane's Y dimensionsizeZ- the size of the plane's Z dimensionsizeC- the size of the plane's C dimensionsizeT- the size of the plane's T dimensioniteration- Invoker to call for each tile.tileWidth- Maximum width of the tile requested. The tile request itself will be smaller than the original tile width requested ifx + tileWidth > sizeX.tileHeight- Maximum height of the tile requested. The tile request itself will be smaller ify + tileHeight > sizeY.- Returns:
- The total number of tiles iterated over.
-
-