Class: Navigator

Navigator(worldWindow)

Provides an abstract base class for navigators. This class is not meant to be instantiated directly. See LookAtNavigator for a concrete navigator.

Constructor

Constructs a base navigator.
Parameters:
Name Type Description
worldWindow WorldWindow The WorldWindow to associate with this navigator.
Source:

Members

heading :Number

This navigator's heading, in degrees clockwise from north.
Type:
  • Number
Default Value:
  • 0
Source:

roll :Number

This navigator's roll, in degrees.
Type:
  • Number
Default Value:
  • 0
Source:

tilt :Number

This navigator's tilt, in degrees.
Type:
  • Number
Default Value:
  • 0
Source:

(readonly) worldWindow :WorldWindow

The WorldWindow associated with this navigator.
Type:
Source:

Methods

currentState() → {NavigatorState}

Returns the current state of this navigator. Subclasses must override this method.
Source:
Returns:
The current state of this navigator.
Type
NavigatorState

(protected) currentStateForModelview(modelviewMatrix) → {NavigatorState}

Returns the current navigator state for a specified model-view matrix. This method is meant to be called only by subclasses; applications should not call this method.
Parameters:
Name Type Description
modelviewMatrix Matrix The modelview matrix.
Source:
Throws:
If the specified matrix is null or undefined.
Type
ArgumentError
Returns:
The current navigator state.
Type
NavigatorState