public class RayCastingIterator extends java.lang.Object implements SDBIterator
Constructor and Description |
---|
RayCastingIterator(DataSource dataSource,
javax.vecmath.Vector3d initialOrientation,
javax.vecmath.Matrix4d rot,
javax.vecmath.Point3d start,
double baseX,
double baseY,
double height)
Start with a cuboid oriented along the Z axis, the base at z=-height/2
and the top at z = height/2.
|
Modifier and Type | Method and Description |
---|---|
void |
end()
Advance the iterator to the last valid value in the iteration.
|
javax.vecmath.Vector3d |
getBaseNormal() |
double |
getBaseX() |
double |
getBaseY() |
double |
getBeginX() |
double |
getBeginY() |
java.util.ArrayList<javax.vecmath.Point3d> |
getCornersDeterminingBb() |
RayIterator |
getCurrentRay() |
double |
getCurrentX() |
double |
getCurrentY() |
double |
getEndX() |
double |
getEndY() |
double |
getHeight() |
ISBounds |
getIterationBoundingBox() |
javax.vecmath.Matrix4d |
getRotation() |
javax.vecmath.Vector3d |
getSliceNormal() |
javax.vecmath.Point3d |
getStart() |
double |
getStep() |
javax.vecmath.Vector3d |
getViewingDirection() |
void |
init()
Perform any necessary initialization, and set the iterator value
to the first value in the iteration.
|
boolean |
isBacktoFront() |
boolean |
lastX() |
boolean |
lastY() |
boolean |
next()
Advance the iterator by one step.
|
void |
setBacktoFront(boolean backtoFront) |
void |
setBlockSize(IndexSpaceID blockSize) |
void |
setDataSource(DataSource dataSource) |
void |
setStep(double step) |
boolean |
valid()
Return true if the iterator currently has a valid value, false otherwise.
|
public RayCastingIterator(DataSource dataSource, javax.vecmath.Vector3d initialOrientation, javax.vecmath.Matrix4d rot, javax.vecmath.Point3d start, double baseX, double baseY, double height)
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 boolean lastX()
public boolean lastY()
public void end()
SDBIterator
end
in interface SDBIterator
public ISBounds getIterationBoundingBox()
public RayIterator getCurrentRay()
public double getBaseX()
public double getBeginX()
public double getEndX()
public double getCurrentX()
public double getBeginY()
public double getEndY()
public double getCurrentY()
public double getBaseY()
public double getHeight()
public javax.vecmath.Point3d getStart()
public javax.vecmath.Vector3d getBaseNormal()
public javax.vecmath.Matrix4d getRotation()
public void setBlockSize(IndexSpaceID blockSize)
public void setStep(double step)
public double getStep()
public boolean isBacktoFront()
public void setBacktoFront(boolean backtoFront)
public javax.vecmath.Vector3d getViewingDirection()
public javax.vecmath.Vector3d getSliceNormal()
public java.util.ArrayList<javax.vecmath.Point3d> getCornersDeterminingBb()
public void setDataSource(DataSource dataSource)