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() |
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.
|
T |
getType()
Get an instance of
T. |
boolean |
hasNext() |
void |
jumpFwd(long steps) |
void |
localize(int[] position)
Write the current position into the passed array.
|
void |
reset() |
void |
set(T t) |
getDoublePosition, getFloatPosition, getLongPosition, localize, localize, localize, localize, localize, toStringnumDimensionsclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitcopyCursornextforEachRemaining, removepositionAsLongArray, positionAsPointpositionAsDoubleArray, positionAsRealPointnumDimensionsprotected ListCursor(ListCursor<T> cursor)
public ListCursor(AbstractListImg<T> img)
public T get()
SamplerSampler points at.public 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.
Tpublic void set(T t)
public ListCursor<T> copy()
copy in interface Cursor<T>copy in interface RealCursor<T>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 boolean hasNext()
public void jumpFwd(long steps)
public void fwd()
public void reset()
public void localize(int[] position)
Localizableposition - receives current position, length must be ≥ EuclideanSpace.numDimensions()public int getIntPosition(int d)
Localizabled - dimensionCopyright © 2009–2024 ImgLib2. All rights reserved.