Clipping
类:裁切对象,用于创建单个裁切区域,并进行相关设置操作
Constructor
new Glodon.Bimface.Earth.Plugins.Clipping.Clipping(clippingConfig)
构造裁切对象
Parameters:
| Name | Type | Description | 
|---|---|---|
| clippingConfig | Glodon.Bimface.Earth.Plugins.Clipping.ClippingConfig | 裁切配置项 | 
Methods
getBoundary()
获取裁切对象的边界
Returns:
| Type | Description | 
|---|---|
| Array | 由多个点对象组成的数组,用于描述裁切的区域 | 
getId()
获取裁切对象的ID
Returns:
| Type | Description | 
|---|---|
| String | 裁切对象的ID | 
getLayerIds()
获取发生裁切的图层ID列表
Returns:
| Type | Description | 
|---|---|
| Array | 参与裁切的图层ID | 
hide()
隐藏该裁切区域
setBoundary(boundary)
设置裁切对象的边界
Parameters:
| Name | Type | Description | 
|---|---|---|
| boundary | Array | 由多个点对象组成的数组,用于描述裁切的区域 | 
setLayerIds(layerIds)
设置发生裁切的图层ID
Parameters:
| Name | Type | Description | 
|---|---|---|
| layerIds | Array | 参与裁切的图层ID列表 | 
show()
显示该裁切区域