public class RayIterator extends java.lang.Object implements SDBIterator
DataSource
along a line segment.Constructor and Description |
---|
RayIterator(DataSource dataSource,
javax.vecmath.Point3d begin,
javax.vecmath.Point3d end,
IndexSpaceID blockSize,
double step)
Reads data from dataSource along the line seqment between p1 and p2.
|
Modifier and Type | Method and Description |
---|---|
void |
end()
Advance the iterator to the last valid value in the iteration.
|
javax.vecmath.Point3d |
getBeginPoint()
Returns the begin, current and end point or block coordinates.
|
java.lang.Object |
getCurrentElement() |
int |
getCurrentElementIndex() |
javax.vecmath.Point3d |
getCurrentPoint() |
javax.vecmath.Point3d |
getEndPoint() |
javax.vecmath.Vector3d |
getLineNormal() |
int |
getNumberOfElements() |
javax.vecmath.Point3d |
getOriginalBeginPoint() |
javax.vecmath.Point3d |
getOriginalEndPoint() |
double |
getStep() |
TransferFunction |
getTransferFunction() |
void |
init()
Perform any necessary initialization, and set the iterator value
to the first value in the iteration.
|
boolean |
next()
Advance the iterator by one step.
|
boolean |
valid()
Return true if the iterator currently has a valid value, false otherwise.
|
public RayIterator(DataSource dataSource, javax.vecmath.Point3d begin, javax.vecmath.Point3d end, IndexSpaceID blockSize, double step)
public void init()
SDBIterator
init
in interface SDBIterator
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 final TransferFunction getTransferFunction()
public javax.vecmath.Point3d getBeginPoint()
public javax.vecmath.Point3d getOriginalBeginPoint()
public javax.vecmath.Point3d getCurrentPoint()
public javax.vecmath.Point3d getEndPoint()
public javax.vecmath.Point3d getOriginalEndPoint()
public javax.vecmath.Vector3d getLineNormal()
public int getCurrentElementIndex()
public java.lang.Object getCurrentElement()
public int getNumberOfElements()
public double getStep()