public class Array3DLocalizableCursor<T extends Type<T>> extends ArrayLocalizableCursor<T> implements LocalizableCursor3D<T>
Modifier and Type | Field and Description |
---|---|
protected int |
x |
protected int |
y |
protected int |
z |
dimensions, numDimensions, position
maxIndex, type
debug, image, isClosed
Constructor and Description |
---|
Array3DLocalizableCursor(Array3D<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. |
Array3D<T,?> |
getStorageContainer() |
int |
getX() |
int |
getY() |
int |
getZ() |
void |
reset() |
createLinearCursor, toString
close, getStorageIndex, getType, hasNext
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, getStorageIndex, getType, isActive, setDebug
forEachRemaining, hasNext, next, remove
forEach, iterator, spliterator
getDimensions, getDimensions, getNumDimensions
public void fwd()
public void fwd(long steps)
public int getX()
getX
in interface Localizable3D
public int getY()
getY
in interface Localizable3D
public int getZ()
getZ
in interface Localizable3D
public void reset()
public void getPosition(int[] position)
Localizable
getPosition
in interface Localizable
getPosition
in class ArrayLocalizableCursor<T extends Type<T>>
public Array3D<T,?> getStorageContainer()
getStorageContainer
in interface Cursor<T extends Type<T>>
getStorageContainer
in class ArrayCursor<T extends Type<T>>
public int[] getPosition()
Localizable
getPosition
in interface Localizable
getPosition
in class ArrayLocalizableCursor<T extends Type<T>>
public int getPosition(int dim)
Localizable
getPosition
in interface Localizable
getPosition
in class ArrayLocalizableCursor<T extends Type<T>>
public String getPositionAsString()
Localizable
String
representation of the current
position.getPositionAsString
in interface Localizable
getPositionAsString
in class ArrayLocalizableCursor<T extends Type<T>>
Copyright © 2015–2021 Fiji. All rights reserved.