Home Reference Source
public class | source

L_CameraController

Extends:

GLBoostObject → L_CameraController

Constructor Summary

Public Constructor
public

constructor(glBoostContext: *, options: *)

Member Summary

Public Members
public

[key]: *

public set

allInfo: *

public get

allInfo: *

public get

dolly: *

public set

dolly: *

public get

rotX: *

public set

rotX: *

public get

rotY: *

public set

rotY: *

public get
public set
public get

target: *

public set

target: *

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

_eyeVec: *

private
private
private
private
private
private
private
private
private
private
private
private
private
private
private
private
private
private
private
private
private
private
private
private
private
private
private
private
private

_target: *

private

_upVec: *

private
private
private
private

Method Summary

Public Methods
public

addCamera(camera: *)

public

convert(camera: *): undefined[]

public

registerEventListeners(eventTargetDom: *)

public

reset()

public
public
public

unregisterEventListeners(eventTargetDom: *)

public
public
Private Methods
private

_getFovyFromCamera(camera: *): *

private
private

_updateTargeting(camera: *, eyeVec: *, centerVec: *, upVec: *, fovy: *): undefined[]

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]}

Public Members

public [key]: * source

public set allInfo: * source

public get allInfo: * source

public get dolly: * source

public set dolly: * source

public get rotX: * source

public set rotX: * source

public get rotY: * source

public set rotY: * source

public get shiftCameraTo: * source

public set shiftCameraTo: * source

public get target: * source

public set target: * source

public get zFarAdjustingFactorBasedOnAABB: * source

public set zFarAdjustingFactorBasedOnAABB: * source

Private Members

private _camaras: * source

private _centerVec: * source

private _clickedMouseXOnCanvas: number source

private _clickedMouseYOnCanvas: number source

private _doResetWhenCameraSettingChanged: * source

private _efficiency: * source

private _eyeVec: * source

private _foyvBias: number source

private _isForceGrab: * source

private _isKeyUp: boolean source

private _isSymmetryMode: * source

private _lengthCameraToObject: * source

private _lengthCenterToCorner: number source

private _lengthOfCenterToEye: number source

private _mouseTranslateVec: * source

private _mouse_translate_x: number source

private _mouse_translate_y: number source

private _movedMouseXOnCanvas: * source

private _movedMouseYOnCanvas: * source

private _newEyeToCenterVec: * source

private _newTangentVec: * source

private _newUpVec: * source

private _onContexMenu: * source

private _onMouseDblClick: * source

private _onMouseDown: * source

private _onMouseMove: * source

private _onMouseUp: * source

private _onMouseWheel: * source

private _rot_bgn_x: number source

private _rot_bgn_y: number source

private _rot_x: number source

private _rot_y: number source

private _scaleOfLengthCameraToCenter: number source

private _scaleOfTraslation: number source

private _shiftCameraTo: * source

private _target: * source

private _upVec: * source

private _verticalAngleOfVectors: number source

private _verticalAngleThrethold: number source

private _wheel_y: number source

private _zFarAdjustingFactorBasedOnAABB: number source

Public Methods

public addCamera(camera: *) source

Params:

NameTypeAttributeDescription
camera *

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

Params:

NameTypeAttributeDescription
camera *

Return:

undefined[]

public registerEventListeners(eventTargetDom: *) source

Params:

NameTypeAttributeDescription
eventTargetDom *
  • optional
  • default: undefined

public reset() source

public resetDolly() source

public tryReset() source

public unregisterEventListeners(eventTargetDom: *) source

Params:

NameTypeAttributeDescription
eventTargetDom *
  • optional
  • default: undefined

public updateCamera() source

public updateTargeting() source

Private Methods

private _getFovyFromCamera(camera: *): * source

Params:

NameTypeAttributeDescription
camera *

Return:

*

private _getTargetAABB(): * source

Return:

*

private _updateTargeting(camera: *, eyeVec: *, centerVec: *, upVec: *, fovy: *): undefined[] source

Params:

NameTypeAttributeDescription
camera *
eyeVec *
centerVec *
upVec *
fovy *

Return:

undefined[]