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, positioncontainer, 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, setPositioncreatePositionArray, fwd, getArrayIndex, getDimensions, getDimensions, getImage, getNumDimensions, getStorageContainer, isActive, iterator, next, remove, setDebugclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitclose, createPositionArray, getArrayIndex, getImage, getStorageContainer, getStorageIndex, getType, isActive, setDebugforEachRemaining, next, removeforEach, iterator, spliteratorgetDimensions, getDimensions, getNumDimensionsgetPositionAsStringpublic 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 LocalizablePlanepublic void reset(int planeDimA,
int planeDimB)
reset in interface LocalizablePlanepublic void reset()
public void getPosition(int[] position)
LocalizablegetPosition in interface LocalizablegetPosition in class ConstantLocalizableByDimCursor<T extends Type<T>>public int[] getPosition()
LocalizablegetPosition in interface LocalizablegetPosition in class ConstantLocalizableByDimCursor<T extends Type<T>>public int getPosition(int dim)
LocalizablegetPosition in interface LocalizablegetPosition in class ConstantLocalizableByDimCursor<T extends Type<T>>public void setPosition(int[] position)
setPosition in interface LocalizableByDimsetPosition in class ConstantLocalizableByDimCursor<T extends Type<T>>Copyright © 2015–2021 Fiji. All rights reserved.