|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.unh.sdb.datasource.RayCastingIterator
public class RayCastingIterator
Iterates through an arbitrary oriented cuboid. At each step a new ray perpendicular on the base of the cuboid is returned. The iterations continues untill the whole based is finished.
Constructor Summary | |
---|---|
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. |
Method Summary | |
---|---|
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()
|
RayIterator |
getCurrentRay()
|
double |
getCurrentX()
|
double |
getCurrentY()
|
double |
getEndX()
|
double |
getEndY()
|
double |
getHeight()
|
javax.vecmath.Matrix4d |
getRotation()
|
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 |
setStep(double step)
|
boolean |
valid()
Return true if the iterator currently has a valid value, false otherwise. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RayCastingIterator(DataSource dataSource, javax.vecmath.Vector3d initialOrientation, javax.vecmath.Matrix4d rot, javax.vecmath.Point3d start, double baseX, double baseY, double height)
Method Detail |
---|
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 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()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |