ome.io.nio
Class Utils

java.lang.Object
  extended by ome.io.nio.Utils

public class Utils
extends Object

General utility methods for working with ROMIO classes.

Since:
OMERO Beta-4.3.0
Author:
Chris Allan

Constructor Summary
Utils()
           
 
Method Summary
static int forEachTile(TileLoopIteration iteration, int sizeX, int sizeY, int sizeZ, int sizeC, int sizeT, int tileWidth, int tileHeight)
          Iterates over every tile in a given pixel buffer based on the over arching dimensions and a requested maximum tile width and height.
static int forEachTile(TileLoopIteration iteration, PixelBuffer pixelBuffer, int tileWidth, int tileHeight)
          Iterates over every tile in a given pixel buffer 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

Utils

public Utils()
Method Detail

forEachTile

public static int forEachTile(TileLoopIteration iteration,
                              PixelBuffer pixelBuffer,
                              int tileWidth,
                              int tileHeight)
Iterates over every tile in a given pixel buffer based on the over arching dimensions and a requested maximum tile width and height.

Parameters:
iteration - Invoker to call for each tile.
pixelBuffer - Pixel buffer which is backing the pixel data.
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.

forEachTile

public static int forEachTile(TileLoopIteration iteration,
                              int sizeX,
                              int sizeY,
                              int sizeZ,
                              int sizeC,
                              int sizeT,
                              int tileWidth,
                              int tileHeight)
Iterates over every tile in a given pixel buffer based on the over arching dimensions and a requested maximum tile width and height.

Parameters:
iteration - Invoker to call for each tile.
pixelBuffer - Pixel buffer which is backing the pixel data.
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.


OmeroJava Api

Version: 4.3.3-00d1137e-b2894

Copyright © 2009 The University of Dundee. All Rights Reserved.