DrawableContainer

.Drawable. DrawableContainer

类:外部元素的容器,目前支持RVT、RVT集成模型、SKP、IFC、IGMS、DWG格式

Constructor

new Glodon.Bimface.Plugins.Drawable.DrawableContainer(drawableContainerConfig)

Parameters:
Name Type Description
drawableContainerConfig Glodon.Bimface.Plugins.Drawable.DrawableContainerConfig

外部元素容器的配置项

Methods

addItem(drawable)

添加外部元素

Parameters:
Name Type Description
drawable Glodon.Bimface.Plugins.Drawable.DrawableItem

外部元素

addItems(items)

添加多个外部元素

Parameters:
Name Type Description
items Array

外部元素列表

clear()

清空外部元素

exit()

退出外部元素绘制

getAllItems()

获取所有外部元素

Returns:
Type Description
Array

外部元素列表

getItemById(id)

根据ID获取外部元素

Parameters:
Name Type Description
id String

外部元素ID

hideAllItems()

隐藏所有外部元素

hideItemsById(ids)

根据ID隐藏外部元素

Parameters:
Name Type Description
ids Array

外部元素ID列表

hideItemsByLayerId(layerId)

根据LayerId隐藏外部元素对象

Parameters:
Name Type Description
layerId String

图层ID

removeItemById(id)

根据ID删除外部元素对象

Parameters:
Name Type Description
id String

外部元素ID

removeItemsByLayerId(layerId)

根据LayerId移除外部元素对象

Parameters:
Name Type Description
layerId String

图层ID

showAllItems()

显示所有外部元素

showItemsById(ids)

根据ID显示外部元素

Parameters:
Name Type Description
ids Array

外部元素ID列表

showItemsByLayerId(layerId)

根据LayerId显示外部元素对象

Parameters:
Name Type Description
layerId String

图层ID

update()

重新绘制外部元素