API ReferenceGlobalsConfiguratorViewModel

# Class: ConfiguratorViewModel

# Hierarchy

# Implements

# Index

# Constructors

# Properties

# Accessors

# Methods

# Constructors

# constructor

+ new ConfiguratorViewModel(creator: string): ConfiguratorViewModel

Defined in packages/common-core/src/view-model/configurator-view-model.ts:85

Parameters:

Name Type
creator string

Returns: ConfiguratorViewModel

# Properties

# creator

creator: string

Implementation of Context.creator

Defined in packages/common-core/src/view-model/configurator-view-model.ts:58

# Accessors

# materialQueue

get materialQueue(): PromiseQueue‹void›

Defined in packages/common-core/src/view-model/configurator-view-model.ts:93

Returns: PromiseQueue‹void›

# Methods

# Editor3ChangedNamedMesh

Editor3ChangedNamedMesh(runtimeComponentId: number, meshId: string, geometryId: string, materialId: string, transform: Float32Array, uvTransform: Float32Array): void

Implementation of ConfiguratorKernelCallbackI

Defined in packages/common-core/src/view-model/configurator-view-model.ts:373

Parameters:

Name Type
runtimeComponentId number
meshId string
geometryId string
materialId string
transform Float32Array
uvTransform Float32Array

Returns: void


# Editor3dAddBakedMesh

Editor3dAddBakedMesh(runtimeComponentId: number, materialId: string, vertices: Int32Array, indices: Int32Array, uvCoords: Float32Array, normals: Float32Array, environmentGeometry: boolean): void

Implementation of ConfiguratorKernelCallbackI

Defined in packages/common-core/src/view-model/configurator-view-model.ts:360

Parameters:

Name Type
runtimeComponentId number
materialId string
vertices Int32Array
indices Int32Array
uvCoords Float32Array
normals Float32Array
environmentGeometry boolean

Returns: void


# Editor3dAddDockPreview

Editor3dAddDockPreview(componentId: number, previewId: number): void

Implementation of ConfiguratorKernelCallbackI

Defined in packages/common-core/src/view-model/configurator-view-model.ts:364

Parameters:

Name Type
componentId number
previewId number

Returns: void


# Editor3dAddNamedMesh

Editor3dAddNamedMesh(runtimeComponentId: number, meshId: string, geometryId: string, materialId: string, transform: Float32Array, vertices: Int32Array, indices: Int32Array, uvCoords: Float32Array, normals: Float32Array, environmentGeometry: boolean, uvTransform: Float32Array): void

Implementation of ConfiguratorKernelCallbackI

Defined in packages/common-core/src/view-model/configurator-view-model.ts:369

Parameters:

Name Type
runtimeComponentId number
meshId string
geometryId string
materialId string
transform Float32Array
vertices Int32Array
indices Int32Array
uvCoords Float32Array
normals Float32Array
environmentGeometry boolean
uvTransform Float32Array

Returns: void


# Editor3dBeginConstruction

Editor3dBeginConstruction(componentId: number, isDeltaUpdate: boolean): void

Implementation of ConfiguratorKernelCallbackI

Defined in packages/common-core/src/view-model/configurator-view-model.ts:381

Parameters:

Name Type
componentId number
isDeltaUpdate boolean

Returns: void


# Editor3dComponentCreated

Editor3dComponentCreated(id: number, position: KernelVector3, eulerAngles: KernelVector3, parentObjectRuntimeId: number, isRootComponent: boolean): void

Implementation of ConfiguratorKernelCallbackI

Defined in packages/common-core/src/view-model/configurator-view-model.ts:393

Parameters:

Name Type
id number
position KernelVector3
eulerAngles KernelVector3
parentObjectRuntimeId number
isRootComponent boolean

Returns: void


# Editor3dComponentDocked

Editor3dComponentDocked(componentId: number, parentId: number, componentPosition: KernelVector3, componentRotation: KernelVector3): void

Implementation of ConfiguratorKernelCallbackI

Defined in packages/common-core/src/view-model/configurator-view-model.ts:412

Parameters:

Name Type
componentId number
parentId number
componentPosition KernelVector3
componentRotation KernelVector3

Returns: void


# Editor3dEndConstruction

Editor3dEndConstruction(id: number): void

Implementation of ConfiguratorKernelCallbackI

Defined in packages/common-core/src/view-model/configurator-view-model.ts:416

Parameters:

Name Type
id number

Returns: void


# Editor3dGeometryNotReady

Editor3dGeometryNotReady(id: number): void

Implementation of ConfiguratorKernelCallbackI

