Class PixelIterator.IntWindow

java.lang.Object
org.apache.sis.image.PixelIterator.Window<IntBuffer>
org.apache.sis.image.PixelIterator.IntWindow
Enclosing class:
PixelIterator

private final class PixelIterator.IntWindow extends PixelIterator.Window<IntBuffer>
PixelIterator.Window implementation backed by an array of int[]. This is the most efficient Window because Java2D has many optimizations for images backed by integer values: In particular we should not try to get the backing int[] array ourselves because it may cause Java2D to disable GPU accelerations on that raster.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private final int[]
    Sample values in the window (data) and a temporary array (transfer).
    private final int[]
    Sample values in the window (data) and a temporary array (transfer).

    Fields inherited from class org.apache.sis.image.PixelIterator.Window

    DIRECT, TRANSFER, TRANSFER_FROM_OTHER, values
  • Constructor Summary

    Constructors
    Constructor
    Description
    IntWindow(int[] data, int[] transfer)
    Creates a new window which will store the sample values in the given data array.
  • Method Summary

    Modifier and Type
    Method
    Description
    (package private) Object
    getPixels(Raster raster, int subX, int subY, int subWidth, int subHeight, int mode)
    Performs the transfer between the underlying raster and this window.
    (package private) final PixelIterator
    Returns the iterator that created this window.
    void
    Updates this window with the sample values in the region starting at current iterator position.

    Methods inherited from class org.apache.sis.image.PixelIterator.Window

    getSize

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • data

      private final int[] data
      Sample values in the window (data) and a temporary array (transfer). Those arrays are overwritten when update() is invoked.
    • transfer

      private final int[] transfer
      Sample values in the window (data) and a temporary array (transfer). Those arrays are overwritten when update() is invoked.
  • Constructor Details

    • IntWindow

      IntWindow(int[] data, int[] transfer)
      Creates a new window which will store the sample values in the given data array.
  • Method Details