public class CellLocalizablePlaneCursor<T extends Type<T>> extends CellLocalizableCursor<T> implements LocalizablePlaneCursor<T>
Modifier and Type | Field and Description |
---|---|
protected int[] |
cellEnd |
protected int[] |
cellPosition |
protected int[] |
cellStep |
protected int |
currentCellsPlane |
protected int |
incPlaneA |
protected int |
incPlaneB |
protected int |
maxCellsPlane |
protected int[] |
numCellsDim |
protected int |
planeDimA |
protected int |
planeDimB |
protected int |
planeSizeA |
protected int |
planeSizeB |
protected int[] |
step |
protected int[] |
tmp |
cellDimensions, cellOffset, dimensions, numDimensions, position
cell, cellInstance, cellMaxI, container, lastCell, numCells, type
debug, image, isClosed
Constructor and Description |
---|
CellLocalizablePlaneCursor(CellContainer<T,?> container,
Image<T> image,
T type) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
void |
fwd() |
protected void |
getCellData(int cell) |
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() |
void |
reset() |
void |
reset(int planeDimA,
int planeDimB) |
void |
reset(int planeDimA,
int planeDimB,
int[] dimensionPositions) |
protected void |
setPosition(int[] position) |
getPositionAsString, toString
getCurrentCell, getStorageContainer, getStorageIndex, getType
createPositionArray, fwd, getArrayIndex, getDimensions, getDimensions, getImage, getNumDimensions, isActive, iterator, next, remove, setDebug
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
createPositionArray, getArrayIndex, getImage, getStorageContainer, getStorageIndex, getType, isActive, setDebug
forEachRemaining, next, remove
forEach, iterator, spliterator
getDimensions, getDimensions, getNumDimensions
getPositionAsString
protected int maxCellsPlane
protected int currentCellsPlane
protected int planeDimA
protected int planeDimB
protected int planeSizeA
protected int planeSizeB
protected int incPlaneA
protected int incPlaneB
protected final int[] step
protected final int[] cellPosition
protected final int[] tmp
protected final int[] cellEnd
protected final int[] numCellsDim
protected final int[] cellStep
public CellLocalizablePlaneCursor(CellContainer<T,?> container, Image<T> image, T type)
public boolean hasNext()
public void fwd()
protected void getCellData(int cell)
getCellData
in class CellLocalizableCursor<T extends Type<T>>
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 CellLocalizableCursor<T extends Type<T>>
public int[] getPosition()
Localizable
getPosition
in interface Localizable
getPosition
in class CellLocalizableCursor<T extends Type<T>>
public int getPosition(int dim)
Localizable
getPosition
in interface Localizable
getPosition
in class CellLocalizableCursor<T extends Type<T>>
protected void setPosition(int[] position)
Copyright © 2015–2021 Fiji. All rights reserved.