Package net.imglib2.img.planar
Class PlanarLocalizingCursor2D<T extends NativeType<T>>
- java.lang.Object
-
- net.imglib2.AbstractEuclideanSpace
-
- net.imglib2.AbstractLocalizableInt
-
- net.imglib2.AbstractLocalizingCursorInt<T>
-
- net.imglib2.img.planar.PlanarLocalizingCursor<T>
-
- net.imglib2.img.planar.PlanarLocalizingCursor2D<T>
-
- All Implemented Interfaces:
java.util.Iterator<T>
,Cursor<T>
,EuclideanSpace
,PlanarImg.PlanarContainerSampler
,Iterator
,Localizable
,RealCursor<T>
,RealLocalizable
,Sampler<T>
public class PlanarLocalizingCursor2D<T extends NativeType<T>> extends PlanarLocalizingCursor<T>
TODO
-
-
Field Summary
-
Fields inherited from class net.imglib2.img.planar.PlanarLocalizingCursor
container, index, lastIndex, lastSliceIndex, max, sliceIndex, type
-
Fields inherited from class net.imglib2.AbstractLocalizableInt
position
-
Fields inherited from class net.imglib2.AbstractEuclideanSpace
n
-
-
Constructor Summary
Constructors Modifier Constructor Description PlanarLocalizingCursor2D(PlanarImg<T,?> container)
protected
PlanarLocalizingCursor2D(PlanarLocalizingCursor2D<T> cursor)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PlanarLocalizingCursor2D<T>
copy()
void
fwd()
Move forward.boolean
hasNext()
Note: This test is fragile in a sense that it returns true for elements after the last element as well.-
Methods inherited from class net.imglib2.img.planar.PlanarLocalizingCursor
copyCursor, get, getCurrentSliceIndex, jumpFwd, reset
-
Methods inherited from class net.imglib2.AbstractLocalizingCursorInt
next, remove
-
Methods inherited from class net.imglib2.AbstractLocalizableInt
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
-
PlanarLocalizingCursor2D
protected PlanarLocalizingCursor2D(PlanarLocalizingCursor2D<T> cursor)
-
-
Method Detail
-
copy
public PlanarLocalizingCursor2D<T> copy()
- Specified by:
copy
in interfaceSampler<T extends NativeType<T>>
- Overrides:
copy
in classPlanarLocalizingCursor<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)
-
hasNext
public boolean hasNext()
Description copied from class:PlanarLocalizingCursor
Note: This test is fragile in a sense that it returns true for elements after the last element as well.- Specified by:
hasNext
in interfacejava.util.Iterator<T extends NativeType<T>>
- Specified by:
hasNext
in interfaceIterator
- Overrides:
hasNext
in classPlanarLocalizingCursor<T extends NativeType<T>>
- Returns:
- false for the last element
-
fwd
public void fwd()
Description copied from interface:Iterator
Move forward.- Specified by:
fwd
in interfaceIterator
- Overrides:
fwd
in classPlanarLocalizingCursor<T extends NativeType<T>>
-
-