Class FlatAndRoundGlobes


  • public class FlatAndRoundGlobes
    extends java.lang.Object
    This class illustrates how to display round and flat globes side by side.

    Applications using multiple WorldWind windows simultaneously should instruct WorldWind to share OpenGL and other resources among those windows. Most WorldWind classes are designed to be shared across WorldWindow objects and will be shared automatically. But OpenGL resources are not automatically shared. To share them, a reference to a previously created WorldWindow must be specified as a constructor argument for subsequently created WorldWindows.

    Most WorldWind Globe and Layer objects can be shared among WorldWindows. Those that cannot be shared have an operational dependency on the WorldWindow they're associated with. An example is the ViewControlsLayer layer for on-screen navigation. Because this layer responds to input events within a specific WorldWindow, it is not sharable. Refer to the WorldWind Overview page for a list of layers that cannot be shared.

    • Constructor Detail

      • FlatAndRoundGlobes

        public FlatAndRoundGlobes()
    • Method Detail

      • makeCommonLayers

        protected LayerList makeCommonLayers()
      • makePathLayer

        protected Layer makePathLayer()
      • makePath

        protected Path makePath​(Position startPosition,
                                Angle heading,
                                Angle length,
                                int numPositions)
      • makePolygonLayer

        protected Layer makePolygonLayer()
      • makeExtrudedPolygonLayer

        protected Layer makeExtrudedPolygonLayer()
      • main

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