Class PlanarPlaneSubsetLocalizingCursor<T extends NativeType<T>>

    • Field Detail

      • type

        private final T extends NativeType<T> type
        Access to the type
      • typeIndex

        private final Index typeIndex
      • sliceIndex

        private final int sliceIndex
        Current slice index
      • lastIndexPlane

        private final int lastIndexPlane
        Last index on the plane
      • maxX

        private final int maxX
      • dimX

        private final int dimX
    • Constructor Detail

      • PlanarPlaneSubsetLocalizingCursor

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

        public PlanarPlaneSubsetLocalizingCursor​(PlanarImg<T,​?> container,
                                                 Interval interval)
        Constructor
        Parameters:
        container - PlanarImg this cursor shall work on.
        interval - Interval over which shall be iterated.
    • 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>>
      • getType

        public T getType()
        Description copied from interface: Typed
        Get an instance of T.

        It should not be assumed that the returned T instance is an independent copy. In particular, repeated calls to getType() may return the same instance.

        Specified by:
        getType in interface Sampler<T extends NativeType<T>>
        Specified by:
        getType in interface Typed<T extends NativeType<T>>
        Returns:
        an instance of 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)
        Move steps × forward.

        Highly recommended to override this with a more efficient version.

        Specified by:
        jumpFwd in interface Iterator
        Parameters:
        steps - number of steps to move forward
      • updatePositionFromIndex

        private void updatePositionFromIndex​(int index)
      • 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
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • offset

        private long offset​(Interval interval)