DrawingLayer
类:三维图纸图层,用于在GIS场景内添加流式加载模式的图纸模型
Constructor
new Glodon.Bimface.Layer.DrawingLayer(option)
构造DrawingLayer对象
Parameters:
| Name | Type | Description | 
|---|---|---|
| option | Object | 图层配置 | 
Methods
clampMode(option)
设置图纸贴地样式
Parameters:
| Name | Type | Description | 
|---|---|---|
| option | Object | 贴地条件 | 
getComponentManager()
获取构件管理器对象
Returns:
| Type | Description | 
|---|---|
| Glodon.Bimface.ElementManager.ComponentManager | 构件管理器对象 | 
getId()
获取该DrawingLayer对象的ID
Returns:
| Type | Description | 
|---|---|
| String | 图层对象ID | 
getOpacity()
获取图层不透明度
Returns:
| Type | Description | 
|---|---|
| Number | 图层不透明度 | 
getTransformation()
获取图层坐标变换状态
Returns:
| Type | Description | 
|---|---|
| Array | 描坐标变换对象,通过1*16的数组描述 | 
hide()
隐藏该图层
setOpacity(opacity)
设置图层不透明度
Parameters:
| Name | Type | Description | 
|---|---|---|
| opacity | Number | 透明度,取值范围[0,1] | 
setRotationZ(basePoint, rotation)
根据指定点将模型绕Z轴旋转
Parameters:
| Name | Type | Description | 
|---|---|---|
| basePoint | Object | 模型旋转中心点 | 
| rotation | Number | 旋转值,单位为弧度 | 
setScale(basePoint, scale)
根据指定点将模型进行缩放
Parameters:
| Name | Type | Description | 
|---|---|---|
| basePoint | Object | 模型缩放中心点 | 
| scale | Number | 模型缩放值 | 
setTransformation(transformation)
设置图层坐标变换状态
Parameters:
| Name | Type | Description | 
|---|---|---|
| transformation | Array | 坐标变换对象,通过1*16的数组描述 | 
setTranslation(translation)
平移图层中的模型资源
Parameters:
| Name | Type | Description | 
|---|---|---|
| translation | Object | 描述模型平移的向量 | 
show()
显示该图层