Class TerrainLineIntersector
- java.lang.Object
-
- gov.nasa.worldwindx.examples.lineofsight.LineIntersector
-
- gov.nasa.worldwindx.examples.lineofsight.TerrainLineIntersector
-
- All Implemented Interfaces:
java.lang.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. SeeLineIntersector.setReferencePosition(gov.nasa.worldwind.geom.Position)
andLineIntersector.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
Constructors Constructor Description TerrainLineIntersector(Terrain terrain, int numThreads)
Consruct an terrain intersector.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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
-
-
-
-
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 java.lang.InterruptedException
Description copied from class:LineIntersector
Called to execute an intersection test for one position.- Specified by:
doPerformIntersection
in classLineIntersector
- Parameters:
position
- the position to test.- Throws:
java.lang.InterruptedException
- if the operation is interrupted.s
-
-