Constructor
new Glodon.Bimface.ElementManager.ComponentManager(layer)
Parameters:
Name | Type | Description |
---|---|---|
layer | Glodon.Bimface.Layer.BIMLayer | BIMLayer对象 |
Methods
blink(conditions, color, interval, times)
设置构件闪烁
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, state)
根据条件隔离构件
Parameters:
Name | Type | Description |
---|---|---|
conditions | Object | 条件参数,结构如 {ids: [1,2,3], objectData: [{familyType: xxx, category: xxx}], all: false} |
state | Glodon.Bimface.Viewer.IsolateOption | 被隔离构件显示状态,如Glodon.Bimface.Viewer.IsolateOption.MakeOthersTranslucent |
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(condition)
根据条件选择对应要素
Parameters:
Name | Type | Description | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
condition | Object | 选择条件 Properties
|
setGlowEffectById(ids, opt)
根据ID列表设置构件、房间、外部构件的发光效果
Parameters:
Name | Type | Description | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
ids | Array | 构件、房间、外部构件ID列表 |
|||||||||||||||
opt | Object | 发光效果参数 Properties
|
show(conditions)
根据条件显示对应要素
Parameters:
Name | Type | Description |
---|---|---|
conditions | Object | 条件参数,结构如 {ids: [1,2,3], objectData: [{familyType: xxx, category: xxx}], all: false} |