Package omero.util

Class RPSTileLoop


  • public class RPSTileLoop
    extends TileLoop
    Helper subclass of TileLoop which handles unloaded Pixels instances and manages the creation of the RPSTileData.
    Since:
    4.3.0
    • Method Detail

      • getPixels

        public Pixels getPixels()
        After saving the binary data, the update event of the Pixels instance will be updated and therefore need to be reloaded. As a convenience the returned value is accessible here.
      • setPixels

        public void setPixels​(Pixels pixels)
        Called by the TileData implementation to update the pixels instance for re-use by the client.
      • forEachTile

        public int forEachTile​(int tileWidth,
                               int tileHeight,
                               TileLoopIteration iteration)
                        throws ClientError,
                               ServerError
        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.
        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.
        Throws:
        ClientError
        ServerError