Class PlanarPlaneSubsetCursor<T extends NativeType<T>>

    • Constructor Detail

      • PlanarPlaneSubsetCursor

        protected PlanarPlaneSubsetCursor​(PlanarPlaneSubsetCursor<T> cursor)
        Copy Constructor
        Parameters:
        cursor - - the cursor to copy from.
      • PlanarPlaneSubsetCursor

        public PlanarPlaneSubsetCursor​(PlanarImg<T,​?> container,
                                       Interval interval)
        Constructor
        Parameters:
        container - - the container this cursor shall work on.
        interval - - the interval to iterate over.
    • Method Detail

      • get

        public final T get()
        Access the actual T instance providing access to a pixel, sub-pixel or integral region value the Sampler points at.
        Specified by:
        get in interface Sampler<T extends NativeType<T>>
      • hasNext

        public final boolean hasNext()
        Returns true if another step forward is possible.
        Specified by:
        hasNext in interface java.util.Iterator<T extends NativeType<T>>
        Specified by:
        hasNext in interface Iterator
        Returns:
        true, if there is another step forward is possible, otherwise false
      • fwd

        public final void fwd()
        Move forward.
        Specified by:
        fwd in interface Iterator
      • jumpFwd

        public final void jumpFwd​(long steps)
        Highly recommended to override this with a more efficient version.
        Specified by:
        jumpFwd in interface Iterator
        Overrides:
        jumpFwd in class AbstractCursorInt<T extends NativeType<T>>
        Parameters:
        steps - number of steps to move forward
      • reset

        public final void reset()
        Reset the Iterator, that is put it to where it would be if newly created.
        Specified by:
        reset in interface Iterator
      • localize

        public final void localize​(int[] position)
        Write the current position into the passed array.
        Specified by:
        localize in interface Localizable
        Parameters:
        position - receives current position
      • getIntPosition

        public final int getIntPosition​(int dim)
        Return the current position in a given dimension.
        Specified by:
        getIntPosition in interface Localizable
        Parameters:
        dim - dimension
        Returns:
        dimension of current position