World Wind
Main WorldWind model, containing globe, terrain, renderable layers, camera, viewport and frame rendering logic.
Constructors
Types
Properties
Atmosphere altitude above ellipsoid. Used to control when objects are clipped by the far plain behind the globe.
Scale of logical pixel size to hardware display pixel size. Used to adopt general level of details to screen density.
Returns the minimum distance from the globe's surface necessary to make the globe's extents visible in this World Window.
Artificial restriction of far distance. Applied only if automatically calculated distance is grater.
Frame rendering and drawing logic implementation.
Helper class implementing FrameMetrics to measure performance.
The GoToAnimator used by this WorldWindow to respond to its goTo method.
Keep pixel scale when changing the height of viewport by adapting field of view
Per-frame light callback invoked when time is null. Should write a world-space unit vector pointing toward the light into RenderContext.lightDirection — e.g. a fixed camera-relative sun angle for shadows without a day/night terminator. When both time and this provider are null, the light defaults to the surface normal at the camera's foot point (scene lit from the zenith).
Platform-dependent GPU resource cache manager.
Terrain model tessellator.
Scene time, mirrored into RenderContext.time each frame. When set, the world light direction (RenderContext.lightDirection) follows the real sun at this moment, driving lambert shading, shadows, the atmosphere day/night terminator and star field positions.
Functions
Get look at orientation and range based on current camera position and specified geographic position
Set camera position and orientation, based on look at position, orientation and range
Transforms a Cartesian coordinate point to viewport coordinates.
This stores the converted point in the result argument, and returns a boolean value indicating whether the converted is successful. This returns false if the Cartesian point is clipped by either the WorldWindow's near clipping plane or far clipping plane.
Transforms a geographic position to viewport coordinates.
This stores the converted point in the result argument, and returns a boolean value indicating whether the converted is successful. This returns false if the Cartesian point is clipped by either of the WorldWindow's near clipping plane or far clipping plane.
More efficient way to determine terrain position at screen point using terrain from last rendered frame.
Returns the height of a pixel at a given distance from the eye point. This method assumes the model of a screen composed of rectangular pixels, where pixel coordinates denote infinitely thin space between pixels. The units of the returned size are in meters per pixel.
The result of this method is undefined if the distance is negative.
Computes a Cartesian coordinate ray that passes through a screen point.
Converts a screen point to the geographic coordinates on the globe ellipsoid, ignoring terrain altitude.
Converts a screen point to geographic coordinates on a surface offset upward by altitude meters from the reference ellipsoid (terrain ignored). Symmetric with geographicToScreenPoint at the same altitude, so screen deltas and geographic deltas stay consistent under perspective — used by SelectDragDetector to drag ABSOLUTE-altitude shapes without the cursor racing ahead. altitude == 0 collapses to screenPointToGroundPosition.
Specify the default WorldWind OpenGL state.
Apply new viewport dimensions.