src/BasicWorldWindowController.js
function (worldWindow) {
            WorldWindowController.call(this, worldWindow); // base class checks for a valid worldWindow

            // Intentionally not documented.
            this.primaryDragRecognizer = new DragRecognizer(this.wwd, null);
            this.primaryDragRecognizer.addListener(this);

            // Intentionally not documented.
            this.secondaryDragRecognizer = new DragRecognizer(this.wwd, null);
            this.secondaryDragRecognizer.addListener(this);
            this.secondaryDragRecognizer.button = 2; // secondary mouse button

            // Intentionally not documented.
            this.panRecognizer = new PanRecognizer(this.wwd, null);
            this.panRecognizer.addListener(this);

            // Intentionally not documented.
            this.pinchRecognizer = new PinchRecognizer(this.wwd, null);
            this.pinchRecognizer.addListener(this);

            // Intentionally not documented.
            this.rotationRecognizer = new RotationRecognizer(this.wwd, null);
            this.rotationRecognizer.addListener(this);

            // Intentionally not documented.
            this.tiltRecognizer = new TiltRecognizer(this.wwd, null);
            this.tiltRecognizer.addListener(this);

            // Establish the dependencies between gesture recognizers. The pan, pinch and rotate gesture may recognize
            // simultaneously with each other.
            this.panRecognizer.recognizeSimultaneouslyWith(this.pinchRecognizer);
            this.panRecognizer.recognizeSimultaneouslyWith(this.rotationRecognizer);
            this.pinchRecognizer.recognizeSimultaneouslyWith(this.rotationRecognizer);

            // Since the tilt gesture is a subset of the pan gesture, pan will typically recognize before tilt,
            // effectively suppressing tilt. Establish a dependency between the other touch gestures and tilt to provide
            // tilt an opportunity to recognize.
            this.panRecognizer.requireRecognizerToFail(this.tiltRecognizer);
            this.pinchRecognizer.requireRecognizerToFail(this.tiltRecognizer);
            this.rotationRecognizer.requireRecognizerToFail(this.tiltRecognizer);

            // Intentionally not documented.
            // this.tapRecognizer = new TapRecognizer(this.wwd, null);
            // this.tapRecognizer.addListener(this);

            // Intentionally not documented.
            // this.clickRecognizer = new ClickRecognizer(this.wwd, null);
            // this.clickRecognizer.addListener(this);

            // Intentionally not documented.
            this.beginPoint = new Vec2(0, 0);
            this.lastPoint = new Vec2(0, 0);
            this.beginHeading = 0;
            this.beginTilt = 0;
            this.beginRange = 0;
            this.lastRotation = 0;
        }
function (worldWindow) {
            WorldWindowController.call(this, worldWindow); // base class checks for a valid worldWindow

            // Intentionally not documented.
            this.primaryDragRecognizer = new DragRecognizer(this.wwd, null);
            this.primaryDragRecognizer.addListener(this);

            // Intentionally not documented.
            this.secondaryDragRecognizer = new DragRecognizer(this.wwd, null);
            this.secondaryDragRecognizer.addListener(this);
            this.secondaryDragRecognizer.button = 2; // secondary mouse button

            // Intentionally not documented.
            this.panRecognizer = new PanRecognizer(this.wwd, null);
            this.panRecognizer.addListener(this);

            // Intentionally not documented.
            this.pinchRecognizer = new PinchRecognizer(this.wwd, null);
            this.pinchRecognizer.addListener(this);

            // Intentionally not documented.
            this.rotationRecognizer = new RotationRecognizer(this.wwd, null);
            this.rotationRecognizer.addListener(this);

            // Intentionally not documented.
            this.tiltRecognizer = new TiltRecognizer(this.wwd, null);
            this.tiltRecognizer.addListener(this);

            // Establish the dependencies between gesture recognizers. The pan, pinch and rotate gesture may recognize
            // simultaneously with each other.
            this.panRecognizer.recognizeSimultaneouslyWith(this.pinchRecognizer);
            this.panRecognizer.recognizeSimultaneouslyWith(this.rotationRecognizer);
            this.pinchRecognizer.recognizeSimultaneouslyWith(this.rotationRecognizer);

            // Since the tilt gesture is a subset of the pan gesture, pan will typically recognize before tilt,
            // effectively suppressing tilt. Establish a dependency between the other touch gestures and tilt to provide
            // tilt an opportunity to recognize.
            this.panRecognizer.requireRecognizerToFail(this.tiltRecognizer);
            this.pinchRecognizer.requireRecognizerToFail(this.tiltRecognizer);
            this.rotationRecognizer.requireRecognizerToFail(this.tiltRecognizer);

            // Intentionally not documented.
            // this.tapRecognizer = new TapRecognizer(this.wwd, null);
            // this.tapRecognizer.addListener(this);

            // Intentionally not documented.
            // this.clickRecognizer = new ClickRecognizer(this.wwd, null);
            // this.clickRecognizer.addListener(this);

            // Intentionally not documented.
            this.beginPoint = new Vec2(0, 0);
            this.lastPoint = new Vec2(0, 0);
            this.beginHeading = 0;
            this.beginTilt = 0;
            this.beginRange = 0;
            this.lastRotation = 0;
        }
