public final class KDTree.KDTreeCursor extends KDTreeNode<T> implements RealCursor<T>
| Modifier and Type | Method and Description |
|---|---|
KDTree.KDTreeCursor |
copy() |
void |
fwd()
Move forward.
|
T |
getType()
Get an instance of
T. |
boolean |
hasNext()
Returns true if another step forward is possible.
|
void |
reset()
Reset the
Iterator, that is put it to where it would be if newly
created. |
get, getDoublePosition, getSplitCoordinate, getSplitDimension, left, nodeIndex, numDimensions, right, setNodeIndex, squDistanceTo, squDistanceTo, squDistanceToclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcopyCursor, nextgetDoublePosition, getFloatPosition, localize, localize, localize, positionAsDoubleArray, positionAsRealPointnumDimensionsforEachRemaining, removepublic void fwd()
Iteratorpublic void reset()
IteratorIterator, that is put it to where it would be if newly
created.public boolean hasNext()
Iteratorpublic T getType()
TypedT.
It should not be assumed that the returned T instance is an
independent copy. In particular, repeated calls to getType() may
return the same instance.
public KDTree.KDTreeCursor copy()
copy in interface RealCursor<T>copy in interface Sampler<T>copy in class KDTreeNode<T>Sampler in the same state accessing the same
values.
It does NOT copy T, just the state of the Sampler.
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 an
ArrayCursor for example)Copyright © 2009–2024 ImgLib2. All rights reserved.