T
- public abstract class AbstractLocalizingCursor<T> extends AbstractLocalizable implements Cursor<T>
Cursor
s. The current position is
maintained in the inherited long[] position
field.position
n
Constructor and Description |
---|
AbstractLocalizingCursor(int n) |
Modifier and Type | Method and Description |
---|---|
abstract AbstractLocalizingCursor<T> |
copy() |
abstract AbstractLocalizingCursor<T> |
copyCursor() |
void |
jumpFwd(long steps)
Move steps × forward.
|
T |
next() |
void |
remove() |
getDoublePosition, getFloatPosition, getIntPosition, getLongPosition, localize, localize, localize, localize
numDimensions
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEachRemaining, hasNext
getDoublePosition, getFloatPosition, getIntPosition, getLongPosition, localize, localize, localize, positionAsLongArray, positionAsPoint
localize, localize, localize, positionAsDoubleArray, positionAsRealPoint
numDimensions
public AbstractLocalizingCursor(int n)
n
- number of dimensions in the Img
.public void jumpFwd(long steps)
Iterator
steps
- number of steps to move forwardpublic abstract AbstractLocalizingCursor<T> copy()
copy
in interface Sampler<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 abstract AbstractLocalizingCursor<T> copyCursor()
copyCursor
in interface Cursor<T>
copyCursor
in interface RealCursor<T>
Copyright © 2015–2022 ImgLib2. All rights reserved.