T - public class PlanarPlaneSubsetCursor<T extends NativeType<T>> extends AbstractCursorInt<T> implements PlanarImg.PlanarContainerSampler
PlanarContainersn| Modifier | Constructor and Description |
|---|---|
|
PlanarPlaneSubsetCursor(PlanarImg<T,?> container,
Interval interval)
Constructor
|
protected |
PlanarPlaneSubsetCursor(PlanarPlaneSubsetCursor<T> cursor)
Copy Constructor
|
| Modifier and Type | Method and Description |
|---|---|
PlanarPlaneSubsetCursor<T> |
copy() |
PlanarPlaneSubsetCursor<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 |
getCurrentSliceIndex() |
int |
getIntPosition(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 |
reset() |
String |
toString() |
getDoublePosition, getFloatPosition, getLongPosition, localize, localize, localize, next, removenumDimensionsclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitforEachRemaininglocalize, positionAsLongArray, positionAsPointlocalize, positionAsDoubleArray, positionAsRealPointnumDimensionsprotected PlanarPlaneSubsetCursor(PlanarPlaneSubsetCursor<T> cursor)
cursor - - the cursor to copy from.public final int getCurrentSliceIndex()
getCurrentSliceIndex in interface PlanarImg.PlanarContainerSamplerpublic final T get()
Sampler points at.get in interface Sampler<T extends NativeType<T>>public PlanarPlaneSubsetCursor<T> copy()
copy in interface Sampler<T extends NativeType<T>>copy in class AbstractCursorInt<T extends NativeType<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 PlanarPlaneSubsetCursor<T> copyCursor()
copyCursor in interface Cursor<T extends NativeType<T>>copyCursor in interface RealCursor<T extends NativeType<T>>copyCursor in class AbstractCursorInt<T extends NativeType<T>>public final boolean hasNext()
hasNext in interface Iterator<T extends NativeType<T>>public final void fwd()
public final void jumpFwd(long steps)
jumpFwd in class AbstractCursorInt<T extends NativeType<T>>steps - number of steps to move forwardpublic final void reset()
public String toString()
toString in class AbstractCursorInt<T extends NativeType<T>>public final void localize(int[] position)
localize in interface Localizableposition - receives current positionpublic final int getIntPosition(int dim)
getIntPosition in interface Localizabledim - dimensionCopyright © 2015–2022 ImgLib2. All rights reserved.