API ReferenceGlobalsCameraControl2D

# Class: CameraControl2D

# Hierarchy

CameraControl

CameraControl2D

# Implements

# Index

# Constructors

# Properties

# Methods

# Constructors

# constructor

+ new CameraControl2D(creator: string, inputManager: InputManager, initialCameraPosition?: Vector3): CameraControl2D

Overrides CameraControl.constructor

Defined in packages/common-core/src/cameracontrol/camera-control-2d.ts:29

Parameters:

Name Type
creator string
inputManager InputManager
initialCameraPosition? Vector3

Returns: CameraControl2D

# Properties

# creator

creator: string

Implementation of Context.creator

Inherited from CameraControl.creator

Defined in packages/common-core/src/cameracontrol/camera-control.ts:77

# Methods

# addEventListener

addEventListener(eventName: number, callback: ListenerFunction‹any›, scope: any): void

Inherited from EventDispatcher.addEventListener

Defined in packages/configurator-core/src/utils/event-dispatcher.ts:28

Parameters:

Name Type
eventName number
callback ListenerFunction‹any›
scope any

Returns: void


# addLightContainer

addLightContainer(container: Object3D): void

Inherited from CameraControl.addLightContainer

Defined in packages/common-core/src/cameracontrol/camera-control.ts:353

Parameters:

Name Type
container Object3D

Returns: void


# animateCamera

animateCamera(delta: number): boolean

Overrides CameraControl.animateCamera

Defined in packages/common-core/src/cameracontrol/camera-control-2d.ts:190

Parameters:

Name Type
delta number

Returns: boolean


# checkNearFarDistance

checkNearFarDistance(point: Vector3): void

Inherited from CameraControl.checkNearFarDistance

Defined in packages/common-core/src/cameracontrol/camera-control.ts:363

Parameters:

Name Type
point Vector3

Returns: void


# cleanUp

cleanUp(): void

Inherited from CameraControl.cleanUp

Defined in packages/common-core/src/cameracontrol/camera-control.ts:157

Returns: void


# dispatchEvent

dispatchEvent(eventName: number, arg?: any): void

Inherited from EventDispatcher.dispatchEvent

Defined in packages/configurator-core/src/utils/event-dispatcher.ts:32

Parameters:

Name Type
eventName number
arg? any

Returns: void


# getCamera

getCamera(): Camera

Inherited from CameraControl.getCamera

Defined in packages/common-core/src/cameracontrol/camera-control.ts:134

Returns: Camera


# getInputPosition

getInputPosition(position: Position2): Vector3‹›

Inherited from CameraControl.getInputPosition

Defined in packages/common-core/src/cameracontrol/camera-control.ts:346

Parameters:

Name Type
position Position2

Returns: Vector3‹›


# getTargetPosition

getTargetPosition(): Vector3

Inherited from CameraControl.getTargetPosition

Defined in packages/common-core/src/cameracontrol/camera-control.ts:336

Returns: Vector3


# hasSavedState

hasSavedState(): boolean

Inherited from CameraControl.hasSavedState

Defined in packages/common-core/src/cameracontrol/camera-control.ts:324

Returns: boolean


# lock

lock(): void

Inherited from CameraControl.lock

Defined in packages/common-core/src/cameracontrol/camera-control.ts:328

Returns: void


# removeEventListener

removeEventListener(eventName: number, fun: ListenerFunction‹any›): void

Inherited from EventDispatcher.removeEventListener

Defined in packages/configurator-core/src/utils/event-dispatcher.ts:48

Parameters:

Name Type
eventName number
fun ListenerFunction‹any›

Returns: void


# resetToState

resetToState(): void

Inherited from CameraControl.resetToState

Defined in packages/common-core/src/cameracontrol/camera-control.ts:304

Returns: void


# saveState

saveState(override: boolean): CameraParameter

Inherited from CameraControl.saveState

Defined in packages/common-core/src/cameracontrol/camera-control.ts:278

Parameters:

Name Type
override boolean

Returns: CameraParameter


# setToState

setToState(start: CameraParameter, state: CameraParameter): void

Inherited from CameraControl.setToState

Defined in packages/common-core/src/cameracontrol/camera-control.ts:320

Parameters:

Name Type
start CameraParameter
state CameraParameter

Returns: void


# unlock

unlock(): void

Inherited from CameraControl.unlock

Defined in packages/common-core/src/cameracontrol/camera-control.ts:332

Returns: void


# updateCamera

updateCamera(): void

Overrides CameraControl.updateCamera

Defined in packages/common-core/src/cameracontrol/camera-control-2d.ts:60

Returns: void


# updateToBounds

updateToBounds(size: Vector3, center: Vector3): void

Defined in packages/common-core/src/cameracontrol/camera-control-2d.ts:158

Parameters:

Name Type
size Vector3
center Vector3

Returns: void