public class FlatAndRoundGlobes extends Object
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.Modifier and Type | Class and Description |
---|---|
protected static class |
FlatAndRoundGlobes.WWFrame |
protected static class |
FlatAndRoundGlobes.WWPanel |
Modifier and Type | Field and Description |
---|---|
protected static int |
ALTITUDE_MODE |
protected static double |
LINE_WIDTH |
protected static int |
NUM_PATHS |
protected static int |
NUM_POSITIONS |
protected static double |
PATH_HEIGHT |
protected static Angle |
PATH_LENGTH |
protected static LatLon |
START_LOCATION |
Constructor and Description |
---|
FlatAndRoundGlobes() |
Modifier and Type | Method and Description |
---|---|
protected void |
addViewControlLayer(FlatAndRoundGlobes.WWFrame wwf) |
static void |
main(String[] args) |
protected LayerList |
makeCommonLayers() |
protected Layer |
makeExtrudedPolygonLayer() |
protected Model |
makeModel(Globe globe,
LayerList layers) |
protected Path |
makePath(Position startPosition,
Angle heading,
Angle length,
int numPositions) |
protected Layer |
makePathLayer() |
protected void |
makePaths(RenderableLayer layer,
Position origin,
int numPaths,
Angle length,
int numPositions) |
protected Layer |
makePolygonLayer() |
protected static final int ALTITUDE_MODE
protected static final double LINE_WIDTH
protected static final int NUM_PATHS
protected static final int NUM_POSITIONS
protected static final double PATH_HEIGHT
protected static final Angle PATH_LENGTH
protected static final LatLon START_LOCATION
protected void addViewControlLayer(FlatAndRoundGlobes.WWFrame wwf)
public static void main(String[] args)
protected LayerList makeCommonLayers()
protected Layer makeExtrudedPolygonLayer()
protected Path makePath(Position startPosition, Angle heading, Angle length, int numPositions)
protected Layer makePathLayer()
protected void makePaths(RenderableLayer layer, Position origin, int numPaths, Angle length, int numPositions)
protected Layer makePolygonLayer()