Package net.imglib2.img.array
Class ArrayCursor<T extends NativeType<T>>
- java.lang.Object
-
- net.imglib2.AbstractEuclideanSpace
-
- net.imglib2.AbstractCursorInt<T>
-
- net.imglib2.img.array.AbstractArrayCursor<T>
-
- net.imglib2.img.array.ArrayCursor<T>
-
- Type Parameters:
T-
- All Implemented Interfaces:
java.util.Iterator<T>,Cursor<T>,EuclideanSpace,Iterator,Localizable,RealCursor<T>,RealLocalizable,Sampler<T>,Typed<T>
public final class ArrayCursor<T extends NativeType<T>> extends AbstractArrayCursor<T>
-
-
Field Summary
-
Fields inherited from class net.imglib2.img.array.AbstractArrayCursor
img, lastIndex, offset, size, type
-
Fields inherited from class net.imglib2.AbstractEuclideanSpace
n
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedArrayCursor(ArrayCursor<T> cursor)ArrayCursor(ArrayImg<T,?> img)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ArrayCursor<T>copy()-
Methods inherited from class net.imglib2.img.array.AbstractArrayCursor
fwd, get, getIntPosition, getType, hasNext, jumpFwd, localize, reset, toString
-
Methods inherited from class net.imglib2.AbstractCursorInt
getDoublePosition, getFloatPosition, getLongPosition, localize, localize, localize, localize, localize
-
Methods inherited from class net.imglib2.AbstractEuclideanSpace
numDimensions
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface net.imglib2.Cursor
copyCursor
-
Methods inherited from interface net.imglib2.EuclideanSpace
numDimensions
-
Methods inherited from interface net.imglib2.Localizable
positionAsLongArray, positionAsPoint
-
Methods inherited from interface net.imglib2.RealCursor
next
-
Methods inherited from interface net.imglib2.RealLocalizable
positionAsDoubleArray, positionAsRealPoint
-
-
-
-
Constructor Detail
-
ArrayCursor
protected ArrayCursor(ArrayCursor<T> cursor)
-
-
Method Detail
-
copy
public ArrayCursor<T> copy()
- Specified by:
copyin interfaceCursor<T extends NativeType<T>>- Specified by:
copyin interfaceRealCursor<T extends NativeType<T>>- Specified by:
copyin interfaceSampler<T extends NativeType<T>>- Specified by:
copyin classAbstractCursorInt<T extends NativeType<T>>- Returns:
- - A new
Samplerin the same state accessing the same values. It does NOT copy T, just the state of theSampler. 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 anArrayCursorfor example)
-
-