Class AirspaceBuilder


  • public class AirspaceBuilder
    extends ApplicationTemplate
    Illustrates runtime construction of 3D extruded polygons and spheres using WorldWind Airspace shapes. This uses a PolygonEditor and a SphereAirspaceEditor to enable runtime editing of Polygon airspace and SphereAirspace shapes.

    Usage Instructions

    Adding and Removing Shapes
    Add a shape by selecting either Polygon or Sphere in the drop down box then clicking New shape. Delete a shape by left-clicking it then pressing the delete key.

    Moving Shapes
    Move a shape by left-clicking and dragging it.

    Editing Spheres
    Note: a sphere must be selected before it can be edited. Select a sphere by left-clicking it.
    Adjust a sphere's height by holding the Shift key then left-click and drag the sphere. Resize a sphere by moving the cursor toward the sphere's edge until a blue control point appears, then left-click and drag the control point.

    Editing Polygons
    Note: a polygon must be selected before it can be edited. Select a polygon by left-clicking it.
    Add a polygon vertex by holding the Alt key and left-clicking anywhere near the polygon. Remove a polygon control point by holding the Control key and left-clicking the blue sphere at the vertex. Move a polygon vertex by left-clicking and dragging it. Change a polygon's bottom or top height by holding the Shift key then left-click any blue sphere at a vertex and drag it.

    Demo Shapes

    Select File -> Load Demo Shapes to display a set of polygon airspace shapes built with this editor. The data for these shapes is located in the WorldWind project under src/gov/nasa/worldwindx/examples/data/AirspaceBuilder-DemoShapes.zip.

    • Constructor Detail

      • AirspaceBuilder

        public AirspaceBuilder()
    • Method Detail

      • getIntersectionAttributes

        public static AirspaceAttributes getIntersectionAttributes()
      • getSelectionAndIntersectionAttributes

        public static AirspaceAttributes getSelectionAndIntersectionAttributes()
      • setEditorAttributes

        public static void setEditorAttributes​(AirspaceEditor editor)
      • getNextName

        public static java.lang.String getNextName​(java.lang.String base)
      • main

        public static void main​(java.lang.String[] args)