public class RPSTileLoop extends TileLoop
TileLoop
which handles
unloaded Pixels
instances and manages the
creation of the RPSTileData
.Modifier and Type | Field and Description |
---|---|
protected omero.model.Pixels |
pixels
Instance will be replaced on
RawPixelsStorePrx.save() |
protected omero.api.ServiceFactoryPrx |
session |
Constructor and Description |
---|
RPSTileLoop(omero.api.ServiceFactoryPrx session,
omero.model.Pixels pixels) |
Modifier and Type | Method and Description |
---|---|
TileData |
createData()
Subclasses must provide a fresh instance of
TileData . |
int |
forEachTile(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.
|
omero.model.Pixels |
getPixels()
After saving the binary data, the update event of the
Pixels instance will be updated and therefore
need to be reloaded. |
protected omero.api.ServiceFactoryPrx |
getSession() |
void |
setPixels(omero.model.Pixels pixels)
|
forEachTile
protected final omero.api.ServiceFactoryPrx session
protected volatile omero.model.Pixels pixels
RawPixelsStorePrx.save()
public RPSTileLoop(omero.api.ServiceFactoryPrx session, omero.model.Pixels pixels)
protected omero.api.ServiceFactoryPrx getSession()
public omero.model.Pixels getPixels()
Pixels
instance will be updated and therefore
need to be reloaded. As a convenience the returned
value is accessible here.public void setPixels(omero.model.Pixels pixels)
public TileData createData()
TileLoop
TileData
.
The instance will be closed after the run of
TileLoop.forEachTile(int, int, int, int, int, int, int, TileLoopIteration)
.createData
in class TileLoop
public int forEachTile(int tileWidth, int tileHeight, TileLoopIteration iteration) throws ClientError, omero.ServerError
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
.ClientError
omero.ServerError
Version: 5.3.3-ice35-b63
Copyright © 2017 The University of Dundee & Open Microscopy Environment. All Rights Reserved.