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, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetDataSource, getNormalArray, getPlaneShapeArray, getSpaceBounds, getSpaceShapeArray, setDataSourcepublic SliceIterator(byte[] outsideColor,
byte[] insideColor,
Volume volume,
Plane plane,
DataSource dataSource,
double step)
public void init()
Sliceinit in interface SDBIteratorinit in class Slicepublic boolean next()
SDBIteratornext in interface SDBIteratorpublic boolean prev()
public boolean valid()
SDBIteratorvalid in interface SDBIteratorpublic void end()
SDBIteratorend in interface SDBIteratorpublic void setSPCacheBlocks(boolean spBlockShape)
ObliquePlaneIteratorInterfacesetSPCacheBlocks in interface ObliquePlaneIteratorInterfacepublic double getStep()