public class DynamicLocalizableCursor<T extends Type<T>> extends DynamicCursor<T> implements LocalizableCursor<T>
Modifier and Type | Field and Description |
---|---|
protected int[] |
dimensions |
protected int |
numDimensions |
protected int[] |
position |
accessor, container, type
debug, image, isClosed
Constructor and Description |
---|
DynamicLocalizableCursor(DynamicContainer<T,?> container,
Image<T> image,
T type) |
Modifier and Type | Method and Description |
---|---|
void |
fwd() |
void |
fwd(long steps) |
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.
|
String |
getPositionAsString()
Create a human-readable
String representation of the current
position. |
boolean |
hasNext() |
void |
reset() |
String |
toString() |
close, getAccessor, getInternalIndex, getStorageContainer, getStorageIndex, getType
createPositionArray, getArrayIndex, getDimensions, getDimensions, getImage, getNumDimensions, isActive, iterator, next, remove, setDebug
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
close, createPositionArray, getArrayIndex, getImage, getStorageContainer, getStorageIndex, getType, isActive, setDebug
forEachRemaining, next, remove
forEach, iterator, spliterator
getDimensions, getDimensions, getNumDimensions
protected final int numDimensions
protected final int[] position
protected final int[] dimensions
public DynamicLocalizableCursor(DynamicContainer<T,?> container, Image<T> image, T type)
public void fwd()
public void fwd(long steps)
public boolean hasNext()
public void reset()
public void getPosition(int[] position)
Localizable
getPosition
in interface Localizable
public int[] getPosition()
Localizable
getPosition
in interface Localizable
public int getPosition(int dim)
Localizable
getPosition
in interface Localizable
public String getPositionAsString()
Localizable
String
representation of the current
position.getPositionAsString
in interface Localizable
Copyright © 2015–2021 Fiji. All rights reserved.