public class Array3DLocalizableByDimCursor<T extends Type<T>> extends ArrayLocalizableByDimCursor<T> implements LocalizableByDimCursor3D<T>
Modifier and Type | Field and Description |
---|---|
protected int |
x |
protected int |
y |
protected int |
z |
step
dimensions, numDimensions, position
maxIndex, type
debug, image, isClosed
Constructor and Description |
---|
Array3DLocalizableByDimCursor(Array3D<T,?> container,
Image<T> image,
T type) |
Modifier and Type | Method and Description |
---|---|
void |
bck(int dim) |
void |
bckX() |
void |
bckY() |
void |
bckZ() |
void |
fwd() |
void |
fwd(int dim) |
void |
fwd(long steps) |
void |
fwdX() |
void |
fwdY() |
void |
fwdZ() |
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 |
move(int steps,
int dim) |
void |
moveRel(int x,
int y,
int z) |
void |
moveTo(int x,
int y,
int z) |
void |
moveX(int steps) |
void |
moveY(int steps) |
void |
moveZ(int steps) |
void |
reset() |
void |
setPosition(int[] position) |
void |
setPosition(int position,
int dim) |
void |
setPosition(int posX,
int posY,
int posZ) |
void |
setPositionX(int pos) |
void |
setPositionY(int pos) |
void |
setPositionZ(int pos) |
createLinearByDimCursor, createLocalNeighborhoodCursor, createRegionOfInterestCursor, moveRel, moveTo, moveTo, setPosition
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
createLocalNeighborhoodCursor, createRegionOfInterestCursor
close, createPositionArray, getArrayIndex, getImage, getStorageIndex, getType, isActive, setDebug
forEachRemaining, hasNext, next, remove
forEach, iterator, spliterator
getDimensions, getDimensions, getNumDimensions
moveRel, moveTo, moveTo, setPosition
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 void fwd(int dim)
fwd
in interface LocalizableByDim
fwd
in class ArrayLocalizableByDimCursor<T extends Type<T>>
public void fwdX()
fwdX
in interface LocalizableByDim3D
public void fwdY()
fwdY
in interface LocalizableByDim3D
public void fwdZ()
fwdZ
in interface LocalizableByDim3D
public void move(int steps, int dim)
move
in interface LocalizableByDim
move
in class ArrayLocalizableByDimCursor<T extends Type<T>>
public void moveRel(int x, int y, int z)
moveRel
in interface LocalizableByDim3D
public void moveTo(int x, int y, int z)
moveTo
in interface LocalizableByDim3D
public void moveX(int steps)
moveX
in interface LocalizableByDim3D
public void moveY(int steps)
moveY
in interface LocalizableByDim3D
public void moveZ(int steps)
moveZ
in interface LocalizableByDim3D
public void bck(int dim)
bck
in interface LocalizableByDim
bck
in class ArrayLocalizableByDimCursor<T extends Type<T>>
public void bckX()
bckX
in interface LocalizableByDim3D
public void bckY()
bckY
in interface LocalizableByDim3D
public void bckZ()
bckZ
in interface LocalizableByDim3D
public void setPosition(int[] position)
setPosition
in interface LocalizableByDim
setPosition
in class ArrayLocalizableByDimCursor<T extends Type<T>>
public void setPosition(int posX, int posY, int posZ)
setPosition
in interface LocalizableByDim3D
public void setPositionX(int pos)
setPositionX
in interface LocalizableByDim3D
public void setPositionY(int pos)
setPositionY
in interface LocalizableByDim3D
public void setPositionZ(int pos)
setPositionZ
in interface LocalizableByDim3D
public void setPosition(int position, int dim)
setPosition
in interface LocalizableByDim
setPosition
in class ArrayLocalizableByDimCursor<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.