public abstract class AbstractConvertedRealCursor<A,B> extends Object implements RealCursor<B>
Modifier and Type | Field and Description |
---|---|
protected RealCursor<A> |
source |
Constructor and Description |
---|
AbstractConvertedRealCursor(RealCursor<A> source) |
Modifier and Type | Method and Description |
---|---|
abstract AbstractConvertedRealCursor<A,B> |
copy() |
AbstractConvertedRealCursor<A,B> |
copyCursor() |
void |
fwd()
Move forward.
|
double |
getDoublePosition(int d)
Return the current position in a given dimension.
|
float |
getFloatPosition(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.
|
B |
next() |
int |
numDimensions()
Gets the space's number of dimensions.
|
void |
remove() |
void |
reset()
Reset the
Iterator , that is put it to where it would be if newly
created. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
localize, positionAsDoubleArray, positionAsRealPoint
forEachRemaining
protected final RealCursor<A> source
public AbstractConvertedRealCursor(RealCursor<A> source)
public void localize(float[] position)
RealLocalizable
localize
in interface RealLocalizable
position
- receives current positionpublic void localize(double[] position)
RealLocalizable
localize
in interface RealLocalizable
position
- receives current positionpublic float getFloatPosition(int d)
RealLocalizable
getFloatPosition
in interface RealLocalizable
d
- dimensionpublic double getDoublePosition(int d)
RealLocalizable
getDoublePosition
in interface RealLocalizable
d
- dimensionpublic int numDimensions()
EuclideanSpace
numDimensions
in interface EuclideanSpace
public void jumpFwd(long steps)
Iterator
steps
- number of steps to move forwardpublic void fwd()
Iterator
public void reset()
Iterator
Iterator
, that is put it to where it would be if newly
created.public boolean hasNext()
Iterator
public abstract AbstractConvertedRealCursor<A,B> copy()
copy
in interface Sampler<B>
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 AbstractConvertedRealCursor<A,B> copyCursor()
copyCursor
in interface RealCursor<B>
Copyright © 2015–2022 ImgLib2. All rights reserved.