NASA World Wind

gov.nasa.worldwindx.examples.lineofsight
Class TerrainLineIntersector

java.lang.Object
  extended by gov.nasa.worldwindx.examples.lineofsight.LineIntersector
      extended by 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).


Nested Class Summary
 
Nested classes/interfaces inherited from class gov.nasa.worldwindx.examples.lineofsight.LineIntersector
LineIntersector.InternalIntersector
 
Field Summary
 
Fields inherited from class gov.nasa.worldwindx.examples.lineofsight.LineIntersector
allIntersections, endTime, numPositions, numProcessedPositions, numThreads, positions, referencePoint, referencePosition, startTime, terrain, threadPool
 
Constructor Summary
TerrainLineIntersector(Terrain terrain, int numThreads)
          Consruct an terrain intersector.
 
Method Summary
protected  void doPerformIntersection(Position position)
          Called to execute an intersection test for one position.
 
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
 

Constructor Detail

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.
Method Detail

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

NASA World Wind