omero.util
Class TileLoop
java.lang.Object
omero.util.TileLoop
- Direct Known Subclasses:
- RPSTileLoop
public abstract class TileLoop
- extends Object
- Since:
- 4.3.0
- Author:
- Josh Moore, josh at glencoesoftware.com
Method Summary |
abstract TileData |
createData()
Subclasses must provide a fresh instance of TileData . |
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. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TileLoop
public TileLoop()
createData
public abstract TileData createData()
- Subclasses must provide a fresh instance of
TileData
.
The instance will be closed after the run of forEachTile.
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:
iteration
- Invoker to call for each tile.pixel
- Pixel instancetileWidth
- Maximum width of the tile requested. The tile
request itself will be smaller than the original tile width requested if
x + tileWidth > sizeX
.tileHeight
- Maximum height of the tile requested. The tile
request itself will be smaller if y + tileHeight > sizeY
.
- Returns:
- The total number of tiles iterated over.
OmeroJava Api
Version: 4.3.3-00d1137e-b2894
Copyright © 2009 The University of Dundee. All Rights Reserved.