Class FlatAndRoundGlobes
- java.lang.Object
-
- gov.nasa.worldwindx.examples.multiwindow.FlatAndRoundGlobes
-
public class FlatAndRoundGlobes extends java.lang.ObjectThis 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
WorldWindowobjects 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
GlobeandLayerobjects 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 classFlatAndRoundGlobes.WWFrameprotected static classFlatAndRoundGlobes.WWPanel
-
Field Summary
Fields Modifier and Type Field Description protected static intALTITUDE_MODEprotected static doubleLINE_WIDTHprotected static intNUM_PATHSprotected static intNUM_POSITIONSprotected static doublePATH_HEIGHTprotected static AnglePATH_LENGTHprotected static LatLonSTART_LOCATION
-
Constructor Summary
Constructors Constructor Description FlatAndRoundGlobes()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidaddViewControlLayer(FlatAndRoundGlobes.WWFrame wwf)static voidmain(java.lang.String[] args)protected LayerListmakeCommonLayers()protected LayermakeExtrudedPolygonLayer()protected ModelmakeModel(Globe globe, LayerList layers)protected PathmakePath(Position startPosition, Angle heading, Angle length, int numPositions)protected LayermakePathLayer()protected voidmakePaths(RenderableLayer layer, Position origin, int numPaths, Angle length, int numPositions)protected LayermakePolygonLayer()
-
-
-
Field Detail
-
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_LENGTH
protected static final Angle PATH_LENGTH
-
PATH_HEIGHT
protected static final double PATH_HEIGHT
- See Also:
- Constant Field Values
-
START_LOCATION
protected static final LatLon START_LOCATION
-
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
-
-
Method Detail
-
makeCommonLayers
protected LayerList makeCommonLayers()
-
addViewControlLayer
protected void addViewControlLayer(FlatAndRoundGlobes.WWFrame wwf)
-
makePathLayer
protected Layer makePathLayer()
-
makePaths
protected void makePaths(RenderableLayer layer, Position origin, int numPaths, Angle length, int numPositions)
-
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)
-
-