T
- public class ConstantLocalizableByDimOutOfBoundsCursor<T extends Type<T>> extends ConstantLocalizableByDimCursor<T>
LocalizableByDimCursorOutOfBoundsCursor
that always returns the same value at each position. Here I just used Saalfeld's
implementation from the ShapeListLocalizableByDimCursorOutOfBoundsCursor
.dimensions, numDimensions, position
container, debug, image, isClosed
Constructor and Description |
---|
ConstantLocalizableByDimOutOfBoundsCursor(ConstantContainer<T> container,
Image<T> image,
T type,
OutOfBoundsStrategyFactory<T> outOfBoundsStrategyFactory) |
Modifier and Type | Method and Description |
---|---|
void |
bck(int dim) |
void |
fwd() |
void |
fwd(int dim) |
T |
getType() |
boolean |
hasNext()
TODO Not the most efficient way to calculate this on demand.
|
void |
move(int steps,
int dim) |
void |
moveTo(Localizable localizable) |
void |
reset() |
void |
setPosition(int[] position) |
void |
setPosition(int position,
int dim) |
void |
setPosition(Localizable localizable) |
close, createLocalNeighborhoodCursor, createRegionOfInterestCursor, getPosition, getPosition, getPosition, getPositionAsString, getStorageIndex, moveRel, moveTo
createPositionArray, fwd, getArrayIndex, getDimensions, getDimensions, getImage, getNumDimensions, getStorageContainer, isActive, iterator, next, remove, setDebug
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
createPositionArray, getArrayIndex, getImage, getStorageContainer, isActive, setDebug
forEachRemaining, next, remove
forEach, iterator, spliterator
getDimensions, getDimensions, getNumDimensions
public ConstantLocalizableByDimOutOfBoundsCursor(ConstantContainer<T> container, Image<T> image, T type, OutOfBoundsStrategyFactory<T> outOfBoundsStrategyFactory)
public boolean hasNext()
public void reset()
public T getType()
public void fwd()
public void fwd(int dim)
fwd
in interface LocalizableByDim
fwd
in class ConstantLocalizableByDimCursor<T extends Type<T>>
public void move(int steps, int dim)
move
in interface LocalizableByDim
move
in class ConstantLocalizableByDimCursor<T extends Type<T>>
public void bck(int dim)
bck
in interface LocalizableByDim
bck
in class ConstantLocalizableByDimCursor<T extends Type<T>>
public void setPosition(int[] position)
setPosition
in interface LocalizableByDim
setPosition
in class ConstantLocalizableByDimCursor<T extends Type<T>>
public void setPosition(int position, int dim)
setPosition
in interface LocalizableByDim
setPosition
in class ConstantLocalizableByDimCursor<T extends Type<T>>
public void moveTo(Localizable localizable)
moveTo
in interface LocalizableByDim
moveTo
in class ConstantLocalizableByDimCursor<T extends Type<T>>
public void setPosition(Localizable localizable)
setPosition
in interface LocalizableByDim
setPosition
in class ConstantLocalizableByDimCursor<T extends Type<T>>
Copyright © 2015–2021 Fiji. All rights reserved.