API ReferenceGlobalsGLBViewerSceneManager

# Class: GLBViewerSceneManager

# Hierarchy

# Implements

# Index

# Constructors

# Properties

# Methods

# Constructors

# constructor

+ new GLBViewerSceneManager(creator: string, offset: CanvasOffset): GLBViewerSceneManager

Defined in packages/glb-viewer-core/src/webgl/glb-viewer-scene-manager.ts:33

Parameters:

Name Type
creator string
offset CanvasOffset

Returns: GLBViewerSceneManager

# Properties

# creator

creator: string

Implementation of Context.creator

Inherited from SceneManager.creator

Defined in packages/common-core/src/webgl/scene-manager.ts:41

# Methods

# adjustCamera

adjustCamera(position: Vector3, yaw: number, pitch: number, fov: number): void

Defined in packages/glb-viewer-core/src/webgl/glb-viewer-scene-manager.ts:128

Parameters:

Name Type
position Vector3
yaw number
pitch number
fov number

Returns: void


# cameraControlChanged

cameraControlChanged(): void

Inherited from SceneManager.cameraControlChanged

Defined in packages/common-core/src/webgl/scene-manager.ts:143

Returns: void


# cleanUp

cleanUp(): void

Inherited from SceneManager.cleanUp

Defined in packages/common-core/src/webgl/scene-manager.ts:383

Returns: void


# clearScene

clearScene(): void

Overrides SceneManager.clearScene

Defined in packages/glb-viewer-core/src/webgl/glb-viewer-scene-manager.ts:157

Returns: void


# destroy

destroy(): void

Inherited from SceneManager.destroy

Defined in packages/common-core/src/webgl/scene-manager.ts:619

Returns: void


# enableHD

enableHD(): void

Overrides SceneManager.enableHD

Defined in packages/glb-viewer-core/src/webgl/glb-viewer-scene-manager.ts:166

Returns: void


# getBakedShadowParams

getBakedShadowParams(): BakedShadowParams

Overrides SceneManager.getBakedShadowParams

Defined in packages/glb-viewer-core/src/webgl/glb-viewer-scene-manager.ts:204

Returns: BakedShadowParams


# getBounds

getBounds(): Box3

Overrides SceneManager.getBounds

Defined in packages/glb-viewer-core/src/webgl/glb-viewer-scene-manager.ts:220

Returns: Box3


# getCameraOffset

getCameraOffset(): CanvasOffset

Inherited from SceneManager.getCameraOffset

Defined in packages/common-core/src/webgl/scene-manager.ts:769

Returns: CanvasOffset


# getOrthographicOffsetCamera

getOrthographicOffsetCamera(): OrthographicOffsetCamera

Inherited from SceneManager.getOrthographicOffsetCamera

Defined in packages/common-core/src/webgl/scene-manager.ts:778

Returns: OrthographicOffsetCamera


# getPerspectiveOffsetCamera

getPerspectiveOffsetCamera(): PerspectiveOffsetCamera

Inherited from SceneManager.getPerspectiveOffsetCamera

Defined in packages/common-core/src/webgl/scene-manager.ts:794

Returns: PerspectiveOffsetCamera


# getPixotronParams

getPixotronParams(): any

Overrides SceneManager.getPixotronParams

Defined in packages/glb-viewer-core/src/webgl/glb-viewer-scene-manager.ts:176

Returns: any


# getScene

getScene(): Scene

Inherited from SceneManager.getScene

Defined in packages/common-core/src/webgl/scene-manager.ts:731

Returns: Scene


# handleEvent

handleEvent(evt: Event): void

Inherited from SceneManager.handleEvent

Defined in packages/common-core/src/webgl/scene-manager.ts:624

Parameters:

Name Type
evt Event

Returns: void


# loadDynamicLightSetting

loadDynamicLightSetting(source: DynamicLightSettingSource): Promise‹void›

Inherited from SceneManager.loadDynamicLightSetting

Defined in packages/common-core/src/webgl/scene-manager.ts:707

Parameters:

Name Type
source DynamicLightSettingSource

Returns: Promise‹void›


# loadGLB

loadGLB(url: string, automaticallyAdjustCamera: boolean, scaling: Vector3, callback?: function): Promise‹void›

Defined in packages/glb-viewer-core/src/webgl/glb-viewer-scene-manager.ts:67

Parameters:

url: string

Default value automaticallyAdjustCamera: boolean= true

