ModelObjectManager

Glodon.Bimface.ElementManager~ ModelObjectManager

Glodon.Bimface.ElementManager.ModelObjectManager

Constructor

new Glodon.Bimface.ElementManager.ModelObjectManager(layer)

Parameters:
Name Type Description
layer Glodon.Bimface.Layer.Layer

Layer对象

Methods

设置构件闪烁

Parameters:
Name Type Description
conditions Object

条件参数,结构如 {ids: [1,2,3], objectData: [{familyType: xxx, category: xxx}]}

color Glodon.Web.Graphics.Color

构件闪烁颜色

interval Number

闪烁间隔时间(毫秒),参数为空时恢复为默认,参数 time <= 0 时无效

times Number

闪烁次数,参数为空时默认不限次数

clearAllBlinkComponents()

取消所有构件的闪烁状态

clearBlinkComponents(conditions)

根据筛选条件取消构件闪烁

Parameters:
Name Type Description
conditions Object

条件参数,结构如 {ids: [1,2,3], objectData: [{familyType: xxx, category: xxx}]}

clearIsolation()

取消模型隔离

getBoundingBox(conditions)

根据条件获取包围盒信息

Parameters:
Name Type Description
conditions Object

条件参数,结构如 {ids: [1,2,3], objectData: [{familyType: xxx, category: xxx}], all: false}

Returns:
Type Description
Object

包围盒对象

hide(conditions)

根据条件隐藏对应要素

Parameters:
Name Type Description
conditions Object

条件参数,结构如 {ids: [1,2,3], objectData: [{familyType: xxx, category: xxx}], all: false}

isolate(conditions)

根据筛选条件隔离构件

Parameters:
Name Type Description
conditions Object

条件参数,结构如 {ids: [1,2,3], objectData: [{familyType: xxx, category: xxx}]}

overrideColor(conditions, color)

根据条件对要素着色

Parameters:
Name Type Description
conditions Object

条件参数,结构如 {ids: [1,2,3], objectData: [{familyType: xxx, category: xxx}], all: false}

color Glodon.Web.Graphics.Color

着色颜色

overrideFrameColor(conditions, color)

根据条件对要素边界线着色

Parameters:
Name Type Description
conditions Object

条件参数,结构如 {ids: [1,2,3], objectData: [{familyType: xxx, category: xxx}], all: false}

color Glodon.Web.Graphics.Color

边界线颜色

removeGlowEffectById(ids)

根据ID移除发光效果

Parameters:
Name Type Description
ids Array

Object Ids.

restoreColor(conditions)

根据条件清空要素颜色,恢复默认显示

Parameters:
Name Type Description
conditions Object

条件参数,结构如 {ids: [1,2,3], objectData: [{familyType: xxx, category: xxx}], all: false}

restoreFrameColor(conditions)

根据条件清空要素边线着色,恢复默认显示

Parameters:
Name Type Description
conditions Object

条件参数,结构如 {ids: [1,2,3], objectData: [{familyType: xxx, category: xxx}], all: false}

select()

清空选中要素

select(condition)

根据条件选择对应要素

Parameters:
Name Type Description
condition Object

选择条件

Properties
Name Type Description
ids Array

要素ID列表

noIds Array

取消要素ID列表

objectData Array

要素筛选条件

all Boolean

全部要素

setGlowEffectById(ids, opt)

根据ID列表设置构件、房间、外部构件的发光效果

Parameters:
Name Type Description
ids Array

构件、房间、外部构件ID列表

opt Object

发光效果参数

Properties
Name Type Description
type String

发光效果类型,“body”为整体发光,“outline”为轮廓线发光,默认为“body”

color Glodon.Web.Graphics.Color

发光效果颜色

intensity Number

发光强度,取值范围[0,1],默认值为0.3

spread Number

扩散程度,取值范围[1,5],默认值为3

show(conditions)

根据条件显示对应要素

Parameters:
Name Type Description
conditions Object

条件参数,结构如 {ids: [1,2,3], objectData: [{familyType: xxx, category: xxx}], all: false}