API ReferenceGlobalsPlanElementViewModel

# Class: PlanElementViewModel

# Hierarchy

# Index

# Constructors

# Methods

# Constructors

# constructor

+ new PlanElementViewModel(planObject: PlanObject): PlanElementViewModel

Overrides KernelViewModel.constructor

Defined in packages/common-core/src/view-model/plan-element-view-model.ts:28

Parameters:

Name Type
planObject PlanObject

Returns: PlanElementViewModel

# Methods

# addMesh

addMesh(mesh: Object3D): void

Defined in packages/common-core/src/view-model/plan-element-view-model.ts:109

Parameters:

Name Type
mesh Object3D

Returns: void


# clear

clear(): void

Defined in packages/common-core/src/view-model/plan-element-view-model.ts:130

Returns: void


# clearReference

clearReference(): void

Inherited from KernelViewModel.clearReference

Defined in packages/common-core/src/view-model/kernel-view-model.ts:10

Returns: void


# deselect

deselect(): void

Defined in packages/common-core/src/view-model/plan-element-view-model.ts:176

Returns: void


# getBoundingBox

getBoundingBox(): Mesh

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

Returns: Mesh


# getBounds

getBounds(): Box3

Defined in packages/common-core/src/view-model/plan-element-view-model.ts:73

Returns: Box3


# getContainer

getContainer(): Object3D

Defined in packages/common-core/src/view-model/plan-element-view-model.ts:122

Returns: Object3D


# getId

getId(): number

Defined in packages/common-core/src/view-model/plan-element-view-model.ts:126

Returns: number


# getKernelObject

getKernelObject(): KernelObject

Inherited from KernelViewModel.getKernelObject

Defined in packages/common-core/src/view-model/kernel-view-model.ts:15

Returns: KernelObject


# getMesh

getMesh(material: any): Mesh

Defined in packages/common-core/src/view-model/plan-element-view-model.ts:114

Parameters:

Name Type
material any

Returns: Mesh


# getObject

getObject(): Object3D‹›

Defined in packages/common-core/src/view-model/plan-element-view-model.ts:98

Returns: Object3D‹›


# getObjectAsync

getObjectAsync(): Promise‹Object3D‹››

Defined in packages/common-core/src/view-model/plan-element-view-model.ts:102

Returns: Promise‹Object3D‹››


# getPlanElement

getPlanElement(): PlanObject

Defined in packages/common-core/src/view-model/plan-element-view-model.ts:89

Returns: PlanObject


# getPosition

getPosition(): Vector3

Defined in packages/common-core/src/view-model/plan-element-view-model.ts:65

Returns: Vector3


# getRotation

getRotation(): number

Defined in packages/common-core/src/view-model/plan-element-view-model.ts:69

Returns: number


# getSize

getSize(): Vector3

Defined in packages/common-core/src/view-model/plan-element-view-model.ts:54

Returns: Vector3


# hidePreviewBox

hidePreviewBox(): void

Defined in packages/common-core/src/view-model/plan-element-view-model.ts:142

Returns: void


# hoverOff

hoverOff(): void

Defined in packages/common-core/src/view-model/plan-element-view-model.ts:187

Returns: void


# hoverOn

hoverOn(): void

Defined in packages/common-core/src/view-model/plan-element-view-model.ts:183

Returns: void


# remove

remove(): void

Defined in packages/common-core/src/view-model/plan-element-view-model.ts:137

Returns: void


# select

select(): void

Defined in packages/common-core/src/view-model/plan-element-view-model.ts:169

Returns: void


# setObject

setObject(object: Object3D): void

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

Parameters:

Name Type
object Object3D

Returns: void


# setPrimaryColor

setPrimaryColor(color: string): void

Defined in packages/common-core/src/view-model/plan-element-view-model.ts:191

Parameters:

Name Type
color string

Returns: void


# update

update(): void

Defined in packages/common-core/src/view-model/plan-element-view-model.ts:61

Returns: void