Class TileBuffer
- java.lang.Object
-
- nom.tam.image.tile.operation.buffer.TileBuffer
-
- Direct Known Subclasses:
TileBufferColumnBased
,TileBufferRowBased
public abstract class TileBuffer extends java.lang.Object
This view on the image data represents a tileOperation that is row based, so a tileOperation that fills the whole width of the image.
-
-
Field Summary
Fields Modifier and Type Field Description private PrimitiveType<java.nio.Buffer>
baseType
the tileOperation this view is connected toprivate int
height
private java.nio.Buffer
imageBuffer
private int
offset
private int
width
-
Constructor Summary
Constructors Modifier Constructor Description protected
TileBuffer(PrimitiveType<java.nio.Buffer> baseType, int dataOffset, int width, int height)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description void
finish()
nothing to do in the normal case, overwrite this method if post processing is necessary.PrimitiveType<java.nio.Buffer>
getBaseType()
abstract java.nio.Buffer
getBuffer()
int
getHeight()
protected java.nio.Buffer
getImageBuffer()
int
getPixelSize()
int
getWidth()
TileBuffer
setData(java.nio.Buffer value)
-
-
-
Field Detail
-
imageBuffer
private java.nio.Buffer imageBuffer
-
height
private final int height
-
offset
private final int offset
-
baseType
private final PrimitiveType<java.nio.Buffer> baseType
the tileOperation this view is connected to
-
width
private final int width
-
-
Constructor Detail
-
TileBuffer
protected TileBuffer(PrimitiveType<java.nio.Buffer> baseType, int dataOffset, int width, int height)
-
-
Method Detail
-
finish
public void finish()
nothing to do in the normal case, overwrite this method if post processing is necessary.
-
getBaseType
public PrimitiveType<java.nio.Buffer> getBaseType()
-
getBuffer
public abstract java.nio.Buffer getBuffer()
-
getHeight
public int getHeight()
-
getPixelSize
public int getPixelSize()
- Returns:
- the number of pixels in the tileOperation this view represents.
-
getWidth
public int getWidth()
-
setData
public TileBuffer setData(java.nio.Buffer value)
-
getImageBuffer
protected java.nio.Buffer getImageBuffer()
-
-