public class DiamondTipsNeighborhoodCursor<T> extends DiamondTipsNeighborhoodLocalizableSampler<T> implements Cursor<Neighborhood<T>>
currentNeighborhood, currentPos, factory, radius, source, sourceInterval
n
Constructor and Description |
---|
DiamondTipsNeighborhoodCursor(DiamondTipsNeighborhoodCursor<T> c) |
DiamondTipsNeighborhoodCursor(RandomAccessibleInterval<T> source,
long radius,
DiamondTipsNeighborhoodFactory<T> factory) |
Modifier and Type | Method and Description |
---|---|
DiamondTipsNeighborhoodCursor<T> |
copy() |
DiamondTipsNeighborhoodCursor<T> |
copyCursor() |
void |
fwd()
Move forward.
|
boolean |
hasNext()
Returns true if another step forward is possible.
|
void |
jumpFwd(long steps)
Move steps × forward.
|
Neighborhood<T> |
next() |
void |
remove() |
void |
reset()
Reset the
Iterator , that is put it to where it would be if newly
created. |
get, getDoublePosition, getFloatPosition, getIntPosition, getLongPosition, localize, localize, localize, localize
numDimensions
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEachRemaining
getDoublePosition, getFloatPosition, getIntPosition, getLongPosition, localize, localize, localize, positionAsLongArray, positionAsPoint
localize, localize, localize, positionAsDoubleArray, positionAsRealPoint
numDimensions
public DiamondTipsNeighborhoodCursor(RandomAccessibleInterval<T> source, long radius, DiamondTipsNeighborhoodFactory<T> factory)
public DiamondTipsNeighborhoodCursor(DiamondTipsNeighborhoodCursor<T> c)
public void fwd()
Iterator
public void reset()
Iterator
Iterator
, that is put it to where it would be if newly
created.public boolean hasNext()
Iterator
hasNext
in interface Iterator<Neighborhood<T>>
public void jumpFwd(long steps)
Iterator
steps
- number of steps to move forwardpublic Neighborhood<T> next()
next
in interface Iterator<Neighborhood<T>>
public void remove()
remove
in interface Iterator<Neighborhood<T>>
public DiamondTipsNeighborhoodCursor<T> copy()
copy
in interface Sampler<Neighborhood<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 DiamondTipsNeighborhoodCursor<T> copyCursor()
copyCursor
in interface Cursor<Neighborhood<T>>
copyCursor
in interface RealCursor<Neighborhood<T>>
Copyright © 2015–2022 ImgLib2. All rights reserved.