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 interfaceWorldWind.AltitudeModeAltitude mode indicates how WorldWind interprets a position's altitude component.static interfaceWorldWind.DrawableGroupDrawable group provides a standard set of group IDs for organizing WorldWindow drawing into four phases: background, surface, shape, and screen.static interfaceWorldWind.GestureStateGesture state indicates a GestureRecognizer's current state.static interfaceWorldWind.ImageConfigImage config indicates the in-memory representation for images displayed by WorldWind components.static interfaceWorldWind.NavigatorActionNavigator event action indicates the type of NavigatorEvent that has been generated.static interfaceWorldWind.OffsetModeOffset mode indicates how WorldWind interprets an offset's x and y values.static interfaceWorldWind.OrientationModeOrientation mode indicates how WorldWind interprets a renderable's orientation value, e.g., tilt and rotate values.static interfaceWorldWind.PathTypePath type indicates how WorldWind create a geographic path between two locations.static interfaceWorldWind.ResamplingModeResampling mode indicates the image sampling algorithm used by WorldWind to display images that appear larger or smaller on screen than their native resolution.static interfaceWorldWind.WrapModeWrap 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 intABSOLUTEWorldWind.AltitudeModeconstant indicating an altitude relative to the globe's ellipsoid.static intBACKGROUND_DRAWABLEWorldWind.DrawableGroupconstant indicating drawables displayed before everything else.static intBEGANWorldWind.GestureStateconstant for the BEGAN gesture recognizer state.static intBILINEARWorldWind.ResamplingModeconstant indicating bilinear image sampling.static intCANCELLEDWorldWind.GestureStateconstant for the CANCELLED gesture recognizer state.static intCHANGEDWorldWind.GestureStateconstant indicating the CHANGED gesture recognizer state.static intCLAMPWorldWind.WrapModeconstant indicating that the image's edge pixels should be displayed outside of the image bounds.static intCLAMP_TO_GROUNDWorldWind.AltitudeModeconstant indicating an altitude on the terrain.static intENDEDWorldWind.GestureStateconstant indicating the ENDED gesture recognizer state.static intFAILEDWorldWind.GestureStateconstant for the FAILED gesture recognizer state.static intGREAT_CIRCLEWorldWind.PathTypeconstant indicating a great circle arc between two locations.static intLINEARWorldWind.PathTypeconstant indicating simple linear interpolation between two locations.static intNAVIGATOR_MOVEDWorldWind.NavigatorActionconstant indicating that the navigator has moved.static intNAVIGATOR_STOPPEDWorldWind.NavigatorActionconstant indicating that the navigator has stopped moving.static intNEAREST_NEIGHBORWorldWind.ResamplingModeconstant indicating nearest neighbor image sampling.static intOFFSET_FRACTIONWorldWind.OffsetModeconstant 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 intOFFSET_INSET_PIXELSWorldWind.OffsetModeconstant indicating that the associated parameters are in units of pixels relative to the virtual rectangle's corner opposite its origin corner.static intOFFSET_PIXELSWorldWind.OffsetModeconstant indicating that the associated parameters are in units of pixels relative to the virtual rectangle's origin.static intPOSSIBLEWorldWind.GestureStateconstant for the POSSIBLE gesture recognizer state.static intRECOGNIZEDWorldWind.GestureStateconstant for the RECOGNIZED gesture recognizer state.static intRELATIVE_TO_GLOBEWorldWind.OrientationModeconstant indicating that the related value is specified relative to the globe.static intRELATIVE_TO_GROUNDWorldWind.AltitudeModeconstant indicating an altitude relative to the terrain.static intRELATIVE_TO_SCREENWorldWind.OrientationModeconstant indicating that the related value is specified relative to the plane of the screen.static intREPEATWorldWind.WrapModeconstant indicating that the image should display as a repeating pattern outside of the image bounds.static java.lang.StringREQUEST_REDRAWNotification constant requesting that WorldWindow instances update their display.static intRGB_565WorldWind.ImageConfigconstant indicating 16-bit RGBA_565 image configuration.static intRGBA_8888WorldWind.ImageConfigconstant indicating 32-bit RGBA_8888 image configuration.static intRHUMB_LINEWorldWind.PathTypeconstant indicating a line of constant bearing between two locations.static intSCREEN_DRAWABLEWorldWind.DrawableGroupconstant indicating drawables displayed in the plane of the screen.static intSHAPE_DRAWABLEWorldWind.DrawableGroupconstant indicating shape drawables, such as placemarks, polygons and polylines.static intSURFACE_DRAWABLEWorldWind.DrawableGroupconstant indicating drawables displayed on the globe's surface.static EllipsoidWGS84_ELLIPSOIDWGS 84 reference ellipsoid for Earth.static doubleWGS84_INVERSE_FLATTENINGWGS 84 reference value for Earth's inverse flattening:298.257223563.static doubleWGS84_SEMI_MAJOR_AXISWGS 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 MessageServicemessageService()Returns a singleton MessageService instance that provides a mechanism for broadcasting notifications within the WorldWind library and WorldWind applications.static voidrequestRedraw()Requests that all WorldWindow instances update their display.static TaskServicetaskService()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.AltitudeModeconstant 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.AltitudeModeconstant 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.AltitudeModeconstant 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.DrawableGroupconstant 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.DrawableGroupconstant 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.DrawableGroupconstant 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.DrawableGroupconstant 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.GestureStateconstant 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.GestureStateconstant 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.GestureStateconstant 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.GestureStateconstant 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.GestureStateconstant 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.GestureStateconstant 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.GestureStateconstant 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.ImageConfigconstant indicating 32-bit RGBA_8888 image configuration.- See Also:
- Constant Field Values
-
RGB_565
public static final int RGB_565
WorldWind.ImageConfigconstant indicating 16-bit RGBA_565 image configuration.- See Also:
- Constant Field Values
-
NAVIGATOR_MOVED
public static final int NAVIGATOR_MOVED
WorldWind.NavigatorActionconstant indicating that the navigator has moved.- See Also:
- Constant Field Values
-
NAVIGATOR_STOPPED
public static final int NAVIGATOR_STOPPED
WorldWind.NavigatorActionconstant indicating that the navigator has stopped moving.- See Also:
- Constant Field Values
-
OFFSET_FRACTION
public static final int OFFSET_FRACTION
WorldWind.OffsetModeconstant 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.OffsetModeconstant 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.OffsetModeconstant 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.OrientationModeconstant 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.OrientationModeconstant 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.PathTypeconstant indicating a great circle arc between two locations.- See Also:
- Constant Field Values
-
LINEAR
public static final int LINEAR
WorldWind.PathTypeconstant indicating simple linear interpolation between two locations.- See Also:
- Constant Field Values
-
RHUMB_LINE
public static final int RHUMB_LINE
WorldWind.PathTypeconstant indicating a line of constant bearing between two locations.- See Also:
- Constant Field Values
-
BILINEAR
public static final int BILINEAR
WorldWind.ResamplingModeconstant indicating bilinear image sampling.- See Also:
- Constant Field Values
-
NEAREST_NEIGHBOR
public static final int NEAREST_NEIGHBOR
WorldWind.ResamplingModeconstant indicating nearest neighbor image sampling.- See Also:
- Constant Field Values
-
CLAMP
public static final int CLAMP
WorldWind.WrapModeconstant 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.WrapModeconstant 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.
-
-