API ReferenceGlobalsMockCameraControl

# Class: MockCameraControl

# Hierarchy

CameraControl3D

MockCameraControl

# Implements

# Index

# Constructors

# Properties

# Methods

# Constructors

# constructor

+ new MockCameraControl(): MockCameraControl

Overrides CameraControl3D.constructor

Defined in packages/configurator-core/tests/scene-helper.ts:30

Returns: MockCameraControl

# Properties

# creator

creator: string

Implementation of Context.creator

Inherited from CameraControl.creator

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


# maxAzimuthAngle

maxAzimuthAngle: number = Number.POSITIVE_INFINITY

Inherited from CameraControl3D.maxAzimuthAngle

Defined in packages/common-core/src/cameracontrol/camera-control-3d.ts:53


# maxDistance

maxDistance: number = 5

Inherited from CameraControl3D.maxDistance

Defined in packages/common-core/src/cameracontrol/camera-control-3d.ts:47


# maxPolarAngle

maxPolarAngle: number = toRadiant(MAX_POLAR_ANGLE)

Inherited from CameraControl3D.maxPolarAngle

Defined in packages/common-core/src/cameracontrol/camera-control-3d.ts:50


# minAzimuthAngle

minAzimuthAngle: number = Number.NEGATIVE_INFINITY

Inherited from CameraControl3D.minAzimuthAngle

Defined in packages/common-core/src/cameracontrol/camera-control-3d.ts:52


# minDistance

minDistance: number = 0

Inherited from CameraControl3D.minDistance

Defined in packages/common-core/src/cameracontrol/camera-control-3d.ts:46


# minPolarAngle

minPolarAngle: number = toRadiant(0)

Inherited from CameraControl3D.minPolarAngle

Defined in packages/common-core/src/cameracontrol/camera-control-3d.ts:49

# 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

Inherited from CameraControl3D.animateCamera

Overrides CameraControl.animateCamera

Defined in packages/common-core/src/cameracontrol/camera-control-3d.ts:139

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


# clear

clear(): void

Inherited from CameraControl3D.clear

Defined in packages/common-core/src/cameracontrol/camera-control-3d.ts:564

Returns: void


# disablePanning

disablePanning(): void

Inherited from CameraControl3D.disablePanning

Defined in packages/common-core/src/cameracontrol/camera-control-3d.ts:581

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


# enablePanning

enablePanning(): void

Inherited from CameraControl3D.enablePanning

Defined in packages/common-core/src/cameracontrol/camera-control-3d.ts:576

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


# moveCamera

moveCamera(cameraParameter: CameraParameter): Promise‹void›

Inherited from CameraControl3D.moveCamera

Defined in packages/common-core/src/cameracontrol/camera-control-3d.ts:572

Parameters:

Name Type
cameraParameter CameraParameter

Returns: Promise‹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


# reset

reset(bounds: Box3, target?: Vector3, yaw?: number, pitch?: number, animate: boolean): void

Inherited from CameraControl3D.reset

Defined in packages/common-core/src/cameracontrol/camera-control-3d.ts:383

Parameters:

Name Type Default
bounds Box3 -
target? Vector3 -
yaw? number -
pitch? number -
animate boolean true

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


# setBounds

setBounds(boundingBox: Box3): void

Inherited from CameraControl3D.setBounds

Defined in packages/common-core/src/cameracontrol/camera-control-3d.ts:264

Parameters:

Name Type
boundingBox Box3

Returns: void


# 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


# updateAndReset

updateAndReset(bounds: Vector3, target?: Vector3, yaw?: number, pitch?: number, spacing?: number, animate: boolean): void

Inherited from CameraControl3D.updateAndReset

Defined in packages/common-core/src/cameracontrol/camera-control-3d.ts:423

Parameters:

Name Type Default
bounds Vector3 -
target? Vector3 -
yaw? number -
pitch? number -
spacing? number -
animate boolean true

Returns: void


# updateCamera

updateCamera(): void

Inherited from CameraControl3D.updateCamera

Overrides CameraControl.updateCamera

Defined in packages/common-core/src/cameracontrol/camera-control-3d.ts:133

Returns: void


# updateToBounds

updateToBounds(boundingBox: Box3, isPreview: boolean, changeCamera: boolean, target?: Vector3): void

Overrides CameraControl3D.updateToBounds

Defined in packages/configurator-core/tests/scene-helper.ts:35

Parameters:

Name Type Default
boundingBox Box3 -
isPreview boolean -
changeCamera boolean true
target? Vector3 -

Returns: void


# zoomIn

zoomIn(value?: number): void

Inherited from CameraControl3D.zoomIn

Defined in packages/common-core/src/cameracontrol/camera-control-3d.ts:550

Parameters:

Name Type
value? number

Returns: void


# zoomOut

zoomOut(value?: number): void

Inherited from CameraControl3D.zoomOut

Defined in packages/common-core/src/cameracontrol/camera-control-3d.ts:557

Parameters:

Name Type
value? number

Returns: void


# zoomTo

zoomTo(bounds: Vector3, windowWidth: number, windowHeight: number, yaw: number, pitch: number, target: Vector3): Promise‹void›

Inherited from CameraControl3D.zoomTo

Defined in packages/common-core/src/cameracontrol/camera-control-3d.ts:533

Parameters:

Name Type
bounds Vector3
windowWidth number
windowHeight number
yaw number
pitch number
target Vector3

Returns: Promise‹void›


# zoomToFitBounds

zoomToFitBounds(boundingBox: Box3): void

Inherited from CameraControl3D.zoomToFitBounds

Defined in packages/common-core/src/cameracontrol/camera-control-3d.ts:268

Parameters:

Name Type
boundingBox Box3

Returns: void