public class SliceIterator extends Slice implements ObliquePlaneIteratorInterface
Slice
along is normal vector, calculating
the intersection with a Volume
and reading data from a
DataSource
to fill that intersection.Constructor and Description |
---|
SliceIterator(byte[] outsideColor,
byte[] insideColor,
Volume volume,
Plane plane,
DataSource dataSource,
double step) |
Modifier and Type | Method and Description |
---|---|
void |
end()
Advance the iterator to the last valid value in the iteration.
|
double |
getStep() |
void |
init()
Initialize the slice by allocating memory for the data to be read,
seting the default transfer function and performing other initialisations
This initialisation can be done once per iteration.
|
boolean |
next()
Advance the iterator by one step.
|
boolean |
prev() |
void |
setSPCacheBlocks(boolean spBlockShape)
Indicate to this iterator whether the underlying cache has blocks shaped according to
the plane normal.
|
boolean |
valid()
Return true if the iterator currently has a valid value, false otherwise.
|
calculateSliceTranslation, getBounds, getBytesPerTexel, getDataSource, getIntersection2d, getIntersection3d, getMaxProjectionAxis, getNormalArray, getPlane, getPlaneShapeArray, getSpaceBounds, getSpaceShapeArray, getTextureCoordinates, getTextureData, getTextureDimensions, getVolume, log, projectTuple, read, setDataSource, setGoodScanConversionOrder, setInsideColor, setOutsideColor, setPlane, setTransferFunction, setVertical, setVolume, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getDataSource, getNormalArray, getPlaneShapeArray, getSpaceBounds, getSpaceShapeArray, setDataSource
public SliceIterator(byte[] outsideColor, byte[] insideColor, Volume volume, Plane plane, DataSource dataSource, double step)
public void init()
Slice
init
in interface SDBIterator
init
in class Slice
public boolean next()
SDBIterator
next
in interface SDBIterator
public boolean prev()
public boolean valid()
SDBIterator
valid
in interface SDBIterator
public void end()
SDBIterator
end
in interface SDBIterator
public void setSPCacheBlocks(boolean spBlockShape)
ObliquePlaneIteratorInterface
setSPCacheBlocks
in interface ObliquePlaneIteratorInterface
public double getStep()