Package gov.nasa.worldwind
Class WorldWind
- java.lang.Object
-
- gov.nasa.worldwind.WorldWind
-
public class WorldWind extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
WorldWind.AltitudeMode
Altitude mode indicates how WorldWind interprets a position's altitude component.static interface
WorldWind.DrawableGroup
Drawable group provides a standard set of group IDs for organizing WorldWindow drawing into four phases: background, surface, shape, and screen.static interface
WorldWind.GestureState
Gesture state indicates a GestureRecognizer's current state.static interface
WorldWind.ImageConfig
Image config indicates the in-memory representation for images displayed by WorldWind components.static interface
WorldWind.NavigatorAction
Navigator event action indicates the type of NavigatorEvent that has been generated.static interface
WorldWind.OffsetMode
Offset mode indicates how WorldWind interprets an offset's x and y values.static interface
WorldWind.OrientationMode
Orientation mode indicates how WorldWind interprets a renderable's orientation value, e.g., tilt and rotate values.static interface
WorldWind.PathType
Path type indicates how WorldWind create a geographic path between two locations.static interface
WorldWind.ResamplingMode
Resampling mode indicates the image sampling algorithm used by WorldWind to display images that appear larger or smaller on screen than their native resolution.static interface
WorldWind.WrapMode
Wrap mode indicates how WorldWind displays the contents of an image when attempting to draw a region outside of the image bounds.
-
Field Summary
Fields Modifier and Type Field Description static int
ABSOLUTE
WorldWind.AltitudeMode
constant indicating an altitude relative to the globe's ellipsoid.static int
BACKGROUND_DRAWABLE
WorldWind.DrawableGroup
constant indicating drawables displayed before everything else.static int
BEGAN
WorldWind.GestureState
constant for the BEGAN gesture recognizer state.static int
BILINEAR
WorldWind.ResamplingMode
constant indicating bilinear image sampling.static int
CANCELLED
WorldWind.GestureState
constant for the CANCELLED gesture recognizer state.static int
CHANGED
WorldWind.GestureState
constant indicating the CHANGED gesture recognizer state.static int
CLAMP
WorldWind.WrapMode
constant indicating that the image's edge pixels should be displayed outside of the image bounds.static int
CLAMP_TO_GROUND
WorldWind.AltitudeMode
constant indicating an altitude on the terrain.static int
ENDED
WorldWind.GestureState
constant indicating the ENDED gesture recognizer state.static int
FAILED
WorldWind.GestureState
constant for the FAILED gesture recognizer state.static int
GREAT_CIRCLE
WorldWind.PathType
constant indicating a great circle arc between two locations.static int
LINEAR
WorldWind.PathType
constant indicating simple linear interpolation between two locations.static int
NAVIGATOR_MOVED
WorldWind.NavigatorAction
constant indicating that the navigator has moved.static int
NAVIGATOR_STOPPED
WorldWind.NavigatorAction
constant indicating that the navigator has stopped moving.static int
NEAREST_NEIGHBOR
WorldWind.ResamplingMode
constant indicating nearest neighbor image sampling.static int
OFFSET_FRACTION
WorldWind.OffsetMode
constant indicating that the associated parameters are fractional values of the virtual rectangle's width or height in the range [0, 1], where 0 indicates the rectangle's origin and 1 indicates the corner opposite its origin.static int
OFFSET_INSET_PIXELS
WorldWind.OffsetMode
constant indicating that the associated parameters are in units of pixels relative to the virtual rectangle's corner opposite its origin corner.static int
OFFSET_PIXELS
WorldWind.OffsetMode
constant indicating that the associated parameters are in units of pixels relative to the virtual rectangle's origin.static int
POSSIBLE
WorldWind.GestureState
constant for the POSSIBLE gesture recognizer state.static int
RECOGNIZED
WorldWind.GestureState
constant for the RECOGNIZED gesture recognizer state.static int
RELATIVE_TO_GLOBE
WorldWind.OrientationMode
constant indicating that the related value is specified relative to the globe.static int
RELATIVE_TO_GROUND
WorldWind.AltitudeMode
constant indicating an altitude relative to the terrain.static int
RELATIVE_TO_SCREEN
WorldWind.OrientationMode
constant indicating that the related value is specified relative to the plane of the screen.static int
REPEAT
WorldWind.WrapMode
constant indicating that the image should display as a repeating pattern outside of the image bounds.static java.lang.String
REQUEST_REDRAW
Notification constant requesting that WorldWindow instances update their display.static int
RGB_565
WorldWind.ImageConfig
constant indicating 16-bit RGBA_565 image configuration.static int
RGBA_8888
WorldWind.ImageConfig
constant indicating 32-bit RGBA_8888 image configuration.static int
RHUMB_LINE
WorldWind.PathType
constant indicating a line of constant bearing between two locations.static int
SCREEN_DRAWABLE
WorldWind.DrawableGroup
constant indicating drawables displayed in the plane of the screen.static int
SHAPE_DRAWABLE
WorldWind.DrawableGroup
constant indicating shape drawables, such as placemarks, polygons and polylines.static int
SURFACE_DRAWABLE
WorldWind.DrawableGroup
constant indicating drawables displayed on the globe's surface.static Ellipsoid
WGS84_ELLIPSOID
WGS 84 reference ellipsoid for Earth.static double
WGS84_INVERSE_FLATTENING
WGS 84 reference value for Earth's inverse flattening:298.257223563
.static double
WGS84_SEMI_MAJOR_AXIS
WGS 84 reference value for Earth's semi-major axis:6378137.0
.
-
Constructor Summary
Constructors Constructor Description WorldWind()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static MessageService
messageService()
Returns a singleton MessageService instance that provides a mechanism for broadcasting notifications within the WorldWind library and WorldWind applications.static void
requestRedraw()
Requests that all WorldWindow instances update their display.static TaskService
taskService()
Returns a singleton TaskService instance that provides a mechanism for running asynchronous tasks within the WorldWind library and WorldWind applications.
-
-
-
Field Detail
-
ABSOLUTE
public static final int ABSOLUTE
WorldWind.AltitudeMode
constant indicating an altitude relative to the globe's ellipsoid. Ignores the elevation of the terrain directly beneath the position's latitude and longitude.- See Also:
- Constant Field Values
-
CLAMP_TO_GROUND
public static final int CLAMP_TO_GROUND
WorldWind.AltitudeMode
constant indicating an altitude on the terrain. Ignores a position's specified altitude, and always places the position on the terrain.- See Also:
- Constant Field Values
-
RELATIVE_TO_GROUND
public static final int RELATIVE_TO_GROUND
WorldWind.AltitudeMode
constant indicating an altitude relative to the terrain. The altitude indicates height above the terrain directly beneath the position's latitude and longitude.- See Also:
- Constant Field Values
-
BACKGROUND_DRAWABLE
public static final int BACKGROUND_DRAWABLE
WorldWind.DrawableGroup
constant indicating drawables displayed before everything else. This group is typically used to display atmosphere and stars before all other drawables.- See Also:
- Constant Field Values
-
SURFACE_DRAWABLE
public static final int SURFACE_DRAWABLE
WorldWind.DrawableGroup
constant indicating drawables displayed on the globe's surface. Surface drawables are displayed beneath shapes and screen drawables.- See Also:
- Constant Field Values
-
SHAPE_DRAWABLE
public static final int SHAPE_DRAWABLE
WorldWind.DrawableGroup
constant indicating shape drawables, such as placemarks, polygons and polylines. Shape drawables are displayed on top of surface drawables, but beneath screen drawables.- See Also:
- Constant Field Values
-
SCREEN_DRAWABLE
public static final int SCREEN_DRAWABLE
WorldWind.DrawableGroup
constant indicating drawables displayed in the plane of the screen. Screen drawables are displayed on top of everything else.- See Also:
- Constant Field Values
-
POSSIBLE
public static final int POSSIBLE
WorldWind.GestureState
constant for the POSSIBLE gesture recognizer state. Gesture recognizers in this state are idle when there is no input event to evaluate, or are evaluating input events to determine whether or not to transition into another state.- See Also:
- Constant Field Values
-
FAILED
public static final int FAILED
WorldWind.GestureState
constant for the FAILED gesture recognizer state. Gesture recognizers transition to this state from the POSSIBLE state when the gesture cannot be recognized given the current input.- See Also:
- Constant Field Values
-
RECOGNIZED
public static final int RECOGNIZED
WorldWind.GestureState
constant for the RECOGNIZED gesture recognizer state. Discrete gesture recognizers transition to this state from the POSSIBLE state when the gesture is recognized.- See Also:
- Constant Field Values
-
BEGAN
public static final int BEGAN
WorldWind.GestureState
constant for the BEGAN gesture recognizer state. Continuous gesture recognizers transition to this state from the POSSIBLE state when the gesture is first recognized.- See Also:
- Constant Field Values
-
CHANGED
public static final int CHANGED
WorldWind.GestureState
constant indicating the CHANGED gesture recognizer state. Continuous gesture recognizers transition to this state from the BEGAN state or the CHANGED state, whenever an input event indicates a change in the gesture.- See Also:
- Constant Field Values
-
CANCELLED
public static final int CANCELLED
WorldWind.GestureState
constant for the CANCELLED gesture recognizer state. Continuous gesture recognizers may transition to this state from the BEGAN state or the CHANGED state when the touch events are cancelled.- See Also:
- Constant Field Values
-
ENDED
public static final int ENDED
WorldWind.GestureState
constant indicating the ENDED gesture recognizer state. Continuous gesture recognizers transition to this state from either the BEGAN state or the CHANGED state when the current input no longer represents the gesture.- See Also:
- Constant Field Values
-
RGBA_8888
public static final int RGBA_8888
WorldWind.ImageConfig
constant indicating 32-bit RGBA_8888 image configuration.- See Also:
- Constant Field Values
-
RGB_565
public static final int RGB_565
WorldWind.ImageConfig
constant indicating 16-bit RGBA_565 image configuration.- See Also:
- Constant Field Values
-
NAVIGATOR_MOVED
public static final int NAVIGATOR_MOVED
WorldWind.NavigatorAction
constant indicating that the navigator has moved.- See Also:
- Constant Field Values
-
NAVIGATOR_STOPPED
public static final int NAVIGATOR_STOPPED
WorldWind.NavigatorAction
constant indicating that the navigator has stopped moving.- See Also:
- Constant Field Values
-
OFFSET_FRACTION
public static final int OFFSET_FRACTION
WorldWind.OffsetMode
constant indicating that the associated parameters are fractional values of the virtual rectangle's width or height in the range [0, 1], where 0 indicates the rectangle's origin and 1 indicates the corner opposite its origin.- See Also:
- Constant Field Values
-
OFFSET_INSET_PIXELS
public static final int OFFSET_INSET_PIXELS
WorldWind.OffsetMode
constant indicating that the associated parameters are in units of pixels relative to the virtual rectangle's corner opposite its origin corner.- See Also:
- Constant Field Values
-
OFFSET_PIXELS
public static final int OFFSET_PIXELS
WorldWind.OffsetMode
constant indicating that the associated parameters are in units of pixels relative to the virtual rectangle's origin.- See Also:
- Constant Field Values
-
RELATIVE_TO_GLOBE
public static final int RELATIVE_TO_GLOBE
WorldWind.OrientationMode
constant indicating that the related value is specified relative to the globe.- See Also:
- Constant Field Values
-
RELATIVE_TO_SCREEN
public static final int RELATIVE_TO_SCREEN
WorldWind.OrientationMode
constant indicating that the related value is specified relative to the plane of the screen.- See Also:
- Constant Field Values
-
GREAT_CIRCLE
public static final int GREAT_CIRCLE
WorldWind.PathType
constant indicating a great circle arc between two locations.- See Also:
- Constant Field Values
-
LINEAR
public static final int LINEAR
WorldWind.PathType
constant indicating simple linear interpolation between two locations.- See Also:
- Constant Field Values
-
RHUMB_LINE
public static final int RHUMB_LINE
WorldWind.PathType
constant indicating a line of constant bearing between two locations.- See Also:
- Constant Field Values
-
BILINEAR
public static final int BILINEAR
WorldWind.ResamplingMode
constant indicating bilinear image sampling.- See Also:
- Constant Field Values
-
NEAREST_NEIGHBOR
public static final int NEAREST_NEIGHBOR
WorldWind.ResamplingMode
constant indicating nearest neighbor image sampling.- See Also:
- Constant Field Values
-
CLAMP
public static final int CLAMP
WorldWind.WrapMode
constant indicating that the image's edge pixels should be displayed outside of the image bounds.- See Also:
- Constant Field Values
-
REPEAT
public static final int REPEAT
WorldWind.WrapMode
constant indicating that the image should display as a repeating pattern outside of the image bounds.- See Also:
- Constant Field Values
-
REQUEST_REDRAW
public static final java.lang.String REQUEST_REDRAW
Notification constant requesting that WorldWindow instances update their display.- See Also:
- Constant Field Values
-
WGS84_SEMI_MAJOR_AXIS
public static final double WGS84_SEMI_MAJOR_AXIS
WGS 84 reference value for Earth's semi-major axis:6378137.0
. WGS 84 reference values taken from here.- See Also:
- Constant Field Values
-
WGS84_INVERSE_FLATTENING
public static final double WGS84_INVERSE_FLATTENING
WGS 84 reference value for Earth's inverse flattening:298.257223563
. WGS 84 reference values taken from here.- See Also:
- Constant Field Values
-
-
Method Detail
-
messageService
public static MessageService messageService()
Returns a singleton MessageService instance that provides a mechanism for broadcasting notifications within the WorldWind library and WorldWind applications.- Returns:
- the singleton message center
-
taskService
public static TaskService taskService()
Returns a singleton TaskService instance that provides a mechanism for running asynchronous tasks within the WorldWind library and WorldWind applications.- Returns:
- the singleton task service
-
requestRedraw
public static void requestRedraw()
Requests that all WorldWindow instances update their display. Internally, this dispatches a REQUEST_REDRAW message to the WorldWind message center.
-
-