public class ShapeLineIntersector extends LineIntersector
Renderables. The lines are specified
with a common origin and multiple end positions. For each end position this class computes the intersections of all
specified renderables with a line between that position and a reference position. See LineIntersector.setReferencePosition(gov.nasa.worldwind.geom.Position) and setRenderables(Iterable).LineIntersector.InternalIntersector| Modifier and Type | Field and Description |
|---|---|
protected java.lang.Iterable<Renderable> |
renderables |
allIntersections, endTime, numPositions, numProcessedPositions, numThreads, positions, referencePoint, referencePosition, startTime, terrain, threadPool| Constructor and Description |
|---|
ShapeLineIntersector(Terrain terrain,
int numThreads) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
doPerformIntersection(Position position)
Called to execute an intersection test for one position.
|
java.lang.Iterable<Renderable> |
getRenderables() |
boolean |
hasRenderables()
Indicates whether this intersector has renderables specified.
|
protected java.util.List<Intersection> |
performRenderableIntersection(Line line,
Renderable renderable) |
void |
setRenderables(java.lang.Iterable<Renderable> renderables)
Specifies the renderables to intersect with the line.
|
getAllIntersections, getEndTime, getIntersections, getNumProcessedPositions, getNumThreads, getPositions, getReferencePosition, getStartTime, getTerrain, performIntersection, run, setPositions, setReferencePositionprotected java.lang.Iterable<Renderable> renderables
public ShapeLineIntersector(Terrain terrain, int numThreads)
protected void doPerformIntersection(Position position) throws java.lang.InterruptedException
LineIntersectordoPerformIntersection in class LineIntersectorposition - the position to test.java.lang.InterruptedException - if the operation is interrupted.spublic java.lang.Iterable<Renderable> getRenderables()
public boolean hasRenderables()
protected java.util.List<Intersection> performRenderableIntersection(Line line, Renderable renderable) throws java.lang.InterruptedException
java.lang.InterruptedExceptionpublic void setRenderables(java.lang.Iterable<Renderable> renderables)
renderables - the renderables to intersect.