Defined in packages/common-core/src/view-model/configurator-view-model.ts:443

Parameters:

Name Type
id number

Returns: void


# Editor3dGeometryReady

Editor3dGeometryReady(id: number): void

Implementation of ConfiguratorKernelCallbackI

Defined in packages/common-core/src/view-model/configurator-view-model.ts:436

Parameters:

Name Type
id number

Returns: void


# Editor3dPlanObjectConstructionDone

Editor3dPlanObjectConstructionDone(planObjectId: number): void

Implementation of ConfiguratorKernelCallbackI

Defined in packages/common-core/src/view-model/configurator-view-model.ts:450

Parameters:

Name Type
planObjectId number

Returns: void


# Editor3dPreviewConstructionDone

Editor3dPreviewConstructionDone(componentId: number, _objectId: number): void

Implementation of ConfiguratorKernelCallbackI

Defined in packages/common-core/src/view-model/configurator-view-model.ts:464

Parameters:

Name Type
componentId number
_objectId number

Returns: void


# Editor3dRemoveNamedMesh

Editor3dRemoveNamedMesh(runtimeComponentId: number, meshId: string): void

Implementation of ConfiguratorKernelCallbackI

Defined in packages/common-core/src/view-model/configurator-view-model.ts:377

Parameters:

Name Type
runtimeComponentId number
meshId string

Returns: void


# Editor3dSetPreviewLineAssociations

Editor3dSetPreviewLineAssociations(dockLines: any, previewId: number): void

Implementation of ConfiguratorKernelCallbackI

Defined in packages/common-core/src/view-model/configurator-view-model.ts:485

Parameters:

Name Type
dockLines any
previewId number

Returns: void


# Editor3dSetPreviewPointAssociations

Editor3dSetPreviewPointAssociations(dockPairs: any, previewId: number): void

Implementation of ConfiguratorKernelCallbackI

Defined in packages/common-core/src/view-model/configurator-view-model.ts:533

Parameters:

Name Type
dockPairs any
previewId number

Returns: void


# clearReference

clearReference(): void

Defined in packages/common-core/src/view-model/configurator-view-model.ts:101

Returns: void


# clearRootComponent

clearRootComponent(): void

Defined in packages/common-core/src/view-model/configurator-view-model.ts:700

Returns: void


# componentConfigurationUpdated

componentConfigurationUpdated(runtimeComponentId: number, geometryChanged: boolean): void

Implementation of ConfiguratorKernelCallbackI

Defined in packages/common-core/src/view-model/configurator-view-model.ts:594

Parameters:

Name Type
runtimeComponentId number
geometryChanged boolean

Returns: void


# componentDeleted

componentDeleted(componentId: number): void

Implementation of ConfiguratorKernelCallbackI

Defined in packages/common-core/src/view-model/configurator-view-model.ts:563

Parameters:

Name Type
componentId number

Returns: void


# componentMetaUpdated

componentMetaUpdated(kernelComponent: KernelComponent): void

Implementation of ConfiguratorKernelCallbackI

Defined in packages/common-core/src/view-model/configurator-view-model.ts:578

Parameters:

Name Type
kernelComponent KernelComponent

Returns: void


# configurationLoaded

configurationLoaded(conversationId: number, objectId: number, componentId: number, _hash: string, _errors: any): void

Implementation of ConfiguratorKernelCallbackI

Defined in packages/common-core/src/view-model/configurator-view-model.ts:613

Parameters:

Name Type
conversationId number
objectId number
componentId number
_hash string
_errors any

Returns: void


# constructComponents

constructComponents(planObjectId: number): void

Defined in packages/common-core/src/view-model/configurator-view-model.ts:763

Parameters:

Name Type
planObjectId number

Returns: void


# debugSceneGraph

debugSceneGraph(id?: number): void

Defined in packages/common-core/src/view-model/configurator-view-model.ts:704

Parameters:

Name Type
id? number

Returns: void


# dockComponentWithPosition

dockComponentWithPosition(previewComponent: PreviewLineComponent, component?: RoomleComponent): void

Defined in packages/common-core/src/view-model/configurator-view-model.ts:324

Parameters:

Name Type
previewComponent PreviewLineComponent
component? RoomleComponent

Returns: void


# finishParameterChange

finishParameterChange(resolve: function, _reject: function): void

Defined in packages/common-core/src/view-model/configurator-view-model.ts:635

Parameters:

resolve: function

▸ (): void

_reject: function

▸ (): void

Returns: void


# getBoundingBox

getBoundingBox(): Box3

