Skip navigation links
NASA World Wind

Package gov.nasa.worldwind.view

The view package contains implementations, and support for implementations of the View interface.

See: Description

Package gov.nasa.worldwind.view Description

The view package contains implementations, and support for implementations of the View interface. It contains 2 inner packages that implement specific view models, gov.nasa.worldwind.view.orbit, and gov.nasa.worldwind.view.firstperson.

The View interface is based on the premise that a view's position and orientation can be defined as Position(latitude, longitude, elevation), heading, pitch, and roll. The ViewUtil class provides utility methods for:
  1. Constructing modelview matrices for use in OpenGL from this basic geocentric position/orientation.
  2. Constructing OpenGL projection matrices from a frustum.
  3. Computing position, heading, pitch, roll values from modelview matrices.

A View has a reference to a Globe, that it gleens from the DrawContext passed to it in its View.apply(gov.nasa.worldwind.render.DrawContext) method. A single View instance may not be used simultaneously on Models with different Globes.

Skip navigation links
NASA World Wind