Package net.imglib2

Class AbstractCursor<T>

    • Field Detail

      • tmp

        private final long[] tmp
        used internally to forward all localize() versions to the (abstract) long[] version.
    • Constructor Detail

      • AbstractCursor

        public AbstractCursor​(int n)
        Parameters:
        n - number of dimensions in the Img.
    • Method Detail

      • getIntPosition

        public int getIntPosition​(int d)
        Description copied from interface: Localizable
        Return the current position in a given dimension.
        Specified by:
        getIntPosition in interface Localizable
        Parameters:
        d - dimension
        Returns:
        dimension of current position
      • toString

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

        public abstract AbstractCursor<T> copy()
        Specified by:
        copy in interface Cursor<T>
        Specified by:
        copy in interface RealCursor<T>
        Specified by:
        copy in interface Sampler<T>
        Returns:
        - A new Sampler in the same state accessing the same values. It does NOT copy T, just the state of the Sampler. Otherwise use T.copy() if available. Sampler.copy().get() == Sampler.get(), i.e. both hold the same value, not necessarily the same instance (this is the case for an ArrayCursor for example)