API ReferenceGlobalsGLBViewerSceneManager

# Class: GLBViewerSceneManager

# Hierarchy

# Implements

# Index

# Constructors

# Properties

# Methods

# Constructors

# constructor

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

Overrides SceneManager.constructor

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

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

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

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

Returns: void


# cleanUp

cleanUp(): void

Inherited from SceneManager.cleanUp

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

Returns: void


# clearScene

clearScene(): void

Overrides SceneManager.clearScene

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

Returns: void


# destroy

destroy(): void

Inherited from SceneManager.destroy

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

Returns: void


# enableHD

enableHD(): void

Overrides SceneManager.enableHD

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

Returns: void


# getBakedShadowParams

getBakedShadowParams(): BakedShadowParams

Overrides SceneManager.getBakedShadowParams

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

Returns: BakedShadowParams


# getBounds

getBounds(): Box3

Overrides SceneManager.getBounds

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

Returns: Box3


# getCameraOffset

getCameraOffset(): CanvasOffset

Inherited from SceneManager.getCameraOffset

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

Returns: CanvasOffset


# getPerspectiveOffsetCamera

getPerspectiveOffsetCamera(): PerspectiveOffsetCamera

Inherited from SceneManager.getPerspectiveOffsetCamera

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

Returns: PerspectiveOffsetCamera


# getPixotronParams

getPixotronParams(): any

Overrides SceneManager.getPixotronParams

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

Returns: any


# getScene

getScene(): Scene

Inherited from SceneManager.getScene

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

Returns: Scene


# handleEvent

handleEvent(evt: Event): void

Inherited from SceneManager.handleEvent

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

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

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

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

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

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

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

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

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

Parameters:

Name Type
count number

Returns: void


# pause

pause(): void

Inherited from SceneManager.pause

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

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

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

Returns: void


# sceneChanged

sceneChanged(): void

Overrides SceneManager.sceneChanged

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

Returns: void


# setCameraOffset

setCameraOffset(offset: CanvasOffset): void

Inherited from SceneManager.setCameraOffset

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

Parameters:

Name Type
offset CanvasOffset

Returns: void


# setupScene

setupScene(offset?: CanvasOffset, transparent?: boolean): void

Inherited from SceneManager.setupScene

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

Parameters:

Name Type
offset? CanvasOffset
transparent? boolean

Returns: void


# showGUI

showGUI(): void

Inherited from SceneManager.showGUI

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

Returns: void


# showStats

showStats(): void

Inherited from SceneManager.showStats

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

Returns: void


# updateCamera

updateCamera(): void

Inherited from SceneManager.updateCamera

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

Returns: void


# updateScene

updateScene(): void

Inherited from SceneManager.updateScene

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

Returns: void