TilesetLayer
类:倾斜摄影、点云数据图层
Constructor
new Glodon.Bimface.Layer.TilesetLayer(option)
Parameters:
| Name | Type | Description | 
|---|---|---|
| option | Object | 图层配置 | 
Methods
enableCastShadow(isEnabled)
设置该图层是否投射阴影
Parameters:
| Name | Type | Description | 
|---|---|---|
| isEnabled | Boolean | 图层是否投射阴影 | 
enableReceiveShadow(isEnabled)
设置该图层是否接收阴影
Parameters:
| Name | Type | Description | 
|---|---|---|
| isEnabled | Boolean | 图层是否接收阴影 | 
getBoundingBox()
获取包围盒信息
Returns:
| Type | Description | 
|---|---|
| Object | 包围盒对象 | 
getClippingManager()
获取该图层的裁切管理器
Returns:
| Type | Description | 
|---|---|
| Glodon.Bimface.Plugins.Clipping.ClippingManager | 裁切管理器 | 
getCurrentVersion()
获取图层当前版本
Returns:
| Type | Description | 
|---|---|
| Number | 图层的当前版本 | 
getDataManager()
获取文件属性管理器对象
Returns:
| Type | Description | 
|---|---|
| Glodon.Bimface.DataManager | 文件属性管理器对象 | 
getExposureCompensation()
获取图层的曝光补偿
Returns:
| Type | Description | 
|---|---|
| Number | 图层曝光补偿量 | 
getFlatManager()
获取该图层的拍平管理器
Returns:
| Type | Description | 
|---|---|
| Glodon.Bimface.Plugins.Flats.FlatManager | 拍平管理器 | 
getGeometryErrorRatio()
获取该图层的geometry error
Returns:
| Type | Description | 
|---|---|
| Number | geometry error的参数 | 
getId()
获取图层ID
Returns:
| Type | Description | 
|---|---|
| String | 图层ID | 
getLocation()
获取模型基点位置
Returns:
| Type | Description | 
|---|---|
| Object | 模型基点对应的位置信息,包括经纬度高程与世界坐标,例 {latLon: {lat: 31.254685987, lon: 121.568945612, alt: 0}, worldPosition: {x:500, y:1000, z:0}} | 
getObjectData()
获取图层的Object Data信息
Returns:
| Type | Description | 
|---|---|
| Array | 该图层的Object Data信息 | 
getOpacity()
获取图层不透明度
Returns:
| Type | Description | 
|---|---|
| Number | 图层不透明度 | 
getTransformation()
获取坐标变换状态
Returns:
| Type | Description | 
|---|---|
| Array | 描述模型坐标变换的对象 | 
getVisualRange()
获取图层的可视范围
Returns:
| Type | Description | 
|---|---|
| Object | 图层可视范围 | 
hide()
隐藏图层
isCastShadowEnabled()
获取该图层是否投射阴影
Returns:
| Type | Description | 
|---|---|
| Boolean | 图层是否投射阴影 | 
isReceiveShadowEnabled()
获取该图层是否接收阴影
Returns:
| Type | Description | 
|---|---|
| Boolean | 图层是否接收阴影 | 
loadBusinessResources()
加载userdata等业务数据 以支持选择过滤等
setExposureCompensation(compensation)
设置图层的曝光补偿,补偿量范围为[-1, 1],默认为0,正值代表增加曝光,负值代表减少曝光
Parameters:
| Name | Type | Description | 
|---|---|---|
| compensation | Number | 图层曝光补偿量,取值范围为[-1, 1] | 
setGeometryErrorRatio(ratio)
调整图层的geometry error,会影响到该图层的加载时机
Parameters:
| Name | Type | Description | 
|---|---|---|
| ratio | Number | 调整geometry error的参数 | 
setLocation(location)
设置模型基点位置,可设置经纬度高程,也可设置世界坐标
Parameters:
| Name | Type | Description | 
|---|---|---|
| location | Object | 模型基点对应的位置信息,可基于经纬度高程设置,也可基于世界坐标设置,例 {latLon: {lat: 31.254685987, lon: 121.568945612, alt: 0}}或{worldPosition: {x:500, y:1000, z:10}} | 
setOpacity(opacity)
设置图层不透明度
Parameters:
| Name | Type | Description | 
|---|---|---|
| opacity | Number | 透明度,取值范围[0, 1] | 
setRotationZ(basePoint, rotation)
设置模型绕Z轴旋转
Parameters:
| Name | Type | Description | 
|---|---|---|
| basePoint | Object | 模型旋转的基点,格式如:{x: 100, y: -20, z: 10} | 
| rotation | Number | 模型旋转的弧度值 | 
setScale(basePoint, scale)
设置模型缩放
Parameters:
| Name | Type | Description | 
|---|---|---|
| basePoint | Object | 模型缩放的基点,格式如:{x: 100, y: -20, z: 10} | 
| scale | Number | 模型缩放系数 | 
setTransformation(transformation)
设置坐标变换状态
Parameters:
| Name | Type | Description | 
|---|---|---|
| transformation | Array | 描述模型坐标变换的对象 | 
setTranslation(translation)
设置模型平移
Parameters:
| Name | Type | Description | 
|---|---|---|
| translation | Object | 模型平移的距离对象,格式如:{x: 100, y: -20, z: 10} | 
setVisualRange(range)
设置图层的可视范围
Parameters:
| Name | Type | Description | 
|---|---|---|
| range | Object | 图层可视范围,包括最近距离与最远距离,可仅设置单个值,单位为m。例{min:0,max:500} | 
show()
显示图层