Package net.imglib2.img.planar
Class PlanarCursor1D<T extends NativeType<T>>
java.lang.Object
net.imglib2.AbstractEuclideanSpace
net.imglib2.AbstractCursorInt<T>
net.imglib2.img.planar.PlanarCursor<T>
net.imglib2.img.planar.PlanarCursor1D<T>
- All Implemented Interfaces:
Iterator<T>
,Cursor<T>
,EuclideanSpace
,PlanarImg.PlanarContainerSampler
,Iterator
,Localizable
,RealCursor<T>
,RealLocalizable
,Sampler<T>
Basic Iterator for 1d
PlanarContainers
- 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 -
Method Summary
Modifier and TypeMethodDescriptionint
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, fwd, 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
Methods inherited from interface java.util.Iterator
forEachRemaining
-
Constructor Details
-
PlanarCursor1D
-
-
Method Details
-
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 interfaceIterator<T extends NativeType<T>>
- Specified by:
hasNext
in interfaceIterator
- Overrides:
hasNext
in classPlanarCursor<T extends NativeType<T>>
- Returns:
- false for the last element
-
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
-