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[] |
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[] |
Sphere.intersect(Line line)
Obtains the intersections of this sphere with a 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 List<Intersection> |
Triangle.intersectTriangles(Line line,
FloatBuffer vertices)
Compute the intersections of a line with a collection of triangles.
|
static List<Intersection> |
Triangle.intersectTriangles(Line line,
FloatBuffer vertices,
IntBuffer indices)
Compute the intersections of a line with a collection of triangles.
|
static List<Intersection> |
Triangle.intersectTriangleTypes(Line line,
FloatBuffer vertices,
IntBuffer indices,
int triangleType)
Compute the intersections of a line with a triangle collection.
|
static List<Intersection> |
Triangle.intersectTriFan(Line line,
FloatBuffer vertices,
IntBuffer indices)
Compute the intersections of a line with a triangle fan.
|
static List<Intersection> |
Triangle.intersectTriFan(Line line,
Vec4[] vertices,
IntBuffer indices)
Compute the intersections of a line with a triangle fan.
|
static List<Intersection> |
Triangle.intersectTriStrip(Line line,
FloatBuffer vertices,
IntBuffer indices)
Compute the intersections of a line with a triangle strip.
|
static List<Intersection> |
Triangle.intersectTriStrip(Line line,
Vec4[] vertices,
IntBuffer indices)
Compute the intersections of a line with a triangle strip.
|
static Queue<Intersection> |
Intersection.sort(Vec4 refPoint,
List<Intersection> listA,
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 Queue<Intersection> |
Intersection.sort(Vec4 refPoint,
List<Intersection> listA,
List<Intersection> listB)
Merges two lists of intersections into a single list sorted by intersection distance from a specified reference
point.
|
static Queue<Intersection> |
Intersection.sort(Vec4 refPoint,
List<Intersection> listA,
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[] |
EllipsoidalGlobe.intersect(Line line,
double altitude) |
Intersection[] |
Globe.intersect(Line line,
double altitude)
Intersects a specified line with this globe.
|
protected Intersection[] |
EllipsoidalGlobe.intersect(Line line,
double equRadius,
double polRadius) |
protected Intersection[] |
FlatGlobe.intersect(Line line,
double equRadius,
double polarRadius) |
Intersection[] |
EllipsoidalGlobe.intersect(Triangle t,
double elevation) |
Intersection[] |
Globe.intersect(Triangle triangle,
double altitude)
Intersects a specified triangle with the globe.
|
Modifier and Type | Method and Description |
---|---|
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 ArrayList<Intersection> |
ContourLine.filterIntersections(DrawContext dc,
ArrayList<Intersection> list)
Filters the given intersection segments list according to some criteria - here the inclusion inside the bounding
sector.
|
protected ArrayList<Intersection> |
ContourLinePolygon.filterIntersections(DrawContext dc,
ArrayList<Intersection> list)
Filters the given intersection segments list according to some criteria - here the inclusion inside the current
polygon.
|
protected ArrayList<Intersection> |
ContourLine.filterIntersectionsOnViewFrustum(DrawContext dc,
ArrayList<Intersection> list)
Filters the given intersection segments list according to the current view frustum.
|
List<Intersection> |
Path.intersect(Line line,
Terrain terrain) |
List<Intersection> |
Polygon.intersect(Line line,
Terrain terrain)
Compute the intersections of a specified line with this polygon.
|
List<Intersection> |
RigidShape.intersect(Line line,
Terrain terrain)
Compute the intersections of a specified line with this shape.
|
abstract List<Intersection> |
AbstractShape.intersect(Line line,
Terrain terrain)
Compute the intersections of a specified line with this shape.
|
List<Intersection> |
ExtrudedPolygon.intersect(Line line,
Terrain terrain)
Compute the intersections of a specified line with this extruded polygon.
|
List<Intersection> |
RigidShape.intersect(Line line,
Terrain terrain,
int index) |
protected List<Intersection> |
ExtrudedPolygon.intersectBoundarySides(Line line,
ExtrudedPolygon.ExtrudedBoundaryInfo boundary)
Intersects a line with the sides of an individual boundary.
|
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 ArrayList<Intersection> |
ContourLine.filterIntersections(DrawContext dc,
ArrayList<Intersection> list)
Filters the given intersection segments list according to some criteria - here the inclusion inside the bounding
sector.
|
protected ArrayList<Intersection> |
ContourLinePolygon.filterIntersections(DrawContext dc,
ArrayList<Intersection> list)
Filters the given intersection segments list according to some criteria - here the inclusion inside the current
polygon.
|
protected ArrayList<Intersection> |
ContourLine.filterIntersectionsOnViewFrustum(DrawContext dc,
ArrayList<Intersection> list)
Filters the given intersection segments list according to the current view frustum.
|
protected void |
Polygon.intersect(Line line,
Polygon.ShapeData shapeData,
List<Intersection> intersections) |
protected void |
RigidShape.intersect(Line line,
RigidShape.ShapeData shapeData,
List<Intersection> intersections,
int index) |
protected void |
ExtrudedPolygon.intersectCap(Line line,
ExtrudedPolygon.ShapeData shapeData,
List<Intersection> intersections) |
protected int |
ContourLine.makePolylinesConnected(DrawContext dc,
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[] |
RectangularTessellator.RectTile.intersect(double elevation) |
Intersection[] |
SectorGeometry.intersect(double elevation)
Computes the geometry's intersections with a globe at a specified 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[] |
RectangularTessellator.RectTile.intersect(Line line) |
Intersection[] |
HighResolutionTerrain.intersect(Line line)
Deprecated.
|
Intersection[] |
SectorGeometry.intersect(Line line)
Computes the Cartesian coordinates of a line's intersections with the geometry.
|
Intersection[] |
SectorGeometryList.intersect(Line line)
Determines if and where a ray intersects the geometry.
|
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 |
---|---|
List<Intersection> |
AntennaAxes.intersect(Line line,
Terrain terrain) |
List<Intersection> |
AntennaModel.intersect(Line line,
Terrain terrain) |
Modifier and Type | Method and Description |
---|---|
List<Intersection> |
RadarVolume.intersect(Line line,
Terrain terrain) |
Modifier and Type | Field and Description |
---|---|
protected Map<Position,List<Intersection>> |
LineIntersector.allIntersections |
Modifier and Type | Method and Description |
---|---|
Map<Position,List<Intersection>> |
LineIntersector.getAllIntersections() |
List<Intersection> |
LineIntersector.getIntersections(Position position) |
protected List<Intersection> |
ShapeLineIntersector.performRenderableIntersection(Line line,
Renderable renderable) |
Modifier and Type | Method and Description |
---|---|
protected void |
ExtrudedPolygonIntersection.AppFrame.drawIntersection(Intersection intersection) |
protected void |
AbstractShapeIntersection.AppFrame.drawIntersection(Intersection intersection) |
protected void |
PolygonIntersection.AppFrame.drawIntersection(Intersection intersection) |
protected void |
LinesOfSight.AppFrame.showIntersection(Intersection losi) |
Modifier and Type | Method and Description |
---|---|
protected void |
LinesOfSight.AppFrame.showIntersections(Queue<Intersection> intersections) |