gov.nasa.worldwindx.examples.multiwindow
Class FlatAndRoundGlobes
java.lang.Object
gov.nasa.worldwindx.examples.multiwindow.FlatAndRoundGlobes
public class FlatAndRoundGlobes
- extends Object
This class illustrates how to display round and flat globes side by side.
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 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 World Wind 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 World Wind Overview page for a list of layers that cannot be shared.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ALTITUDE_MODE
protected static final int ALTITUDE_MODE
- See Also:
- Constant Field Values
LINE_WIDTH
protected static final double LINE_WIDTH
- See Also:
- Constant Field Values
NUM_PATHS
protected static final int NUM_PATHS
- See Also:
- Constant Field Values
NUM_POSITIONS
protected static final int NUM_POSITIONS
- See Also:
- Constant Field Values
PATH_HEIGHT
protected static final double PATH_HEIGHT
- See Also:
- Constant Field Values
PATH_LENGTH
protected static final Angle PATH_LENGTH
START_LOCATION
protected static final LatLon START_LOCATION
FlatAndRoundGlobes
public FlatAndRoundGlobes()
addViewControlLayer
protected void addViewControlLayer(FlatAndRoundGlobes.WWFrame wwf)
main
public static void main(String[] args)
makeCommonLayers
protected LayerList makeCommonLayers()
makeExtrudedPolygonLayer
protected Layer makeExtrudedPolygonLayer()
makeModel
protected Model makeModel(Globe globe,
LayerList layers)
makePath
protected Path makePath(Position startPosition,
Angle heading,
Angle length,
int numPositions)
makePathLayer
protected Layer makePathLayer()
makePaths
protected void makePaths(RenderableLayer layer,
Position origin,
int numPaths,
Angle length,
int numPositions)
makePolygonLayer
protected Layer makePolygonLayer()