Class NtreeCursor<T extends NativeType<T>>
java.lang.Object
net.imglib2.AbstractEuclideanSpace
net.imglib2.AbstractInterval
net.imglib2.iterator.IntervalIterator
net.imglib2.iterator.LocalizingIntervalIterator
net.imglib2.img.sparse.NtreeCursor<T>
- All Implemented Interfaces:
Iterator<T>, Cursor<T>, Dimensions, EuclideanSpace, NtreeImg.PositionProvider, Interval, Iterator, Localizable, RealCursor<T>, RealInterval, RealLocalizable, Sampler<T>, Typed<T>
public final class NtreeCursor<T extends NativeType<T>>
extends LocalizingIntervalIterator
implements Cursor<T>, NtreeImg.PositionProvider
-
Field Summary
FieldsFields inherited from class LocalizingIntervalIterator
positionFields inherited from class IntervalIterator
dimensions, index, lastIndex, stepsFields inherited from class AbstractInterval
max, minFields inherited from class AbstractEuclideanSpace
n -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateNtreeCursor(NtreeCursor<T> cursor) NtreeCursor(NtreeImg<T, ?> img) -
Method Summary
Methods inherited from class LocalizingIntervalIterator
fwd, getDoublePosition, getFloatPosition, getIntPosition, getLongPosition, jumpFwd, localize, localize, localize, localize, resetMethods inherited from class IntervalIterator
create, dimension, dimensions, getIndex, hasNext, toStringMethods inherited from class AbstractInterval
max, max, max, min, min, min, realMax, realMax, realMax, realMin, realMin, realMinMethods inherited from class AbstractEuclideanSpace
numDimensionsMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface Cursor
copyCursorMethods inherited from interface Dimensions
dimensions, dimensionsAsLongArray, dimensionsAsPointMethods inherited from interface EuclideanSpace
numDimensionsMethods inherited from interface Interval
maxAsLongArray, maxAsPoint, minAsLongArray, minAsPointMethods inherited from interface Iterator
forEachRemaining, hasNext, removeMethods inherited from interface Localizable
getDoublePosition, getFloatPosition, getIntPosition, getLongPosition, localize, localize, localize, localize, positionAsLongArray, positionAsPointMethods inherited from interface RealCursor
nextMethods inherited from interface RealInterval
maxAsDoubleArray, maxAsRealPoint, minAsDoubleArray, minAsRealPointMethods inherited from interface RealLocalizable
localize, localize, positionAsDoubleArray, positionAsRealPoint
-
Field Details
-
img
-
type
-
-
Constructor Details
-
NtreeCursor
-
NtreeCursor
-
-
Method Details
-
get
-
getType
Description copied from interface:TypedGet an instance ofT.It should not be assumed that the returned
Tinstance is an independent copy. In particular, repeated calls togetType()may return the same instance.- Specified by:
getTypein interfaceSampler<T extends NativeType<T>>- Specified by:
getTypein interfaceTyped<T extends NativeType<T>>- Returns:
- an instance of
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>>- 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)
-
getPosition
public long[] getPosition()- Specified by:
getPositionin interfaceNtreeImg.PositionProvider
-