Defined in packages/common-core/src/view-model/configurator-view-model.ts:675

Returns: Box3


# getBoundingBoxWithPreviews

getBoundingBoxWithPreviews(): Box3

Defined in packages/common-core/src/view-model/configurator-view-model.ts:688

Returns: Box3


# getComponent

getComponent(componentId: number): RoomleComponent‹›

Defined in packages/common-core/src/view-model/configurator-view-model.ts:199

Parameters:

Name Type
componentId number

Returns: RoomleComponent‹›


# getComponents

getComponents(): RoomleComponent[]

Defined in packages/common-core/src/view-model/configurator-view-model.ts:727

Returns: RoomleComponent[]


# getComponentsForIds

getComponentsForIds(ids: number[]): RoomleComponent[]

Defined in packages/common-core/src/view-model/configurator-view-model.ts:716

Parameters:

Name Type
ids number[]

Returns: RoomleComponent[]


# getNumberOfPossibleChildrenForComponent

getNumberOfPossibleChildrenForComponent(componentId: number): number

Defined in packages/common-core/src/view-model/configurator-view-model.ts:211

Parameters:

Name Type
componentId number

Returns: number


# getPreviews

getPreviews(): PreviewComponent[]

Defined in packages/common-core/src/view-model/configurator-view-model.ts:731

Returns: PreviewComponent[]


# hasPreviews

hasPreviews(): boolean

Defined in packages/common-core/src/view-model/configurator-view-model.ts:696

Returns: boolean


# isPreview

isPreview(obj: RoomleComponent): boolean

Defined in packages/common-core/src/view-model/configurator-view-model.ts:739

Parameters:

Name Type
obj RoomleComponent

Returns: boolean


# isPreviewLine

isPreviewLine(obj: RoomleComponent): boolean

Defined in packages/common-core/src/view-model/configurator-view-model.ts:735

Parameters:

Name Type
obj RoomleComponent

Returns: boolean


# planObjectConfigurationUpdated

planObjectConfigurationUpdated(planObjectId: number, _configuration: ConfigurationString, _hash: string): void

Implementation of ConfiguratorKernelCallbackI

Defined in packages/common-core/src/view-model/configurator-view-model.ts:639

Parameters:

Name Type
planObjectId number
_configuration ConfigurationString
_hash string

Returns: void


# planObjectCreated

planObjectCreated(conversationId: number, planObjectId: number): void

Implementation of ConfiguratorKernelCallbackI

Defined in packages/common-core/src/view-model/configurator-view-model.ts:645

Parameters:

Name Type
conversationId number
planObjectId number

Returns: void


# planObjectUpdated

planObjectUpdated(planObject: PlanObject): void

Implementation of ConfiguratorKernelCallbackI

Defined in packages/common-core/src/view-model/configurator-view-model.ts:653

Parameters:

Name Type
planObject PlanObject

Returns: void


# removeDockingComponent

removeDockingComponent(): void

Defined in packages/common-core/src/view-model/configurator-view-model.ts:305

Returns: void


# removeGeometriesMergedListener

removeGeometriesMergedListener(): void

Defined in packages/common-core/src/view-model/configurator-view-model.ts:747

Returns: void


# removePreviews

removePreviews(): void

Defined in packages/common-core/src/view-model/configurator-view-model.ts:339

Returns: void


# requestSubPartConstruction

requestSubPartConstruction(partId: number): Promise‹Mesh›

Defined in packages/common-core/src/view-model/configurator-view-model.ts:769

Parameters:

Name Type
partId number

Returns: Promise‹Mesh›


# sceneCleared

sceneCleared(): void

Implementation of ConfiguratorKernelCallbackI

Defined in packages/common-core/src/view-model/configurator-view-model.ts:657

Returns: void


# setGeometriesMergedListener

setGeometriesMergedListener(fun: function): void

Defined in packages/common-core/src/view-model/configurator-view-model.ts:743

Parameters:

fun: function

▸ (): void

Returns: void


# setListener

setListener(listener: ConfiguratorViewModelCallbackI): void

Defined in packages/common-core/src/view-model/configurator-view-model.ts:671

Parameters:

Name Type
listener ConfiguratorViewModelCallbackI

Returns: void


# setMergeThreshold

setMergeThreshold(threshold: number): void

Defined in packages/common-core/src/view-model/configurator-view-model.ts:751

Parameters:

Name Type
threshold number

Returns: void


# tryToMergeComponents

tryToMergeComponents(): void

Defined in packages/common-core/src/view-model/configurator-view-model.ts:220

Returns: void