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:
java.util.Iterator<T>,Cursor<T>,EuclideanSpace,PlanarImg.PlanarContainerSampler,Iterator,Localizable,RealCursor<T>,RealLocalizable,Sampler<T>,Typed<T>
public class PlanarCursor1D<T extends NativeType<T>> extends PlanarCursor<T>
Basic Iterator for 1dPlanarContainers
-
-
Field Summary
-
Fields inherited from class net.imglib2.img.planar.PlanarCursor
container, index, lastIndex, lastSliceIndex, sliceIndex, type, typeIndex
-
Fields inherited from class net.imglib2.AbstractEuclideanSpace
n
-
-
Constructor Summary
Constructors Constructor Description PlanarCursor1D(PlanarImg<T,?> container)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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, fwd, get, getCurrentSliceIndex, getType, jumpFwd, reset, toString
-
Methods inherited from class net.imglib2.AbstractCursorInt
getDoublePosition, getFloatPosition, getLongPosition, localize, 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, wait, wait, wait
-
Methods inherited from interface net.imglib2.Cursor
copyCursor
-
Methods inherited from interface net.imglib2.EuclideanSpace
numDimensions
-
Methods inherited from interface net.imglib2.Localizable
positionAsLongArray, positionAsPoint
-
Methods inherited from interface net.imglib2.RealCursor
next
-
Methods inherited from interface net.imglib2.RealLocalizable
positionAsDoubleArray, positionAsRealPoint
-
-
-
-
Method Detail
-
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 interfacejava.util.Iterator<T extends NativeType<T>>- Specified by:
hasNextin interfaceIterator- Overrides:
hasNextin classPlanarCursor<T extends NativeType<T>>- Returns:
- false for the last element
-
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
-
-