Default value scaling: Vector3= new THREE.Vector3(1, 1, 1)

Optional callback: function

▸ (percent: number): void

Parameters:

Name Type
percent number

Returns: Promise‹void›


# loadQualitySetting

loadQualitySetting(qualitySetting: QualitySetting): void

Inherited from SceneManager.loadQualitySetting

Defined in packages/common-core/src/webgl/scene-manager.ts:700

Parameters:

Name Type
qualitySetting QualitySetting

Returns: void


# loadSceneSettings

loadSceneSettings(sceneSetting: SceneSettings): Promise‹void›

Inherited from SceneManager.loadSceneSettings

Defined in packages/common-core/src/webgl/scene-manager.ts:647

Parameters:

Name Type
sceneSetting SceneSettings

Returns: Promise‹void›


# loadStaticItem

loadStaticItem(id: string, callback?: function): Promise‹void›

Defined in packages/glb-viewer-core/src/webgl/glb-viewer-scene-manager.ts:55

Parameters:

id: string

Optional callback: function

▸ (percent: number): void

Parameters:

Name Type
percent number

Returns: Promise‹void›


# onElementFinished

onElementFinished(itemsFinished: number): void

Implementation of GLBRenderWorkerListener

Defined in packages/glb-viewer-core/src/webgl/glb-viewer-scene-manager.ts:146

Parameters:

Name Type
itemsFinished number

Returns: void


# onFinished

onFinished(_zip: any): void

Implementation of GLBRenderWorkerListener

Defined in packages/glb-viewer-core/src/webgl/glb-viewer-scene-manager.ts:150

Parameters:

Name Type
_zip any

Returns: void


# onStart

onStart(count: number): void

Implementation of GLBRenderWorkerListener

Defined in packages/glb-viewer-core/src/webgl/glb-viewer-scene-manager.ts:137

Parameters:

Name Type
count number

Returns: void


# pause

pause(): void

Inherited from SceneManager.pause

Defined in packages/common-core/src/webgl/scene-manager.ts:587

Returns: void


# preparePerspectiveImage

preparePerspectiveImage(renderer?: WebGLRenderer, width?: number, height?: number): Promise‹Base64Image

Defined in packages/glb-viewer-core/src/webgl/glb-viewer-scene-manager.ts:88

Parameters:

Name Type
renderer? WebGLRenderer
width? number
height? number

Returns: Promise‹Base64Image


# resume

resume(): void

Inherited from SceneManager.resume

Defined in packages/common-core/src/webgl/scene-manager.ts:596

Returns: void


# sceneChanged

sceneChanged(): void

Overrides SceneManager.sceneChanged

Defined in packages/glb-viewer-core/src/webgl/glb-viewer-scene-manager.ts:172

Returns: void


# setBackgroundColor

setBackgroundColor(hex: string): void

Inherited from SceneManager.setBackgroundColor

Defined in packages/common-core/src/webgl/scene-manager.ts:677

Parameters:

Name Type
hex string

Returns: void


# setBackgroundImage

setBackgroundImage(url: string): void

Inherited from SceneManager.setBackgroundImage

Defined in packages/common-core/src/webgl/scene-manager.ts:681

Parameters:

Name Type
url string

Returns: void


# setBakedShadow

setBakedShadow(hex: string, url: string): void

Inherited from SceneManager.setBakedShadow

Defined in packages/common-core/src/webgl/scene-manager.ts:685

Parameters:

Name Type
hex string
url string

Returns: void


# setCameraOffset

setCameraOffset(offset: CanvasOffset): void

Inherited from SceneManager.setCameraOffset

Defined in packages/common-core/src/webgl/scene-manager.ts:758

Parameters:

Name Type
offset CanvasOffset

Returns: void


# showGUI

showGUI(): Promise‹void›

Inherited from SceneManager.showGUI

Defined in packages/common-core/src/webgl/scene-manager.ts:517

Returns: Promise‹void›


# showStats

showStats(): void

Inherited from SceneManager.showStats

Defined in packages/common-core/src/webgl/scene-manager.ts:575

Returns: void


# updateCamera

updateCamera(_changeCamera: boolean): void

Inherited from SceneManager.updateCamera

Defined in packages/common-core/src/webgl/scene-manager.ts:349

Parameters:

Name Type Default
_changeCamera boolean true

Returns: void


# updateScene

updateScene(): void

Inherited from SceneManager.updateScene

Defined in packages/common-core/src/webgl/scene-manager.ts:735

Returns: void