new DrawableContainer()
Drawable对象容器
Methods
addItem(drawable)
增加绘制对象
Parameters:
Name | Type | Description |
---|---|---|
drawable |
Glodon.Bimface.Plugins.Drawable.DrawableItem | 可绘制的对象 |
addItems(items)
设置多个可绘制对象
Parameters:
Name | Type | Description |
---|---|---|
items |
Array | 可绘制的对象的数组 |
clear()
清空容器
getAllItems() → {Array}
获取所有的绘制对象列表
Returns:
Type | Description |
---|---|
Array |
可绘制的对象的数组 |
getItemById(id)
根据ID获取绘制对象
Parameters:
Name | Type | Description |
---|---|---|
id |
String | 可绘制的对象的ID |
hideAllItems()
隐藏所有标签
hideItemsById(标签的ID集合)
根据ID隐藏标签
Parameters:
Name | Type | Description |
---|---|---|
标签的ID集合 |
Array |
removeItemById(id)
根据ID删除绘制对象
Parameters:
Name | Type | Description |
---|---|---|
id |
String | 可绘制的对象的ID |
showAllItems()
显示所有标签
showItemsById(标签的ID集合)
根据ID显示标签
Parameters:
Name | Type | Description |
---|---|---|
标签的ID集合 |
Array |
update()
更新显示所有的可绘制对象