Package net.imglib2
Class KDTree.KDTreeCursor
- java.lang.Object
-
- net.imglib2.KDTreeNode<T>
-
- net.imglib2.KDTree.KDTreeCursor
-
- All Implemented Interfaces:
java.util.Iterator<T>,EuclideanSpace,Iterator,RealCursor<T>,RealLocalizable,Sampler<T>,Typed<T>
public final class KDTree.KDTreeCursor extends KDTreeNode<T> implements RealCursor<T>
-
-
Constructor Summary
Constructors Constructor Description KDTreeCursor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description KDTree.KDTreeCursorcopy()voidfwd()Move forward.TgetType()Get an instance ofT.booleanhasNext()Returns true if another step forward is possible.voidreset()Reset theIterator, that is put it to where it would be if newly created.-
Methods inherited from class net.imglib2.KDTreeNode
get, getDoublePosition, getSplitCoordinate, getSplitDimension, left, nodeIndex, numDimensions, right, setNodeIndex, squDistanceTo, squDistanceTo, squDistanceTo
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface net.imglib2.EuclideanSpace
numDimensions
-
Methods inherited from interface net.imglib2.RealCursor
copyCursor, next
-
Methods inherited from interface net.imglib2.RealLocalizable
getDoublePosition, getFloatPosition, localize, localize, localize, positionAsDoubleArray, positionAsRealPoint
-
-
-
-
Method Detail
-
fwd
public void fwd()
Description copied from interface:IteratorMove forward.
-
reset
public void reset()
Description copied from interface:IteratorReset theIterator, that is put it to where it would be if newly created.
-
hasNext
public boolean hasNext()
Description copied from interface:IteratorReturns true if another step forward is possible.
-
getType
public T getType()
Description copied from interface:TypedGet an instance ofT.It should not be assumed that the returned
Tinstance is an independent copy. In particular, repeated calls togetType()may return the same instance.
-
copy
public KDTree.KDTreeCursor copy()
- Specified by:
copyin interfaceRealCursor<T>- Specified by:
copyin interfaceSampler<T>- Overrides:
copyin classKDTreeNode<T>- Returns:
- - A new
Samplerin the same state accessing the same values. It does NOT copy T, just the state of theSampler. Otherwise use T.copy() if available. Sampler.copy().get() == Sampler.get(), i.e. both hold the same value, not necessarily the same instance (this is the case for anArrayCursorfor example)
-
-