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:39

# 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:135

Returns: void


# cleanUp

cleanUp(): void

Inherited from SceneManager.cleanUp

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

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:607

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:756

Returns: CanvasOffset


# getPerspectiveOffsetCamera

getPerspectiveOffsetCamera(): PerspectiveOffsetCamera

Inherited from SceneManager.getPerspectiveOffsetCamera

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

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:719

Returns: Scene


# handleEvent

handleEvent(evt: Event): void

Inherited from SceneManager.handleEvent

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

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:695

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:688

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:635

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:575

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:584

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:665

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:669

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:673

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:746

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:505

Returns: Promise‹void›


# showStats

showStats(): void

Inherited from SceneManager.showStats

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

Returns: void


# updateCamera

updateCamera(_changeCamera: boolean): void

Inherited from SceneManager.updateCamera

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

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:723

Returns: void