Package omero :: Package util :: Module tiles :: Class RPSTileLoop
[hide private]
[frames] | no frames]

Class RPSTileLoop

source code


Instance Methods [hide private]
 
__init__(self, session, pixels)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
getSession(self) source code
 
getPixels(self)
After saving the binary data, the update event of the {@link Pixels} instance will be updated and therefore need to be reloaded.
source code
 
setPixels(self, pixels)
Used by RPSTileData to set a reloaded Pixels instance for client use.
source code
 
createData(self)
Subclasses must provide a fresh instance of {@link TileData}.
source code
 
forEachTile(self, tileWidth, tileHeight, iteration)
Iterates over every tile in a given pixel based on the over arching dimensions and a requested maximum tile width and height.
source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, session, pixels)
(Constructor)

source code 

x.__init__(...) initializes x; see x.__class__.__doc__ for signature

Overrides: object.__init__
(inherited documentation)

getPixels(self)

source code 

After saving the binary data, the update event of the {@link Pixels} instance will be updated and therefore need to be reloaded. As a convenience the returned value is accessible here.

createData(self)

source code 

Subclasses must provide a fresh instance of {@link TileData}. The instance will be closed after the run of forEachTile.

returns: TileData

Overrides: TileLoop.createData
(inherited documentation)

forEachTile(self, tileWidth, tileHeight, iteration)

source code 

Iterates over every tile in a given pixel based on the over arching dimensions and a requested maximum tile width and height. @param iteration Invoker to call for each tile. @param pixel Pixel instance @param tileWidth <b>Maximum</b> width of the tile requested. The tile request itself will be smaller than the original tile width requested if <code>x + tileWidth > sizeX</code>. @param tileHeight <b>Maximum</b> height of the tile requested. The tile request itself will be smaller if <code>y + tileHeight > sizeY</code>. @return The total number of tiles iterated over.

Overrides: TileLoop.forEachTile