T
- the pixel typepublic final class ListCursor<T> extends AbstractCursorInt<T>
n
Modifier | Constructor and Description |
---|---|
|
ListCursor(AbstractListImg<T> img) |
protected |
ListCursor(ListCursor<T> cursor) |
Modifier and Type | Method and Description |
---|---|
ListCursor<T> |
copy() |
ListCursor<T> |
copyCursor() |
void |
fwd() |
T |
get()
Access the actual T instance providing access to a pixel,
sub-pixel or integral region value the
Sampler points at. |
int |
getIntPosition(int d)
Return the current position in a given dimension.
|
boolean |
hasNext() |
void |
jumpFwd(long steps)
Highly recommended to override this with a more efficient version.
|
void |
localize(int[] position)
Write the current position into the passed array.
|
void |
reset() |
void |
set(T t) |
getDoublePosition, getFloatPosition, getLongPosition, localize, localize, localize, next, remove, toString
numDimensions
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
forEachRemaining
localize, positionAsLongArray, positionAsPoint
localize, positionAsDoubleArray, positionAsRealPoint
numDimensions
protected ListCursor(ListCursor<T> cursor)
public ListCursor(AbstractListImg<T> img)
public T get()
Sampler
Sampler
points at.public void set(T t)
public ListCursor<T> copy()
copy
in interface Sampler<T>
copy
in class AbstractCursorInt<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)public ListCursor<T> copyCursor()
copyCursor
in interface Cursor<T>
copyCursor
in interface RealCursor<T>
copyCursor
in class AbstractCursorInt<T>
public boolean hasNext()
public void jumpFwd(long steps)
AbstractCursorInt
jumpFwd
in class AbstractCursorInt<T>
steps
- number of steps to move forwardpublic void fwd()
public void reset()
public void localize(int[] position)
Localizable
position
- receives current positionpublic int getIntPosition(int d)
Localizable
d
- dimensionCopyright © 2015–2022 ImgLib2. All rights reserved.