API ReferenceGlobalsMaterialViewerSceneManager

# Class: MaterialViewerSceneManager

# Hierarchy

# Implements

# Index

# Constructors

# Properties

# Methods

# Constructors

# constructor

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

Overrides SceneManager.constructor

Defined in packages/material-viewer/src/webgl/material-viewer-scene-manager.ts:60

Parameters:

Name Type
creator string
offset CanvasOffset

Returns: MaterialViewerSceneManager

# Properties

# creator

creator: string

Implementation of Context.creator

Inherited from SceneManager.creator

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

# Methods

# addTexture

addTexture(rapiTexture: RapiTexture, base64Image?: string): Promise‹void›

Defined in packages/material-viewer/src/webgl/material-viewer-scene-manager.ts:329

Parameters:

Name Type
rapiTexture RapiTexture
base64Image? string

Returns: Promise‹void›


# cameraControlChanged

cameraControlChanged(): void

Inherited from SceneManager.cameraControlChanged

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

Returns: void


# changeFloorMaterialById

changeFloorMaterialById(materialId: string): Promise‹void›

Defined in packages/material-viewer/src/webgl/material-viewer-scene-manager.ts:313

Parameters:

Name Type
materialId string

Returns: Promise‹void›


# cleanUp

cleanUp(): void

Inherited from SceneManager.cleanUp

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

Returns: void


# clearCache

clearCache(): void

Defined in packages/material-viewer/src/webgl/material-viewer-scene-manager.ts:366

Returns: void


# clearScene

clearScene(): void

Inherited from SceneManager.clearScene

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

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

Inherited from SceneManager.enableHD

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

Returns: void


# getBakedShadowParams

getBakedShadowParams(): BakedShadowParams

Overrides SceneManager.getBakedShadowParams

Defined in packages/material-viewer/src/webgl/material-viewer-scene-manager.ts:192

Returns: BakedShadowParams


# getBounds

getBounds(): Box3

Overrides SceneManager.getBounds

Defined in packages/material-viewer/src/webgl/material-viewer-scene-manager.ts:201

Returns: Box3


# getCameraOffset

getCameraOffset(): CanvasOffset

Inherited from SceneManager.getCameraOffset

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

Returns: CanvasOffset


# getMaterialShading

getMaterialShading(): RapiMaterialShading

Defined in packages/material-viewer/src/webgl/material-viewer-scene-manager.ts:147

Returns: RapiMaterialShading


# 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/material-viewer/src/webgl/material-viewer-scene-manager.ts:163

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›


# loadMaterial

loadMaterial(material: RapiMaterial): Promise‹void›

Defined in packages/material-viewer/src/webgl/material-viewer-scene-manager.ts:110

Parameters:

Name Type
material RapiMaterial

Returns: Promise‹void›


# loadMaterialId

loadMaterialId(materialId: RapiId): Promise‹void›

Defined in packages/material-viewer/src/webgl/material-viewer-scene-manager.ts:98

Parameters:

Name Type
materialId RapiId

Returns: Promise‹void›


# loadMaterialShading

loadMaterialShading(materialShading: RapiMaterialShading): Promise‹void›

Defined in packages/material-viewer/src/webgl/material-viewer-scene-manager.ts:127

Parameters:

Name Type
materialShading RapiMaterialShading

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›


# pause

pause(): void

Inherited from SceneManager.pause

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

Returns: void


# removeTexture

removeTexture(rapiTexture: RapiTexture): void

Defined in packages/material-viewer/src/webgl/material-viewer-scene-manager.ts:350

Parameters:

Name Type
rapiTexture RapiTexture

Returns: void


# 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/material-viewer/src/webgl/material-viewer-scene-manager.ts:159

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


# setGeometry

setGeometry(type: GEOMETRY): void

Defined in packages/material-viewer/src/webgl/material-viewer-scene-manager.ts:289

Parameters:

Name Type
type GEOMETRY

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