Package net.imglib2.img.sparse
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:
java.util.Iterator<T>
,Cursor<T>
,Dimensions
,EuclideanSpace
,NtreeImg.PositionProvider
,Interval
,Iterator
,Localizable
,RealCursor<T>
,RealInterval
,RealLocalizable
,Sampler<T>
public final class NtreeCursor<T extends NativeType<T>> extends LocalizingIntervalIterator implements Cursor<T>, NtreeImg.PositionProvider
- Author:
- Tobias Pietzsch
-
-
Field Summary
-
Fields inherited from class net.imglib2.iterator.LocalizingIntervalIterator
position
-
Fields inherited from class net.imglib2.iterator.IntervalIterator
dimensions, index, lastIndex, steps
-
Fields inherited from class net.imglib2.AbstractInterval
max, min
-
Fields inherited from class net.imglib2.AbstractEuclideanSpace
n
-
-
Constructor Summary
Constructors Constructor Description NtreeCursor(NtreeImg<T,?> img)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description NtreeCursor<T>
copy()
NtreeCursor<T>
copyCursor()
T
get()
Access the actual T instance providing access to a pixel, sub-pixel or integral region value theSampler
points at.long[]
getPosition()
T
next()
void
remove()
-
Methods inherited from class net.imglib2.iterator.LocalizingIntervalIterator
fwd, getDoublePosition, getFloatPosition, getIntPosition, getLongPosition, jumpFwd, localize, localize, localize, localize, reset
-
Methods inherited from class net.imglib2.iterator.IntervalIterator
create, dimension, dimensions, getIndex, hasNext, toString
-
Methods inherited from class net.imglib2.AbstractInterval
max, max, max, min, min, min, realMax, realMax, realMax, realMin, realMin, realMin
-
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.EuclideanSpace
numDimensions
-
Methods inherited from interface net.imglib2.Localizable
getIntPosition, getLongPosition, localize, localize
-
Methods inherited from interface net.imglib2.RealLocalizable
getDoublePosition, getFloatPosition, localize, localize
-
-
-
-
Method Detail
-
get
public T get()
Description copied from interface:Sampler
Access the actual T instance providing access to a pixel, sub-pixel or integral region value theSampler
points at.- Specified by:
get
in interfaceSampler<T extends NativeType<T>>
-
next
public T next()
- Specified by:
next
in interfacejava.util.Iterator<T extends NativeType<T>>
-
remove
public void remove()
- Specified by:
remove
in interfacejava.util.Iterator<T extends NativeType<T>>
-
copy
public NtreeCursor<T> copy()
- Specified by:
copy
in interfaceSampler<T extends NativeType<T>>
- Returns:
- - A new
Sampler
in 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 anArrayCursor
for example)
-
copyCursor
public NtreeCursor<T> copyCursor()
- Specified by:
copyCursor
in interfaceCursor<T extends NativeType<T>>
- Specified by:
copyCursor
in interfaceRealCursor<T extends NativeType<T>>
-
getPosition
public long[] getPosition()
- Specified by:
getPosition
in interfaceNtreeImg.PositionProvider
-
-