NASA World Wind

gov.nasa.worldwindx.examples.multiwindow
Class SharedShapes

java.lang.Object
  extended by gov.nasa.worldwindx.examples.multiwindow.SharedShapes

public class SharedShapes
extends Object

This example shows how to share World Wind shapes between two WorldWindow instances. In this example the two World Wind windows share imagery layers and the layers representing each type of shape. Though this example uses a different globe for each window, it is possible for the two windows to share the same Globe as is done in the MultiFrame example.

Applications using multiple World Wind windows simultaneously should instruct World Wind to share OpenGL and other resources among those windows. Most World Wind classes are designed to be shared across WorldWindow objects and are 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 World Wind Globe and Layer objects can be shared among World Windows. Those that cannot be shared have an operational dependency on the World Window they're associated with. An example is the ViewControlsLayer layer for on-screen navigation. Because this layer responds to input events within a specific World Window, it is not sharable. Refer to the World Wind Overview page for a list of layers that cannot be shared.


Nested Class Summary
protected static class SharedShapes.SharedLayerPanel
           
protected static class SharedShapes.WWPanel
           
 
Constructor Summary
SharedShapes()
           
 
Method Summary
static void main(String[] args)
           
protected static Layer makeAirspaceLayer()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SharedShapes

public SharedShapes()
Method Detail

main

public static void main(String[] args)

makeAirspaceLayer

protected static Layer makeAirspaceLayer()

NASA World Wind