Home Reference Source
public class | source

L_WalkThroughCameraController

Extends:

GLBoostObject → L_WalkThroughCameraController

Constructor Summary

Public Constructor
public

constructor(glBoostContext: *, options: *)

Member Summary

Public Members
public

[key]: *

public get

allInfo: *

public set

allInfo: *

public set
public get
public set
public get
Private Members
private
private
private
private
private
private
private
private
private
private
private
private
private
private
private
private
private
private
private
private
private
private
private

_newDir: *

private
private
private
private

Method Summary

Public Methods
public

addCamera(camera: *)

public

convert(camera: *): undefined[]

public
public

registerEventListeners(eventTargetDom: *)

public

reset()

public
public

unregisterEventListeners(eventTargetDom: *)

public
Private Methods
private

_mouseDown(evt: *): boolean

private

_mouseMove(evt: *)

private

_mouseUp(evt: *)

private

_mouseWheel(e: *)

Inherited Summary

From class GLBoostObject
public static
private static
private static
public get
public get
public get

Return the simple class-specific number.

public get
public get
public get
public get
public get
public get
public set
private
private
private
private
private
private
private
private
private
private
public
public
public
public

Return instance name.

public
private

_copy(instance: *)

private

Public Constructors

public constructor(glBoostContext: *, options: *) source

Override:

GLBoostObject#constructor

Params:

NameTypeAttributeDescription
glBoostContext *
options *
  • optional
  • default: {[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]}

Public Members

public [key]: * source

public get allInfo: * source

public set allInfo: * source

public set horizontalSpeed: * source

public get horizontalSpeed: * source

public set virticalSpeed: * source

public get virticalSpeed: * source

Private Members

private _camaras: * source

private _clickedMouseXOnCanvas: * source

private _clickedMouseYOnCanvas: * source

private _currentCenter: * source

private _currentDir: * source

private _currentPos: * source

private _deltaMouseXOnCanvas: * source

private _deltaMouseYOnCanvas: * source

private _deltaX: number source

private _deltaY: number source

private _draggedMouseXOnCanvas: * source

private _draggedMouseYOnCanvas: * source

private _horizontalSpeed: * source

private _inverseHorizontalRotating: * source

private _inverseVirticalRotating: * source

private _isKeyDown: boolean source

private _isMouseDown: boolean source

private _isMouseDrag: boolean source

private _lastKeyCode: * source

private _mouseWheelSpeedScale: * source

private _mouseXAdjustScale: number source

private _mouseYAdjustScale: number source

private _newDir: * source

private _onKeydown: * source

private _onKeyup: * source

private _turnSpeed: * source

private _virticalSpeed: * source

Public Methods

public addCamera(camera: *) source

Params:

NameTypeAttributeDescription
camera *

public convert(camera: *): undefined[] source

Params:

NameTypeAttributeDescription
camera *

Return:

undefined[]

public getDirection(): * source

Return:

*

public registerEventListeners(eventTargetDom: *) source

Params:

NameTypeAttributeDescription
eventTargetDom *
  • optional
  • default: undefined

public reset() source

public tryReset() source

public unregisterEventListeners(eventTargetDom: *) source

Params:

NameTypeAttributeDescription
eventTargetDom *
  • optional
  • default: undefined

public updateCamera() source

Private Methods

private _mouseDown(evt: *): boolean source

Params:

NameTypeAttributeDescription
evt *

Return:

boolean

private _mouseMove(evt: *) source

Params:

NameTypeAttributeDescription
evt *

private _mouseUp(evt: *) source

Params:

NameTypeAttributeDescription
evt *

private _mouseWheel(e: *) source

Params:

NameTypeAttributeDescription
e *