public class WorldWindGlimpseUtils extends Object
Constructor and Description |
---|
WorldWindGlimpseUtils() |
Modifier and Type | Method and Description |
---|---|
static LatLonGeo |
fromLatLon(gov.nasa.worldwind.geom.LatLon latlon) |
static LatLonGeo |
fromPosition(gov.nasa.worldwind.geom.Position position) |
static void |
linkAxisToWorldWind(gov.nasa.worldwind.WorldWindow wwd,
GeoProjection projection,
Axis2D axis)
Sets up a listener to update the center of the provided axes to reflect the current eye
position of the WorldWindow.
|
static void |
linkMouseEvents(gov.nasa.worldwind.WorldWindow wwd,
GeoProjection projection,
GlimpseSurfaceTile tile)
Establishes a bridge which passes Swing MouseEvents which occur in the provided WorldWindow
to any GlimpseMouseListeners attached to the provided GlimpseSurfaceTile.
|
static void |
linkWorldWindToAxis(gov.nasa.worldwind.WorldWindow wwd,
GeoProjection projection,
Axis2D axis)
Sets up a listener to update the eye position of the WorldWindow to match the
center of the provided Glimpse Axis2D (for the given GeoProjection).
|
static void |
linkWorldWindToWorldWind(gov.nasa.worldwind.WorldWindow master,
gov.nasa.worldwind.WorldWindow slave)
Links two WorldWindows so that the eye position of the master window is copied to the
eye position of the slave.
|
static gov.nasa.worldwind.geom.LatLon |
toLatLon(LatLonGeo latlongeo) |
static gov.nasa.worldwind.geom.Position |
toPosition(LatLonGeo latlongeo) |
static gov.nasa.worldwind.geom.Position |
toPosition(LatLonGeo latlongeo,
double elevation) |
public static void linkMouseEvents(gov.nasa.worldwind.WorldWindow wwd, GeoProjection projection, GlimpseSurfaceTile tile)
wwd
- projection
- tile
- public static void linkWorldWindToWorldWind(gov.nasa.worldwind.WorldWindow master, gov.nasa.worldwind.WorldWindow slave)
master
- slave
- public static void linkAxisToWorldWind(gov.nasa.worldwind.WorldWindow wwd, GeoProjection projection, Axis2D axis)
wwd
- projection
- axis
- public static void linkWorldWindToAxis(gov.nasa.worldwind.WorldWindow wwd, GeoProjection projection, Axis2D axis)
wwd
- projection
- axis
- public static LatLonGeo fromPosition(gov.nasa.worldwind.geom.Position position)
public static gov.nasa.worldwind.geom.Position toPosition(LatLonGeo latlongeo, double elevation)
public static gov.nasa.worldwind.geom.Position toPosition(LatLonGeo latlongeo)
public static LatLonGeo fromLatLon(gov.nasa.worldwind.geom.LatLon latlon)
public static gov.nasa.worldwind.geom.LatLon toLatLon(LatLonGeo latlongeo)
Copyright © 2020 Metron, Inc.. All rights reserved.