Package | Description |
---|---|
gov.nasa.worldwind.geom | |
gov.nasa.worldwind.globes |
Provides classes for representing the shape and terrain of a planet.
|
gov.nasa.worldwind.ogc.collada.impl |
Provides classes for rendering COLLADA documents.
|
gov.nasa.worldwind.render | |
gov.nasa.worldwind.render.airspaces.editor | |
gov.nasa.worldwind.terrain | |
gov.nasa.worldwind.util | |
gov.nasa.worldwindx.applications.antenna | |
gov.nasa.worldwindx.examples | |
gov.nasa.worldwindx.examples.lineofsight |
Examples of how to perform line of sight calculations in WorldWind.
|
Modifier and Type | Method and Description |
---|---|
Intersection[] |
Sphere.intersect(Line line)
Obtains the intersections of this sphere with a line.
|
Intersection[] |
Extent.intersect(Line line)
Computes the intersections of this extent with
line . |
Intersection[] |
Cylinder.intersect(Line line)
Computes the intersections of this extent with
line . |
Intersection[] |
Box.intersect(Line line)
Computes the intersections of this extent with
line . |
static Intersection |
Triangle.intersect(Line line,
double vax,
double vay,
double vaz,
double vbx,
double vby,
double vbz,
double vcx,
double vcy,
double vcz)
Determines the intersection of a specified line with a triangle specified by individual coordinates.
|
static Intersection |
Triangle.intersect(Line line,
Vec4 a,
Vec4 b,
Vec4 c)
Determines the intersection of a specified line with a specified triangle.
|
Modifier and Type | Method and Description |
---|---|
static java.util.List<Intersection> |
Triangle.intersectTriangles(Line line,
java.nio.FloatBuffer vertices)
Compute the intersections of a line with a collection of triangles.
|
static java.util.List<Intersection> |
Triangle.intersectTriangles(Line line,
java.nio.FloatBuffer vertices,
java.nio.IntBuffer indices)
Compute the intersections of a line with a collection of triangles.
|
static java.util.List<Intersection> |
Triangle.intersectTriangleTypes(Line line,
java.nio.FloatBuffer vertices,
java.nio.IntBuffer indices,
int triangleType)
Compute the intersections of a line with a triangle collection.
|
static java.util.List<Intersection> |
Triangle.intersectTriFan(Line line,
java.nio.FloatBuffer vertices,
java.nio.IntBuffer indices)
Compute the intersections of a line with a triangle fan.
|
static java.util.List<Intersection> |
Triangle.intersectTriFan(Line line,
Vec4[] vertices,
java.nio.IntBuffer indices)
Compute the intersections of a line with a triangle fan.
|
static java.util.List<Intersection> |
Triangle.intersectTriStrip(Line line,
java.nio.FloatBuffer vertices,
java.nio.IntBuffer indices)
Compute the intersections of a line with a triangle strip.
|
static java.util.List<Intersection> |
Triangle.intersectTriStrip(Line line,
Vec4[] vertices,
java.nio.IntBuffer indices)
Compute the intersections of a line with a triangle strip.
|
static java.util.Queue<Intersection> |
Intersection.sort(Vec4 refPoint,
java.util.List<Intersection> listA,
java.util.List<Intersection> listB)
Merges two lists of intersections into a single list sorted by intersection distance from a specified reference
point.
|
Modifier and Type | Method and Description |
---|---|
Vec4 |
Line.nearestIntersectionPoint(Intersection[] intersections) |
Modifier and Type | Method and Description |
---|---|
static java.util.Queue<Intersection> |
Intersection.sort(Vec4 refPoint,
java.util.List<Intersection> listA,
java.util.List<Intersection> listB)
Merges two lists of intersections into a single list sorted by intersection distance from a specified reference
point.
|
static java.util.Queue<Intersection> |
Intersection.sort(Vec4 refPoint,
java.util.List<Intersection> listA,
java.util.List<Intersection> listB)
Merges two lists of intersections into a single list sorted by intersection distance from a specified reference
point.
|
Modifier and Type | Method and Description |
---|---|
Intersection[] |
EllipsoidalGlobe.intersect(Line line) |
Intersection[] |
Globe.intersect(Line line,
double altitude)
Intersects a specified line with this globe.
|
Intersection[] |
EllipsoidalGlobe.intersect(Line line,
double altitude) |
protected Intersection[] |
FlatGlobe.intersect(Line line,
double equRadius,
double polarRadius) |
protected Intersection[] |
EllipsoidalGlobe.intersect(Line line,
double equRadius,
double polRadius) |
Intersection[] |
Globe.intersect(Triangle triangle,
double altitude)
Intersects a specified triangle with the globe.
|
Intersection[] |
EllipsoidalGlobe.intersect(Triangle t,
double elevation) |
Modifier and Type | Method and Description |
---|---|
java.util.List<Intersection> |
ColladaMeshShape.intersect(Line line,
Terrain terrain)
Compute the intersections of a specified line with this shape.
|
Modifier and Type | Method and Description |
---|---|
protected java.util.ArrayList<Intersection> |
ContourLinePolygon.filterIntersections(DrawContext dc,
java.util.ArrayList<Intersection> list)
Filters the given intersection segments list according to some criteria - here the inclusion inside the current
polygon.
|
protected java.util.ArrayList<Intersection> |
ContourLine.filterIntersections(DrawContext dc,
java.util.ArrayList<Intersection> list)
Filters the given intersection segments list according to some criteria - here the inclusion inside the bounding
sector.
|
protected java.util.ArrayList<Intersection> |
ContourLine.filterIntersectionsOnViewFrustum(DrawContext dc,
java.util.ArrayList<Intersection> list)
Filters the given intersection segments list according to the current view frustum.
|
java.util.List<Intersection> |
RigidShape.intersect(Line line,
Terrain terrain)
Compute the intersections of a specified line with this shape.
|
java.util.List<Intersection> |
Polygon.intersect(Line line,
Terrain terrain)
Compute the intersections of a specified line with this polygon.
|
java.util.List<Intersection> |
Path.intersect(Line line,
Terrain terrain) |
java.util.List<Intersection> |
ExtrudedPolygon.intersect(Line line,
Terrain terrain)
Compute the intersections of a specified line with this extruded polygon.
|
abstract java.util.List<Intersection> |
AbstractShape.intersect(Line line,
Terrain terrain)
Compute the intersections of a specified line with this shape.
|
java.util.List<Intersection> |
RigidShape.intersect(Line line,
Terrain terrain,
int index) |
protected java.util.List<Intersection> |
ExtrudedPolygon.intersectBoundarySides(Line line,
ExtrudedPolygon.ExtrudedBoundaryInfo boundary)
Intersects a line with the sides of an individual boundary.
|
java.util.List<Intersection> |
RigidShape.intersectFace(Line line,
int index,
Matrix renderMatrix)
Returns intersections of line with the ith face of this shape, Assumes we already know the line intersects the
shape somewhere (but perhaps not on this face)
|
Modifier and Type | Method and Description |
---|---|
protected java.util.ArrayList<Intersection> |
ContourLinePolygon.filterIntersections(DrawContext dc,
java.util.ArrayList<Intersection> list)
Filters the given intersection segments list according to some criteria - here the inclusion inside the current
polygon.
|
protected java.util.ArrayList<Intersection> |
ContourLine.filterIntersections(DrawContext dc,
java.util.ArrayList<Intersection> list)
Filters the given intersection segments list according to some criteria - here the inclusion inside the bounding
sector.
|
protected java.util.ArrayList<Intersection> |
ContourLine.filterIntersectionsOnViewFrustum(DrawContext dc,
java.util.ArrayList<Intersection> list)
Filters the given intersection segments list according to the current view frustum.
|
protected void |
Polygon.intersect(Line line,
Polygon.ShapeData shapeData,
java.util.List<Intersection> intersections) |
protected void |
RigidShape.intersect(Line line,
RigidShape.ShapeData shapeData,
java.util.List<Intersection> intersections,
int index) |
protected void |
ExtrudedPolygon.intersectCap(Line line,
ExtrudedPolygon.ShapeData shapeData,
java.util.List<Intersection> intersections) |
protected int |
ContourLine.makePolylinesConnected(DrawContext dc,
java.util.ArrayList<Intersection> inter,
int tolerance)
Add a set of
Polyline objects to the contour line renderable list by connecting as much as possible
the segments from the given Intersection array. |
Modifier and Type | Method and Description |
---|---|
static Vec4 |
AirspaceEditorUtil.nearestIntersectionPoint(Line line,
Intersection[] intersections) |
Modifier and Type | Method and Description |
---|---|
protected Intersection[] |
HighResolutionTerrain.doIntersect(Position pA,
Position pB)
Computes intersections of a line with the terrain.
|
Intersection[] |
SectorGeometry.intersect(double elevation)
Computes the geometry's intersections with a globe at a specified elevation.
|
Intersection[] |
RectangularTessellator.RectTile.intersect(double elevation) |
Intersection[] |
SectorGeometryList.intersect(double elevation,
Sector sector)
Determines if and where the geometry intersects the ellipsoid at a given elevation.
|
protected Intersection[] |
HighResolutionTerrain.intersect(HighResolutionTerrain.RectTile tile,
Line line)
Computes the intersections of a line with a tile.
|
Intersection[] |
SectorGeometryList.intersect(Line line)
Determines if and where a ray intersects the geometry.
|
Intersection[] |
SectorGeometry.intersect(Line line)
Computes the Cartesian coordinates of a line's intersections with the geometry.
|
Intersection[] |
RectangularTessellator.RectTile.intersect(Line line) |
Intersection[] |
HighResolutionTerrain.intersect(Line line)
Deprecated.
|
Intersection[] |
Terrain.intersect(Position pA,
Position pB)
Computes the intersections of a line with the terrain.
|
Intersection[] |
HighResolutionTerrain.intersect(Position pA,
Position pB)
Computes the intersections of a line with the terrain.
|
Intersection[] |
Terrain.intersect(Position pA,
Position pB,
int altitudeMode)
Computes the intersections of a line with the terrain.
|
Intersection[] |
HighResolutionTerrain.intersect(Position pA,
Position pB,
int altitudeMode)
Computes the intersections of a line with the terrain.
|
protected Intersection[] |
RectangularTessellator.intersect(RectangularTessellator.RectTile tile,
double elevation) |
protected Intersection[] |
RectangularTessellator.intersect(RectangularTessellator.RectTile tile,
Line line)
Determines if and where a ray intersects a
RectTile geometry. |
Modifier and Type | Method and Description |
---|---|
void |
HighResolutionTerrain.IntersectionCallback.intersection(Position pA,
Position pB,
Intersection[] intersections)
Called with the computed intersections for a line.
|
Modifier and Type | Method and Description |
---|---|
static Intersection[] |
WWMath.polytopeIntersect(Line line,
Plane[] planes)
Intersect a line with a convex polytope and return the intersection points.
|
Modifier and Type | Method and Description |
---|---|
java.util.List<Intersection> |
AntennaModel.intersect(Line line,
Terrain terrain) |
java.util.List<Intersection> |
AntennaAxes.intersect(Line line,
Terrain terrain) |
Modifier and Type | Method and Description |
---|---|
java.util.List<Intersection> |
RadarVolume.intersect(Line line,
Terrain terrain) |
Modifier and Type | Field and Description |
---|---|
protected java.util.Map<Position,java.util.List<Intersection>> |
LineIntersector.allIntersections |
Modifier and Type | Method and Description |
---|---|
java.util.Map<Position,java.util.List<Intersection>> |
LineIntersector.getAllIntersections() |
java.util.List<Intersection> |
LineIntersector.getIntersections(Position position) |
protected java.util.List<Intersection> |
ShapeLineIntersector.performRenderableIntersection(Line line,
Renderable renderable) |
Modifier and Type | Method and Description |
---|---|
protected void |
PolygonIntersection.AppFrame.drawIntersection(Intersection intersection) |
protected void |
ExtrudedPolygonIntersection.AppFrame.drawIntersection(Intersection intersection) |
protected void |
AbstractShapeIntersection.AppFrame.drawIntersection(Intersection intersection) |
protected void |
LinesOfSight.AppFrame.showIntersection(Intersection losi) |
Modifier and Type | Method and Description |
---|---|
protected void |
LinesOfSight.AppFrame.showIntersections(java.util.Queue<Intersection> intersections) |