new TerrainClip(map [, options])
开挖分析构造函数
Parameters:
| Name | Type | Argument | Description | |||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
map |
Glodon.CIMCube | CIMCube实例 | ||||||||||||||||||||||||||||||||||||
options |
Object |
<optional> |
开挖分析配置参数
Properties
|
Members
-
bottomTextureUrl :String
-
底面纹理路径
Type:
- String
-
depth :Number
-
开挖深度
Type:
- Number
-
facadeTextureUrl :String
-
立面纹理路径
Type:
- String
-
<readonly> regions :Array.<Object>
-
裁剪区域
Type:
- Array.<Object>
-
showTexture :Boolean
-
是否显示补面的纹理
Type:
- Boolean
Methods
-
<async> addRegion(options)
-
添加裁剪范围
Parameters:
Name Type Description optionsObject region对象 Properties
Name Type Description idString ID regionArray 坐标点数据 -
clear()
-
清除结果
-
dispose()
-
释放资源
-
doAnalysis()
-
开始分析功能
-
getResult()
-
获取分析结果
-
removeRegion(id)
-
移除裁剪范围
Parameters:
Name Type Description idString ID -
setBottomTexture(url)
-
设置底面纹理
Parameters:
Name Type Description urlString 底面纹理资源路径 -
setDepth(depth)
-
设置开挖深度
Parameters:
Name Type Description depthNumber 深度,0-10000米 -
setFacadeTexture(url)
-
设置立面纹理
Parameters:
Name Type Description urlString 立面文理资源路径