T - public abstract class AbstractUnsafeCursor<T extends NativeLongAccessType<T>> extends AbstractCursor<T>
| Modifier and Type | Field and Description |
|---|---|
protected UnsafeImg<T,?> |
img
Source image
|
protected long |
lastIndex
Last index
|
protected long |
offset
Offset of this cursor
|
protected long |
size
Size of this cursor
|
protected T |
type
An instance of T
|
n| Modifier | Constructor and Description |
|---|---|
protected |
AbstractUnsafeCursor(AbstractUnsafeCursor<T> cursor)
TODO Javadoc
|
|
AbstractUnsafeCursor(UnsafeImg<T,?> img,
long offset,
long size)
TODO Javadoc
|
| Modifier and Type | Method and Description |
|---|---|
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 dim)
Return the current position in a given dimension.
|
long |
getLongPosition(int dim)
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 |
localize(long[] position)
Write the current position into the passed array.
|
void |
reset() |
String |
toString() |
copy, copyCursor, getDoublePosition, getFloatPosition, localize, localize, next, removenumDimensionsclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitforEachRemaininglocalize, positionAsLongArray, positionAsPointlocalize, positionAsDoubleArray, positionAsRealPointnumDimensionsprotected final long offset
protected final long size
protected final T extends NativeLongAccessType<T> type
protected final UnsafeImg<T extends NativeLongAccessType<T>,?> img
protected final long lastIndex
protected AbstractUnsafeCursor(AbstractUnsafeCursor<T> cursor)
cursor - public T get()
SamplerSampler points at.public boolean hasNext()
public void jumpFwd(long steps)
AbstractCursorjumpFwd in class AbstractCursor<T extends NativeLongAccessType<T>>steps - number of steps to move forwardpublic void fwd()
public void reset()
public String toString()
toString in class AbstractCursor<T extends NativeLongAccessType<T>>public int getIntPosition(int dim)
LocalizablegetIntPosition in interface LocalizablegetIntPosition in class AbstractCursor<T extends NativeLongAccessType<T>>dim - dimensionpublic void localize(int[] position)
Localizablelocalize in interface Localizablelocalize in class AbstractCursor<T extends NativeLongAccessType<T>>position - receives current positionpublic long getLongPosition(int dim)
Localizabledim - dimensionpublic void localize(long[] position)
Localizableposition - receives current positionCopyright © 2015–2022 ImgLib2. All rights reserved.