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:
Iterator<T>,Cursor<T>,EuclideanSpace,PlanarImg.PlanarContainerSampler,Iterator,Localizable,RealCursor<T>,RealLocalizable,Sampler<T>
Basic Iterator for 2d
PlanarContainers- Author:
- Stephan Saalfeld
-
Field Summary
Fields inherited from class net.imglib2.img.planar.PlanarCursor
container, index, lastIndex, lastSliceIndex, sliceIndex, typeFields inherited from class net.imglib2.AbstractEuclideanSpace
n -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidfwd()Move forward.intgetIntPosition(int dim) Return the current position in a given dimension.booleanhasNext()Note: This test is fragile in a sense that it returns true for elements after the last element as well.voidlocalize(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, toStringMethods inherited from class net.imglib2.AbstractCursorInt
getDoublePosition, getFloatPosition, getLongPosition, localize, localize, localize, next, removeMethods inherited from class net.imglib2.AbstractEuclideanSpace
numDimensionsMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface net.imglib2.EuclideanSpace
numDimensionsMethods inherited from interface java.util.Iterator
forEachRemaining
-
Constructor Details
-
PlanarCursor2D
-
-
Method Details
-
hasNext
public boolean hasNext()Description copied from class:PlanarCursorNote: This test is fragile in a sense that it returns true for elements after the last element as well.- Specified by:
hasNextin interfaceIterator<T extends NativeType<T>>- Specified by:
hasNextin interfaceIterator- Overrides:
hasNextin classPlanarCursor<T extends NativeType<T>>- Returns:
- false for the last element
-
fwd
public void fwd()Description copied from interface:IteratorMove forward.- Specified by:
fwdin interfaceIterator- Overrides:
fwdin classPlanarCursor<T extends NativeType<T>>
-
localize
public void localize(int[] position) Description copied from interface:LocalizableWrite the current position into the passed array.- Specified by:
localizein interfaceLocalizable- Overrides:
localizein classPlanarCursor<T extends NativeType<T>>- Parameters:
position- receives current position
-
getIntPosition
public int getIntPosition(int dim) Description copied from interface:LocalizableReturn the current position in a given dimension.- Specified by:
getIntPositionin interfaceLocalizable- Overrides:
getIntPositionin classPlanarCursor<T extends NativeType<T>>- Parameters:
dim- dimension- Returns:
- dimension of current position
-