public interface Cursor<T> extends RealCursor<T>, Localizable
Cursor is a combination of several interfaces to achieve this. The
Iterator interface is used to iterate the set. Use
Iterator.fwd() to advance the cursor and
to check whether there are more elements. Note, that the Cursor starts
before the first element, i.e., you have to call
to move to the first element.
For convenience, Cursor also extends the
so that you are able to use Cursors in for-each loops. Calling the
Iterator.next() method is equivalent to calling
get(). That is, after
next() the Cursor is
on the element returned by
get() can be used to
obtain that element (again), and
getPosition() to obtain its
Iterator.remove() method is not supported by
imglib Cursors, in general.
It is not guaranteed that a Cursor will perform bounds checking. Asking the position or value of a Cursor that was not advanced to its first element, or was moved beyond its last element, has undefined results.
|Modifier and Type||Method and Description|
getDoublePosition, getFloatPosition, getIntPosition, getLongPosition, localize, localize
Copyright © 2015–2019 ImgLib2. All rights reserved.