function ( worldWindow ) { WorldWindowController . call ( this , worldWindow ) ; // base class checks for a valid worldWindow // Intentionally not documented. this . primaryDragRecognizer = new DragRecognizer ( this . wwd , null ) ; this . primaryDragRecognizer . addListener ( this ) ; // Intentionally not documented. this . secondaryDragRecognizer = new DragRecognizer ( this . wwd , null ) ; this . secondaryDragRecognizer . addListener ( this ) ; this . secondaryDragRecognizer . button = 2 ; // secondary mouse button // Intentionally not documented. this . panRecognizer = new PanRecognizer ( this . wwd , null ) ; this . panRecognizer . addListener ( this ) ; // Intentionally not documented. this . pinchRecognizer = new PinchRecognizer ( this . wwd , null ) ; this . pinchRecognizer . addListener ( this ) ; // Intentionally not documented. this . rotationRecognizer = new RotationRecognizer ( this . wwd , null ) ; this . rotationRecognizer . addListener ( this ) ; // Intentionally not documented. this . tiltRecognizer = new TiltRecognizer ( this . wwd , null ) ; this . tiltRecognizer . addListener ( this ) ; // Establish the dependencies between gesture recognizers. The pan, pinch and rotate gesture may recognize // simultaneously with each other. this . panRecognizer . recognizeSimultaneouslyWith ( this . pinchRecognizer ) ; this . panRecognizer . recognizeSimultaneouslyWith ( this . rotationRecognizer ) ; this . pinchRecognizer . recognizeSimultaneouslyWith ( this . rotationRecognizer ) ; // Since the tilt gesture is a subset of the pan gesture, pan will typically recognize before tilt, // effectively suppressing tilt. Establish a dependency between the other touch gestures and tilt to provide // tilt an opportunity to recognize. this . panRecognizer . requireRecognizerToFail ( this . tiltRecognizer ) ; this . pinchRecognizer . requireRecognizerToFail ( this . tiltRecognizer ) ; this . rotationRecognizer . requireRecognizerToFail ( this . tiltRecognizer ) ; // Intentionally not documented. // this.tapRecognizer = new TapRecognizer(this.wwd, null); // this.tapRecognizer.addListener(this); // Intentionally not documented. // this.clickRecognizer = new ClickRecognizer(this.wwd, null); // this.clickRecognizer.addListener(this); // Intentionally not documented. this . beginPoint = new Vec2 ( 0 , 0 ) ; this . lastPoint = new Vec2 ( 0 , 0 ) ; this . beginHeading = 0 ; this . beginTilt = 0 ; this . beginRange = 0 ; this . lastRotation = 0 ; }
Constructs a window controller with basic capabilities.
@alias BasicWorldWindowController
@constructor
@augments WorldWindowController
@classDesc This class provides the default window controller for WorldWind for controlling the globe via user interaction.
@param {WorldWindow} worldWindow The WorldWindow associated with this layer.
Constructs a window controller with basic capabilities .