new Profile(scene)
剖面线分析类,在场景中选取起始点、结束点进行分析,获得剖面线分析效果图。
| Name | Type | Description |
|---|---|---|
scene |
Object |
指定用于分析的场景对象。 |
- Demo:
Throws:
-
必须指定场景scene。
- Type
- DeveloperError
Example
//创建剖面线分析
var profile= new SuperMap3D.Profile(scene);
Members
-
endPointArray
-
获取或设置剖面线分析的结束点。该点由经度、纬度和高程组成的数组表示。
-
extendHeightnumber
-
获取或设置剖面分析在三维空间中的跨越高度,单位是米。
-
startPointArray
-
获取或设置剖面线分析的起始点。该点由经度、纬度和高程组成的数组表示。
Methods
-
build()
-
执行剖面线分析
-
destroy()
-
清除分析结果。
-
getBuffer(func)
-
获取剖面分析的结果。
Name Type Description funcfunction 回调函数,其参数是剖面分析的结果(剖面图rgba字节流)。
-
getPositions(func)
-
获取分析结果的点集的实际地理坐标。
Name Type Description funcfunction 回调函数,其参数是剖面分析的结果。
-
getVisibleInViewport(index){Boolean}
-
获得图层对应视口可见性
Name Type Description indexnumber 索引
Throws:
-
the index is 0~8
- Type
- DeveloperError
Returns:
Type Description Boolean visible 可见性 -
-
setVisibleInViewport(index)
-
设置图层对应视口可见
Name Type Description indexnumber 索引
Throws:
-
the index is 0~8
- Type
- DeveloperError
-