Package net.imglib2
Class KDTree.KDTreeCursor
java.lang.Object
net.imglib2.KDTreeNode<T>
net.imglib2.KDTree.KDTreeCursor
- All Implemented Interfaces:
Iterator<T>,EuclideanSpace,Iterator,RealCursor<T>,RealLocalizable,Sampler<T>,Typed<T>
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class net.imglib2.KDTreeNode
get, getDoublePosition, getSplitCoordinate, getSplitDimension, left, nodeIndex, numDimensions, right, setNodeIndex, squDistanceTo, squDistanceTo, squDistanceToMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.imglib2.EuclideanSpace
numDimensionsMethods inherited from interface java.util.Iterator
forEachRemaining, removeMethods inherited from interface net.imglib2.RealCursor
copyCursor, nextMethods inherited from interface net.imglib2.RealLocalizable
getDoublePosition, getFloatPosition, localize, localize, localize, positionAsDoubleArray, positionAsRealPoint
-
Constructor Details
-
KDTreeCursor
KDTreeCursor()
-
-
Method Details
-
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
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
- 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)
-