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() |
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.
|
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() |
String |
toString() |
getDoublePosition, getFloatPosition, getLongPosition, localize, localize, localize, localize, localizenumDimensionsclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitcopyCursornextforEachRemaining, removepositionAsLongArray, positionAsPointpositionAsDoubleArray, 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 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.
getType in interface Sampler<T extends NativeType<T>>getType in interface Typed<T extends NativeType<T>>Tpublic PlanarPlaneSubsetCursor<T> copy()
copy in interface Cursor<T extends NativeType<T>>copy in interface RealCursor<T extends NativeType<T>>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 final boolean hasNext()
hasNext in interface Iterator<T extends NativeType<T>>public final void fwd()
public final void jumpFwd(long steps)
public 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 position, length must be ≥ EuclideanSpace.numDimensions()public final int getIntPosition(int dim)
getIntPosition in interface Localizabledim - dimensionCopyright © 2009–2024 ImgLib2. All rights reserved.