Class AbstractTileOperation
java.lang.Object
nom.tam.image.tile.operation.AbstractTileOperation
- All Implemented Interfaces:
Runnable, ITileOperation
- Direct Known Subclasses:
TileCompressionOperation
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final TileAreaprivate Future<?> private TileBufferprivate final ITiledImageOperationprivate final int -
Constructor Summary
ConstructorsConstructorDescriptionAbstractTileOperation(ITiledImageOperation operation, int tileIndex, TileArea area) -
Method Summary
Modifier and TypeMethodDescriptionvoidexecute(ExecutorService threadPool) getArea()protected PrimitiveType<Buffer> intprotected ITileOperationprotected TileBufferprotected ITiledImageOperationintsetDimensions(int dataOffset, int width, int height) protected voidsetTileBuffer(TileBuffer tileBuffer) voidsetWholeImageBuffer(Buffer buffer) set the buffer that describes the whole image and let the tile create a slice of it from the position where the tile starts in the whole image.voidWait for the result of the tile processing.
-
Field Details
-
tiledImageOperation
-
future
-
tileBuffer
-
tileIndex
private final int tileIndex -
area
-
-
Constructor Details
-
AbstractTileOperation
-
-
Method Details
-
execute
-
getArea
-
getPixelSize
public int getPixelSize()- Returns:
- the number of pixels in this tile.
-
getTileIndex
public int getTileIndex() -
setWholeImageBuffer
set the buffer that describes the whole image and let the tile create a slice of it from the position where the tile starts in the whole image. Attention this method is not thread-safe because it changes the position of the buffer parameter.- Parameters:
buffer- the buffer that describes the whole image.
-
waitForResult
public void waitForResult()Wait for the result of the tile processing.- Specified by:
waitForResultin interfaceITileOperation
-
getBaseType
-
getPreviousTileOperation
-
getTileBuffer
-
getTiledImageOperation
-
setDimensions
- Specified by:
setDimensionsin interfaceITileOperation
-
setTileBuffer
-