# TerrainProfile

TerrainProfile 地形剖切功能的主要类

#### new Cesium.TerrainProfile(viewer, echarts)
MapGIS/Terrain/TerrainProfile.js 54

Name | Type | Description
--- | --- | ---
`viewer` | viewer | 场景视图对象
`echarts` | echarts | echarts库

##### Example:

    var webGlobe = new Cesium.WebSceneControl('cesiumContainer', {});
    var viewer = webGlobe.viewer;
    if(!Cesium.defined(terrainProfile)){
         terrainProfile = new Cesium.TerrainProfile(viewer, echarts);
     }
         terrainProfile.profile();
     }

### Methods

#### destroy()
MapGIS/Terrain/TerrainProfile.js 424

结束剖面分析，清除场景对象

#### profile(callback)
MapGIS/Terrain/TerrainProfile.js 65

开启地形剖切功能接口，左键画线，右键停止

Name | Type | Description
--- | --- | ---
`callback` | callback | 执行成功返回回调函数