Package net.imglib2
Class AbstractLocalizingCursor<T>
- java.lang.Object
-
- net.imglib2.AbstractEuclideanSpace
-
- net.imglib2.AbstractLocalizable
-
- net.imglib2.AbstractLocalizingCursor<T>
-
- Type Parameters:
T
-
- All Implemented Interfaces:
java.util.Iterator<T>
,Cursor<T>
,EuclideanSpace
,Iterator
,Localizable
,RealCursor<T>
,RealLocalizable
,Sampler<T>
- Direct Known Subclasses:
AbstractLongListImg.LongListLocalizingCursor
,CellLocalizingCursor
public abstract class AbstractLocalizingCursor<T> extends AbstractLocalizable implements Cursor<T>
Abstract base class for localizingCursor
s. The current position is maintained in the inherited long[]position
field.- Author:
- Stephan Preibisch, Stephan Saalfeld, Tobias Pietzsch
-
-
Field Summary
-
Fields inherited from class net.imglib2.AbstractLocalizable
position
-
Fields inherited from class net.imglib2.AbstractEuclideanSpace
n
-
-
Constructor Summary
Constructors Constructor Description AbstractLocalizingCursor(int n)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract AbstractLocalizingCursor<T>
copy()
abstract AbstractLocalizingCursor<T>
copyCursor()
void
jumpFwd(long steps)
Move steps × forward.T
next()
void
remove()
-
Methods inherited from class net.imglib2.AbstractLocalizable
getDoublePosition, getFloatPosition, getIntPosition, getLongPosition, 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, toString, 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
-
-
-
-
Constructor Detail
-
AbstractLocalizingCursor
public AbstractLocalizingCursor(int n)
- Parameters:
n
- number of dimensions in theImg
.
-
-
Method Detail
-
remove
public void remove()
- Specified by:
remove
in interfacejava.util.Iterator<T>
-
jumpFwd
public void jumpFwd(long steps)
Description copied from interface:Iterator
Move steps × forward.
-
copy
public abstract AbstractLocalizingCursor<T> copy()
- Specified by:
copy
in interfaceSampler<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 abstract AbstractLocalizingCursor<T> copyCursor()
- Specified by:
copyCursor
in interfaceCursor<T>
- Specified by:
copyCursor
in interfaceRealCursor<T>
-
-