API ReferenceGlobalsCameraControl

# Class: CameraControl

# Hierarchy

# Implements

# Index

# Constructors

# Properties

# Methods

# Constructors

# constructor

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

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

Parameters:

Name Type
creator string
inputManager InputManager
initialCameraPosition? Vector3

Returns: CameraControl

# Properties

# creator

creator: string

_Implementation of Context.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:29

Parameters:

Name Type
eventName number
callback ListenerFunction‹any›
scope any

Returns: void


# addLightContainer

addLightContainer(container: Object3D): void

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

Parameters:

Name Type
container Object3D

Returns: void


# animateCamera

animateCamera(delta: number): boolean

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

Parameters:

Name Type
delta number

Returns: boolean


# checkNearFarDistance

checkNearFarDistance(point: Vector3): void

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

Parameters:

Name Type
point Vector3

Returns: void


# cleanUp

cleanUp(): void

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

Returns: void


# disableEvents

disableEvents(): void

Inherited from EventDispatcher.disableEvents

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

Returns: void


# dispatchEvent

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

Inherited from EventDispatcher.dispatchEvent

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

Parameters:

Name Type
eventName number
arg? any

Returns: void


# enableEvents

enableEvents(): void

Inherited from EventDispatcher.enableEvents

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

Returns: void


# getCamera

getCamera(): Camera

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

Returns: Camera


# getInputPosition

getInputPosition(position: Position2): Vector3‹›

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

Parameters:

Name Type
position Position2

Returns: Vector3‹›


# getTargetPosition

getTargetPosition(): Vector3

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

Returns: Vector3


# hasSavedState

hasSavedState(): boolean

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

Returns: boolean


# lock

lock(): void

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

Returns: void


# removeEventListener

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

Inherited from EventDispatcher.removeEventListener

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

Parameters:

Name Type
eventName number
fun ListenerFunction‹any›

Returns: void


# resetToState

resetToState(): void

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

Returns: void


# saveState

saveState(override: boolean): CameraParameter

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

Parameters:

Name Type
override boolean

Returns: CameraParameter


# setToState

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

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

Parameters:

Name Type
start CameraParameter
state CameraParameter

Returns: void


# unlock

unlock(): void

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

Returns: void


# Abstract updateCamera

updateCamera(): void

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

Returns: void