public class TerrainLineIntersector extends LineIntersector
LineIntersector.setReferencePosition(gov.nasa.worldwind.geom.Position)
and LineIntersector.setPositions(Iterable)
.LineIntersector.InternalIntersector
allIntersections, endTime, numPositions, numProcessedPositions, numThreads, positions, referencePoint, referencePosition, startTime, terrain, threadPool
Constructor and Description |
---|
TerrainLineIntersector(Terrain terrain,
int numThreads)
Consruct an terrain intersector.
|
Modifier and Type | Method and Description |
---|---|
protected void |
doPerformIntersection(Position position)
Called to execute an intersection test for one position.
|
getAllIntersections, getEndTime, getIntersections, getNumProcessedPositions, getNumThreads, getPositions, getReferencePosition, getStartTime, getTerrain, performIntersection, run, setPositions, setReferencePosition
public TerrainLineIntersector(Terrain terrain, int numThreads)
terrain
- the terrain to use to determine terrain geometry.numThreads
- the number of threads to use.protected void doPerformIntersection(Position position) throws InterruptedException
LineIntersector
doPerformIntersection
in class LineIntersector
position
- the position to test.InterruptedException
- if the operation is interrupted.s