T
- public class ConstantLocalizablePlaneCursor<T extends Type<T>> extends ConstantLocalizableByDimCursor<T> implements LocalizablePlaneCursor<T>
LocalizablePlaneCursor
that always returns the same value at each position. Here I just used Saalfeld's
implementation from the ShapeListLocalizablePlaneCursor
.Modifier and Type | Field and Description |
---|---|
protected int |
planeDimA |
protected int |
planeDimB |
dimensions, numDimensions, position
container, debug, image, isClosed
Constructor and Description |
---|
ConstantLocalizablePlaneCursor(ConstantContainer<T> container,
Image<T> image,
T type)
A simple
LocalizablePlaneCursor that always returns the same value at each position. |
Modifier and Type | Method and Description |
---|---|
void |
fwd() |
int[] |
getPosition()
Return a copy of the current position.
|
int |
getPosition(int dim)
Return the current position in a given dimension.
|
void |
getPosition(int[] position)
Write the current position into the passed array.
|
boolean |
hasNext()
TODO Not the most efficient way to calculate this on demand.
|
void |
reset() |
void |
reset(int planeDimA,
int planeDimB) |
void |
reset(int planeDimA,
int planeDimB,
int[] dimensionPositions) |
void |
setPosition(int[] position) |
bck, close, createLocalNeighborhoodCursor, createRegionOfInterestCursor, fwd, getPositionAsString, getStorageIndex, getType, move, moveRel, moveTo, moveTo, setPosition, setPosition
createPositionArray, fwd, getArrayIndex, getDimensions, getDimensions, getImage, getNumDimensions, getStorageContainer, isActive, iterator, next, remove, setDebug
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
close, createPositionArray, getArrayIndex, getImage, getStorageContainer, getStorageIndex, getType, isActive, setDebug
forEachRemaining, next, remove
forEach, iterator, spliterator
getDimensions, getDimensions, getNumDimensions
getPositionAsString
public ConstantLocalizablePlaneCursor(ConstantContainer<T> container, Image<T> image, T type)
LocalizablePlaneCursor
that always returns the same value at each position. Here I just used Saalfeld's
implementation from the ShapeListLocalizablePlaneCursor
.T
- public boolean hasNext()
public void fwd()
public void reset(int planeDimA, int planeDimB, int[] dimensionPositions)
reset
in interface LocalizablePlane
public void reset(int planeDimA, int planeDimB)
reset
in interface LocalizablePlane
public void reset()
public void getPosition(int[] position)
Localizable
getPosition
in interface Localizable
getPosition
in class ConstantLocalizableByDimCursor<T extends Type<T>>
public int[] getPosition()
Localizable
getPosition
in interface Localizable
getPosition
in class ConstantLocalizableByDimCursor<T extends Type<T>>
public int getPosition(int dim)
Localizable
getPosition
in interface Localizable
getPosition
in class ConstantLocalizableByDimCursor<T extends Type<T>>
public void setPosition(int[] position)
setPosition
in interface LocalizableByDim
setPosition
in class ConstantLocalizableByDimCursor<T extends Type<T>>
Copyright © 2015–2021 Fiji. All rights reserved.