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>, Typed<T>
Basic Iterator for 2d
PlanarContainers-
Field Summary
Fields inherited from class PlanarCursor
container, index, lastIndex, lastSliceIndex, sliceIndex, type, typeIndexFields inherited from class 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 PlanarCursor
copy, get, getCurrentSliceIndex, getType, jumpFwd, reset, toStringMethods inherited from class AbstractCursorInt
getDoublePosition, getFloatPosition, getLongPosition, localize, localize, localize, localize, localizeMethods inherited from class AbstractEuclideanSpace
numDimensionsMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface Cursor
copyCursorMethods inherited from interface EuclideanSpace
numDimensionsMethods inherited from interface Iterator
forEachRemaining, removeMethods inherited from interface Localizable
positionAsLongArray, positionAsPointMethods inherited from interface RealCursor
nextMethods inherited from interface RealLocalizable
positionAsDoubleArray, positionAsRealPoint
-
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, length must be ≥EuclideanSpace.numDimensions()
-
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
-