|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.unh.sdb.datasource.Slice
edu.unh.sdb.datasource.SliceIterator
public class SliceIterator
It allows to 'iterate' a Slice
along is normal vector, calculating
the intersection with a Volume
and reading data from a
DataSource
to fill that intersection.
Constructor Summary | |
---|---|
SliceIterator(byte[] outsideColor,
byte[] insideColor,
Volume volume,
Plane plane,
DataSource dataSource)
|
Method Summary | |
---|---|
void |
end()
Advance the iterator to the last valid value in the iteration. |
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. |
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. |
Methods inherited from class edu.unh.sdb.datasource.Slice |
---|
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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface edu.unh.sdb.datasource.ObliquePlaneIteratorInterface |
---|
getDataSource, getNormalArray, getPlaneShapeArray, getSpaceBounds, getSpaceShapeArray, setDataSource |
Constructor Detail |
---|
public SliceIterator(byte[] outsideColor, byte[] insideColor, Volume volume, Plane plane, DataSource dataSource)
Method Detail |
---|
public void init()
Slice
init
in interface SDBIterator
init
in class Slice
public boolean next()
SDBIterator
next
in interface SDBIterator
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
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |