Class TileBuffer

java.lang.Object
nom.tam.image.tile.operation.buffer.TileBuffer
Direct Known Subclasses:
TileBufferColumnBased, TileBufferRowBased

public abstract class TileBuffer extends 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 Details

    • imageBuffer

      private Buffer imageBuffer
    • height

      private final int height
    • offset

      private final int offset
    • baseType

      private final PrimitiveType<Buffer> baseType
      the tileOperation this view is connected to
    • width

      private final int width
  • Constructor Details

    • TileBuffer

      protected TileBuffer(PrimitiveType<Buffer> baseType, int dataOffset, int width, int height)
  • Method Details

    • finish

      public void finish()
      nothing to do in the normal case, overwrite this method if post processing is necessary.
    • getBaseType

      public PrimitiveType<Buffer> getBaseType()
    • getBuffer

      public abstract 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(Buffer value)
    • getImageBuffer

      protected Buffer getImageBuffer()