Class SharedShapes
- java.lang.Object
-
- gov.nasa.worldwindx.examples.multiwindow.SharedShapes
-
public class SharedShapes extends java.lang.ObjectThis example shows how to share WorldWind shapes between twoWorldWindowinstances. In this example the two WorldWind 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 sameGlobeas is done in theMultiFrameexample.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 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 WorldWind Globe and
Layerobjects can be shared among WorldWindows. Those that cannot be shared have an operational dependency on the WorldWindow they're associated with. An example is theViewControlsLayerlayer 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.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static classSharedShapes.SharedLayerPanelprotected static classSharedShapes.WWPanel
-
Constructor Summary
Constructors Constructor Description SharedShapes()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidmain(java.lang.String[] args)protected static LayermakeAirspaceLayer()
-
-
-
Method Detail
-
makeAirspaceLayer
protected static Layer makeAirspaceLayer()
-
main
public static void main(java.lang.String[] args)
-
-