gov.nasa.worldwindx.examples.lineofsight
Class TerrainLineIntersector
java.lang.Object
gov.nasa.worldwindx.examples.lineofsight.LineIntersector
gov.nasa.worldwindx.examples.lineofsight.TerrainLineIntersector
- All Implemented Interfaces:
- Runnable
public class TerrainLineIntersector
- extends LineIntersector
Computes the intersections of a collection of lines with the terrain. The lines are specified with a common origin
and multiple end positions. For each end position this class computes the intersections of a line between that
position and a reference position. See LineIntersector.setReferencePosition(gov.nasa.worldwind.geom.Position) and LineIntersector.setPositions(Iterable).
| Fields inherited from class gov.nasa.worldwindx.examples.lineofsight.LineIntersector |
allIntersections, endTime, numPositions, numProcessedPositions, numThreads, positions, referencePoint, referencePosition, startTime, terrain, threadPool |
| Methods inherited from class gov.nasa.worldwindx.examples.lineofsight.LineIntersector |
getAllIntersections, getEndTime, getIntersections, getNumProcessedPositions, getNumThreads, getPositions, getReferencePosition, getStartTime, getTerrain, performIntersection, run, setPositions, setReferencePosition |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TerrainLineIntersector
public TerrainLineIntersector(Terrain terrain,
int numThreads)
- Consruct an terrain intersector.
- Parameters:
terrain - the terrain to use to determine terrain geometry.numThreads - the number of threads to use.
doPerformIntersection
protected void doPerformIntersection(Position position)
throws InterruptedException
- Description copied from class:
LineIntersector
- Called to execute an intersection test for one position.
- Specified by:
doPerformIntersection in class LineIntersector
- Parameters:
position - the position to test.
- Throws:
InterruptedException - if the operation is interrupted.s