Class SimpleVolatileProjector<A,​B>

  • Type Parameters:
    A - pixel type of the source RandomAccessible.
    B - pixel type of the target RandomAccessibleInterval.
    All Implemented Interfaces:
    VolatileProjector

    public class SimpleVolatileProjector<A,​B>
    extends Object
    implements VolatileProjector
    An VolatileProjector, that renders a target 2D RandomAccessibleInterval by copying values from a source RandomAccessible. The source can have more dimensions than the target. Target coordinate (x,y) is copied from source coordinate (x,y,0,...,0).
    Author:
    Tobias Pietzsch, Stephan Saalfeld
    • Method Detail

      • isValid

        public boolean isValid()
        Specified by:
        isValid in interface VolatileProjector
        Returns:
        true if all mapped pixels were valid.
      • map

        public boolean map​(boolean clearUntouchedTargetPixels)
        Render the 2D target image by copying values from the source. Source can have more dimensions than the target. Target coordinate (x,y) is copied from source coordinate (x,y,0,...,0).

        Check after each line whether rendering was canceled.

        Specified by:
        map in interface VolatileProjector
        Returns:
        true if rendering was completed (all target pixels written). false if rendering was interrupted.