Class 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 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()