Package net.imglib2.img.planar
Class PlanarCursor2D<T extends NativeType<T>>
- java.lang.Object
-
- net.imglib2.AbstractEuclideanSpace
-
- net.imglib2.AbstractCursorInt<T>
-
- net.imglib2.img.planar.PlanarCursor<T>
-
- net.imglib2.img.planar.PlanarCursor2D<T>
-
- Type Parameters:
T
-
- All Implemented Interfaces:
java.util.Iterator<T>
,Cursor<T>
,EuclideanSpace
,PlanarImg.PlanarContainerSampler
,Iterator
,Localizable
,RealCursor<T>
,RealLocalizable
,Sampler<T>
public class PlanarCursor2D<T extends NativeType<T>> extends PlanarCursor<T>
Basic Iterator for 2dPlanarContainers
- Author:
- Stephan Saalfeld
-
-
Field Summary
-
Fields inherited from class net.imglib2.img.planar.PlanarCursor
container, index, lastIndex, lastSliceIndex, sliceIndex, type
-
Fields inherited from class net.imglib2.AbstractEuclideanSpace
n
-
-
Constructor Summary
Constructors Constructor Description PlanarCursor2D(PlanarImg<T,?> container)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
fwd()
Move forward.int
getIntPosition(int dim)
Return the current position in a given dimension.boolean
hasNext()
Note: This test is fragile in a sense that it returns true for elements after the last element as well.void
localize(int[] position)
Write the current position into the passed array.-
Methods inherited from class net.imglib2.img.planar.PlanarCursor
copy, copyCursor, get, getCurrentSliceIndex, jumpFwd, reset, toString
-
Methods inherited from class net.imglib2.AbstractCursorInt
getDoublePosition, getFloatPosition, getLongPosition, localize, localize, localize, next, remove
-
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
-
-
-
-
Method Detail
-
hasNext
public boolean hasNext()
Description copied from class:PlanarCursor
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 classPlanarCursor<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 classPlanarCursor<T extends NativeType<T>>
-
localize
public void localize(int[] position)
Description copied from interface:Localizable
Write the current position into the passed array.- Specified by:
localize
in interfaceLocalizable
- Overrides:
localize
in classPlanarCursor<T extends NativeType<T>>
- Parameters:
position
- receives current position
-
getIntPosition
public int getIntPosition(int dim)
Description copied from interface:Localizable
Return the current position in a given dimension.- Specified by:
getIntPosition
in interfaceLocalizable
- Overrides:
getIntPosition
in classPlanarCursor<T extends NativeType<T>>
- Parameters:
dim
- dimension- Returns:
- dimension of current position
-
-