public class SlicingCursor<T> extends AbstractEuclideanSpace implements Cursor<T>
n| Modifier | Constructor and Description |
|---|---|
protected |
SlicingCursor(SlicingCursor<T> cursor) |
| Modifier and Type | Method and Description |
|---|---|
SlicingCursor<T> |
copy() |
SlicingCursor<T> |
copyCursor() |
void |
fwd()
Move forward.
|
T |
get()
Access the actual T instance providing access to a pixel,
sub-pixel or integral region value the
Sampler points at. |
double |
getDoublePosition(int d)
Return the current position in a given dimension.
|
float |
getFloatPosition(int d)
Return the current position in a given dimension.
|
int |
getIntPosition(int d)
Return the current position in a given dimension.
|
long |
getLongPosition(int d)
Return the current position in a given dimension.
|
boolean |
hasNext()
Returns true if another step forward is possible.
|
void |
jumpFwd(long steps)
Move steps × forward.
|
void |
localize(double[] position)
Write the current position into the passed array.
|
void |
localize(float[] position)
Write the current position into the passed array.
|
void |
localize(int[] position)
Write the current position into the passed array.
|
void |
localize(long[] position)
Write the current position into the passed array.
|
T |
next() |
void |
remove() |
void |
reset()
Reset the
Iterator, that is put it to where it would be if newly
created. |
numDimensionsclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEachRemaininglocalize, positionAsLongArray, positionAsPointlocalize, positionAsDoubleArray, positionAsRealPointnumDimensionsprotected SlicingCursor(SlicingCursor<T> cursor)
public void localize(int[] position)
localize in interface Localizableposition - receives current positionpublic void localize(long[] position)
localize in interface Localizableposition - receives current positionpublic int getIntPosition(int d)
getIntPosition in interface Localizabled - dimensionpublic long getLongPosition(int d)
getLongPosition in interface Localizabled - dimensionpublic void localize(float[] position)
localize in interface RealLocalizableposition - receives current positionpublic void localize(double[] position)
localize in interface RealLocalizableposition - receives current positionpublic float getFloatPosition(int d)
getFloatPosition in interface LocalizablegetFloatPosition in interface RealLocalizabled - dimensionpublic double getDoublePosition(int d)
getDoublePosition in interface LocalizablegetDoublePosition in interface RealLocalizabled - dimensionpublic T get()
Sampler points at.public SlicingCursor<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 SlicingCursor<T> copyCursor()
copyCursor in interface Cursor<T>copyCursor in interface RealCursor<T>public void jumpFwd(long steps)
steps - number of steps to move forwardpublic void fwd()
public void reset()
Iterator, that is put it to where it would be if newly
created.public boolean hasNext()
Copyright © 2015–2022 ImgLib2. All rights reserved.