Package omero.util

Class 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 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
    • Constructor Detail

      • TileLoop

        public TileLoop()
    • Method Detail

      • 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 dimension
        sizeY - the size of the plane's Y dimension
        sizeZ - the size of the plane's Z dimension
        sizeC - the size of the plane's C dimension
        sizeT - the size of the plane's T dimension
        iteration - 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 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.