NASA World Wind

gov.nasa.worldwind.render.airspaces.editor
Class AirspaceEditorUtil

java.lang.Object
  extended by gov.nasa.worldwind.render.airspaces.editor.AirspaceEditorUtil

public class AirspaceEditorUtil
extends Object


Nested Class Summary
static class AirspaceEditorUtil.EdgeInfo
           
 
Field Summary
static int LOWER_ALTITUDE
           
static int UPPER_ALTITUDE
           
 
Constructor Summary
AirspaceEditorUtil()
           
 
Method Summary
static List<AirspaceEditorUtil.EdgeInfo> computeEdgeInfoFor(int numLocations, Iterable<? extends AirspaceControlPoint> controlPoints)
           
static double computeHeightAboveSurface(WorldWindow wwd, Vec4 point)
           
static double computeLowestHeightAboveSurface(WorldWindow wwd, Iterable<? extends AirspaceControlPoint> controlPoints, int altitudeIndex)
           
static double computeMinimumDistanceBetweenAltitudes(int numLocations, Iterable<? extends AirspaceControlPoint> controlPoints)
           
static Vec4 computeSurfacePoint(WorldWindow wwd, Angle latitude, Angle longitude)
           
static AirspaceControlPoint createControlPointFor(WorldWindow wwd, Line ray, AirspaceEditor editor, Airspace airspace, AirspaceEditorUtil.EdgeInfo edge)
           
static Vec4 intersectAirspaceAltitudeAt(WorldWindow wwd, Airspace airspace, int altitudeIndex, Line ray)
           
static Vec4 intersectGlobeAt(WorldWindow wwd, double elevation, Line ray)
           
static boolean isPointBehindLineOrigin(Line line, Vec4 point)
           
static Vec4 nearestIntersectionPoint(Line line, Intersection[] intersections)
           
static Vec4 nearestPointOnLine(Line source, Line target)
           
static Vec4 nearestPointOnSegment(Vec4 p1, Vec4 p2, Vec4 point)
           
static AirspaceEditorUtil.EdgeInfo selectBestEdgeMatch(WorldWindow wwd, Line ray, Airspace airspace, List<? extends AirspaceEditorUtil.EdgeInfo> edgeInfoList)
           
static double surfaceElevationAt(WorldWindow wwd, Line ray)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOWER_ALTITUDE

public static final int LOWER_ALTITUDE
See Also:
Constant Field Values

UPPER_ALTITUDE

public static final int UPPER_ALTITUDE
See Also:
Constant Field Values
Constructor Detail

AirspaceEditorUtil

public AirspaceEditorUtil()
Method Detail

computeEdgeInfoFor

public static List<AirspaceEditorUtil.EdgeInfo> computeEdgeInfoFor(int numLocations,
                                                                   Iterable<? extends AirspaceControlPoint> controlPoints)

computeHeightAboveSurface

public static double computeHeightAboveSurface(WorldWindow wwd,
                                               Vec4 point)

computeLowestHeightAboveSurface

public static double computeLowestHeightAboveSurface(WorldWindow wwd,
                                                     Iterable<? extends AirspaceControlPoint> controlPoints,
                                                     int altitudeIndex)

computeMinimumDistanceBetweenAltitudes

public static double computeMinimumDistanceBetweenAltitudes(int numLocations,
                                                            Iterable<? extends AirspaceControlPoint> controlPoints)

computeSurfacePoint

public static Vec4 computeSurfacePoint(WorldWindow wwd,
                                       Angle latitude,
                                       Angle longitude)

createControlPointFor

public static AirspaceControlPoint createControlPointFor(WorldWindow wwd,
                                                         Line ray,
                                                         AirspaceEditor editor,
                                                         Airspace airspace,
                                                         AirspaceEditorUtil.EdgeInfo edge)

intersectAirspaceAltitudeAt

public static Vec4 intersectAirspaceAltitudeAt(WorldWindow wwd,
                                               Airspace airspace,
                                               int altitudeIndex,
                                               Line ray)

intersectGlobeAt

public static Vec4 intersectGlobeAt(WorldWindow wwd,
                                    double elevation,
                                    Line ray)

isPointBehindLineOrigin

public static boolean isPointBehindLineOrigin(Line line,
                                              Vec4 point)

nearestIntersectionPoint

public static Vec4 nearestIntersectionPoint(Line line,
                                            Intersection[] intersections)

nearestPointOnLine

public static Vec4 nearestPointOnLine(Line source,
                                      Line target)

nearestPointOnSegment

public static Vec4 nearestPointOnSegment(Vec4 p1,
                                         Vec4 p2,
                                         Vec4 point)

selectBestEdgeMatch

public static AirspaceEditorUtil.EdgeInfo selectBestEdgeMatch(WorldWindow wwd,
                                                              Line ray,
                                                              Airspace airspace,
                                                              List<? extends AirspaceEditorUtil.EdgeInfo> edgeInfoList)

surfaceElevationAt

public static double surfaceElevationAt(WorldWindow wwd,
                                        Line ray)

NASA World Wind