@mapgis/webclient-cesium-plugin 17.8.0 → 17.10.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +280 -474
- package/dist/esm/commonjsHelpers.js +1 -0
- package/dist/esm/s3m.js +1 -0
- package/dist/esm/webclient-cesium-plugin.js +1 -0
- package/dist/umd/webclient-cesium-plugin.min.js +1 -0
- package/{documention → documentation}/AlgorithmLib.html +169 -149
- package/{documention → documentation}/AngulationTool.html +85 -51
- package/{documention → documentation}/AnimationTool.html +30 -30
- package/{documention → documentation}/ArcGISMapServerImageryProvider.html +9 -13
- package/{documention → documentation}/ArcGISMapServerSingleImageryProvider.html +90 -30
- package/{documention → documentation}/ArcGISTileServerImageryProvider.html +17 -17
- package/{documention → documentation}/ArcGISVectorTileImageryProvider.html +21 -8
- package/{documention → documentation}/BaseImageryProvider.html +2 -2
- package/{documention → documentation}/Cesium.Material.html +2 -2
- package/{documention → documentation}/Cesium.Viewer.html +5 -5
- package/{documention → documentation}/Cesium3DTileset.html +43 -25
- package/{documention → documentation}/CesiumHeatmap.html +22 -19
- package/{documention/S3MTileset.html → documentation/CesiumNavigation.html} +52 -85
- package/{documention → documentation}/CesiumTerrainProvider.html +55 -15
- package/{documention/OpenWeatherImageryProvider.html → documentation/CircleWaveMaterialProperty.html} +75 -95
- package/{documention → documentation}/CollisionDetectionByRender.html +245 -88
- package/{documention → documentation}/CompatibleFunc.html +24 -33
- package/{documention → documentation}/CustomPrimitive.html +3 -5
- package/{documention → documentation}/CustomProjection.html +3 -3
- package/{documention → documentation}/CustomTilingScheme.html +35 -36
- package/{documention → documentation}/CutFillAnalysis.html +59 -27
- package/{documention → documentation}/CuttingTool.html +198 -103
- package/{documention → documentation}/Deferred.html +2 -2
- package/{documention → documentation}/DrawElement.html +418 -34
- package/{documention → documentation}/DrawTool.html +81 -29
- package/documentation/EditTool.html +2819 -0
- package/{documention → documentation}/FirstPersonPerspective.html +18 -10
- package/{documention → documentation}/FloodAnalysis.html +93 -23
- package/{documention → documentation}/FloodAnalysisReflection.html +18 -44
- package/documentation/FlowParticle.html +863 -0
- package/{documention → documentation}/Fluid.html +473 -74
- package/{documention → documentation}/FluidFoam.html +36 -16
- package/{documention → documentation}/FluidReflection.html +68 -15
- package/{documention → documentation}/FluidShadow.html +67 -14
- package/{documention → documentation}/FluidSourceCollection.html +14 -7
- package/{documention → documentation}/FluidSpecular.html +33 -14
- package/documentation/FluidSurfaceDistortion.html +682 -0
- package/documentation/FluidSurfaceFoam.html +1006 -0
- package/{documention → documentation}/FollowPerspective.html +15 -7
- package/{documention → documentation}/GeoJSONLayerUtil.html +38 -10
- package/documentation/GeoJSONLayerView.html +1353 -0
- package/{documention → documentation}/GlobeIndependentTranslucency.html +89 -6
- package/{documention → documentation}/GodPerspective.html +14 -6
- package/{documention → documentation}/Graphic.html +1053 -1042
- package/{documention → documentation}/GraphicTransformTool.html +65 -23
- package/{documention → documentation}/GraphicsLayer.html +359 -156
- package/{documention → documentation}/GraphicsLayerUtil.html +28 -10
- package/documentation/GraphicsLayerView.html +759 -0
- package/{documention/EditTool.html → documentation/HashMap.html} +253 -418
- package/{documention → documentation}/HeightLimited.html +54 -21
- package/documentation/IGSFeatureLayerUtil.html +840 -0
- package/documentation/IGSFeatureLayerView.html +1348 -0
- package/documentation/IGSMapImageLayerUtil.html +855 -0
- package/{documention/IGSFeatureLayerUtil.html → documentation/IGSMapImageLayerView.html} +68 -46
- package/documentation/IGSTileLayerView.html +658 -0
- package/{documention → documentation}/ISSceneLayerUtil.html +3 -3
- package/{documention → documentation}/KeyboardCameraController.html +54 -6
- package/documentation/LightningStorm.html +2073 -0
- package/documentation/MapGISClusterPrimitiveCollection.html +1050 -0
- package/{documention → documentation}/MapGISDynamicLabelCollection.html +370 -178
- package/{documention → documentation}/MapGISFeatureGridCollection.html +123 -89
- package/{documention → documentation}/MapGISImageServerImageryProvider.html +93 -71
- package/{documention → documentation}/MapGISImageServerSingleImageryProvider.html +140 -92
- package/{documention → documentation}/MapGISM3DSet.html +49 -33
- package/{documention → documentation}/MapGISMapServerImageryProvider.html +78 -87
- package/{documention → documentation}/MapGISMapServerSingleImageryProvider.html +111 -43
- package/{documention → documentation}/MapGISTerrainProvider.html +268 -208
- package/{documention → documentation}/MapGISTerrainService.html +124 -82
- package/{documention → documentation}/MapGISTileAvailability.html +104 -47
- package/{documention → documentation}/MapGISTileServerImageryProvider.html +76 -83
- package/{documention → documentation}/MapGISVectorTileImageryProvider.html +135 -115
- package/{documention → documentation}/MeasureAreaTool.html +53 -14
- package/{documention → documentation}/MeasureLengthTool.html +17 -14
- package/{documention → documentation}/MeasureSlopeTool.html +73 -34
- package/{documention/FlowParticle.html → documentation/ModelEditor.html} +132 -116
- package/{documention → documentation}/ModelFilterTool.html +27 -32
- package/{documention → documentation}/ModelTransformTool.html +195 -110
- package/{documention → documentation}/NavigationControl.html +25 -5
- package/{documention → documentation}/NavigationTool.html +36 -14
- package/{documention → documentation}/NormalPerspective.html +33 -7
- package/documentation/OpenWeatherImageryProvider.html +1133 -0
- package/{documention → documentation}/PointFluidSource.html +22 -13
- package/{documention → documentation}/PolylineTrailLinkMaterialProperty.html +104 -20
- package/{documention → documentation}/Popup.html +246 -63
- package/{documention/CesiumNavigation.html → documentation/PostProcessShaderBuilder.html} +10 -54
- package/{documention → documentation}/PostProcessStageLibrary.html +3127 -121
- package/{documention → documentation}/Promise.html +6 -6
- package/{documention → documentation}/ProviderBaseUrlRegExp.html +20 -4
- package/{documention → documentation}/Puddle.html +30 -9
- package/{documention → documentation}/RadarMaterialProperty.html +73 -18
- package/{documention → documentation}/ReImg.html +164 -15
- package/{documention → documentation}/RenderUtil.html +158 -6
- package/{documention → documentation}/ResetViewNavigationControl.html +28 -8
- package/{documention → documentation}/RiverGeometry.html +7 -7
- package/{documention → documentation}/RoamParticle.html +86 -79
- package/{documention → documentation}/RouteAnimationControl.html +37 -15
- package/{documention → documentation}/RouteAnimationLabel.html +39 -12
- package/{documention → documentation}/RouteAnimationModel.html +43 -16
- package/{documention → documentation}/RouteAnimationPath.html +156 -18
- package/{documention → documentation}/RouteAnimationPerspective.html +12 -3
- package/{documention → documentation}/RouteAnimationTool.html +244 -24
- package/documentation/S3MTileset.html +570 -0
- package/{documention → documentation}/SSR.html +20 -39
- package/{documention → documentation}/SceneView.html +615 -419
- package/documentation/SceneViewUtil.html +1253 -0
- package/documentation/Screenshot.html +964 -0
- package/{documention → documentation}/SelectTool.html +31 -77
- package/{documention → documentation}/ShadowRateAnalysis.html +236 -54
- package/{documention → documentation}/ShadowRateDrawCommand.html +18 -6
- package/{documention → documentation}/SingleImageryProvider.html +32 -10
- package/{documention → documentation}/SketchEditor.html +280 -127
- package/documentation/SkyLineAnalysis.html +576 -0
- package/{documention → documentation}/StableParticle.html +165 -46
- package/{documention → documentation}/Style.html +249 -249
- package/{documention → documentation}/TerrainAnalyse.html +391 -105
- package/{documention → documentation}/TerrainExcavateTool.html +99 -3
- package/{documention → documentation}/TerrainProfile.html +198 -56
- package/{documention → documentation}/ThemeManager.html +92 -41
- package/{documention → documentation}/Tooltip.html +35 -18
- package/documentation/TransformTool.html +1010 -0
- package/{documention → documentation}/TriangulationTool.html +122 -83
- package/documentation/UnderfluidCaustic.html +843 -0
- package/documentation/UnderfluidDistortion.html +600 -0
- package/documentation/UnderfluidFog.html +843 -0
- package/documentation/UnderfluidGodRay.html +843 -0
- package/documentation/UnderwaterCaustic.html +867 -0
- package/documentation/UnderwaterDistortion.html +578 -0
- package/documentation/UnderwaterFog.html +867 -0
- package/documentation/UnderwaterGodRay.html +821 -0
- package/{documention → documentation}/UrlTemplateImageryProvider.html +21 -9
- package/{documention → documentation}/UserInterfaceControl.html +28 -9
- package/documentation/VectorTileLayerUtil.html +1364 -0
- package/{documention → documentation}/VisiblityAnalysis.html +15 -12
- package/{documention → documentation}/VolumeCloud.html +113 -21
- package/{documention → documentation}/VolumeFluidSource.html +24 -8
- package/{documention → documentation}/WFSLayerUtil.html +39 -10
- package/documentation/WFSLayerView.html +1353 -0
- package/documentation/WMSLayerUtil.html +879 -0
- package/documentation/WMTSLayerUtil.html +877 -0
- package/documentation/WaterDepth.html +583 -0
- package/{documention → documentation}/WaterReflection.html +29 -26
- package/documentation/WaterSurface.html +2555 -0
- package/{documention/Underwater.html → documentation/WaterSurfaceDistortion.html} +79 -81
- package/documentation/WaterSurfaceFoam.html +1029 -0
- package/documentation/WaterSurfaceSSR.html +867 -0
- package/{documention → documentation}/WebMapServiceImageryProvider.html +8 -12
- package/{documention → documentation}/WebMapServiceSingleImageryProvider.html +94 -32
- package/{documention → documentation}/WebMapTileServiceImageryProvider.html +10 -15
- package/documentation/WebTileLayerUtil.html +877 -0
- package/{documention → documentation}/Wind3D.html +133 -54
- package/{documention → documentation}/ZoomNavigationControl.html +145 -9
- package/documentation/fonts/glyphicons-halflings-regular.svg +543 -0
- package/{documention → documentation}/global.html +14130 -2719
- package/{documention → documentation}/index.html +1 -1
- package/{documention → documentation}/initializeOptions.html +2 -2
- package/{documention → documentation}/module-%E5%AE%A2%E6%88%B7%E7%AB%AF%E5%8F%AF%E8%A7%86%E5%8C%96.EchartsLayer.html +96 -95
- package/{documention → documentation}/module-%E5%AE%A2%E6%88%B7%E7%AB%AF%E5%8F%AF%E8%A7%86%E5%8C%96.MapVLayer.html +47 -46
- package/{documention → documentation}/module.exports_module.exports.html +2 -2
- package/{documention → documentation}/nav.html +3267 -1392
- package/documentation/nav.json +320 -0
- package/documentation/styles/adminlte/AdminLTE.min.css +4966 -0
- package/documentation/styles/adminlte/skin-blue.min.css +135 -0
- package/documentation/styles/bootstrap.min.css +7005 -0
- package/documentation/styles/common.css +173 -0
- package/documentation/styles/examples.css +119 -0
- package/{documention → documentation}/styles/font-awesome.css +692 -687
- package/documentation/styles/header.css +558 -0
- package/documentation/styles/jaguar.css +551 -0
- package/{documention → documentation}/styles/prettify-tomorrow.css +59 -28
- package/{documention → documentation}/styles/style.customize.css +83 -99
- package/package.json +42 -22
- package/dist/es5/webclient-cesium-plugin.min.js +0 -77
- package/dist/es5/webclient-common.min.js +0 -159
- package/dist/webclient-cesium-plugin-es6.min.js +0 -77
- package/documention/CircleWaveMaterialProperty.html +0 -382
- package/documention/DynamicEntityVisualizer.html +0 -348
- package/documention/DynamicLabelLayer.html +0 -1841
- package/documention/GroundPrimitiveLayer.html +0 -1675
- package/documention/HashMap.html +0 -4197
- package/documention/ModelEditor.html +0 -374
- package/documention/SceneViewCesium.html +0 -5544
- package/documention/Screenshot.html +0 -773
- package/documention/SketchEditorCesium.html +0 -1571
- package/documention/createColorTexture.html +0 -369
- package/documention/fonts/glyphicons-halflings-regular.svg +0 -288
- package/documention/isCounterClockwise.html +0 -760
- package/documention/scripts/app.min.js +0 -1
- package/documention/scripts/jquery.min.map +0 -1
- package/documention/scripts/search.js +0 -20
- package/documention/scripts/sideBar.js +0 -228
- package/documention/scripts/underscore-min.map +0 -1
- package/documention/styles/adminlte/AdminLTE.min.css +0 -7
- package/documention/styles/adminlte/skin-blue.min.css +0 -1
- package/documention/styles/anchor.png +0 -0
- package/documention/styles/app.min.css +0 -1
- package/documention/styles/bootstrap.min.css +0 -6
- package/documention/styles/c.png +0 -0
- package/documention/styles/common.css +0 -175
- package/documention/styles/examples.css +0 -116
- package/documention/styles/header.css +0 -556
- package/documention/styles/iframe.css +0 -29
- package/documention/styles/jaguar.css +0 -553
- package/documention/styles/m.png +0 -0
- package/documention/styles/reset.css +0 -44
- package/documention/styles/up-arrow.png +0 -0
- package/documention/tutorial-1./345/277/253/351/200/237/345/205/245/351/227/250.html +0 -162
- /package/{documention → documentation}/fonts/fontawesome-webfont.woff2 +0 -0
- /package/{documention → documentation}/fonts/glyphicons-halflings-regular.eot +0 -0
- /package/{documention → documentation}/fonts/glyphicons-halflings-regular.ttf +0 -0
- /package/{documention → documentation}/fonts/glyphicons-halflings-regular.woff +0 -0
- /package/{documention → documentation}/fonts/glyphicons-halflings-regular.woff2 +0 -0
- /package/{documention → documentation}/scripts/adminlte/app.min.js +0 -0
- /package/{documention → documentation}/scripts/bootstrap.min.js +0 -0
- /package/{documention → documentation}/scripts/jquery.min.js +0 -0
- /package/{documention → documentation}/scripts/linenumber.js +0 -0
- /package/{documention → documentation}/scripts/main.js +0 -0
- /package/{documention → documentation}/scripts/prettify/Apache-License-2.0.txt +0 -0
- /package/{documention → documentation}/scripts/prettify/lang-css.js +0 -0
- /package/{documention → documentation}/scripts/prettify/prettify.js +0 -0
- /package/{documention → documentation}/scripts/underscore-min.js +0 -0
- /package/{documention → documentation}/styles/adminlte/font-awesome.min.css +0 -0
- /package/{documention → documentation}/styles/prettify-jsdoc.css +0 -0
|
@@ -94,27 +94,12 @@
|
|
|
94
94
|
</div>
|
|
95
95
|
|
|
96
96
|
|
|
97
|
-
<p class="summary"><h5>请参考以下示例:</h5>
|
|
98
|
-
<a href='http://10.10.130.72:8086/#/modules/cesium/analyse/modelAnalyse/model-cutting' target='_blank'>1、动态剖切</a><br>
|
|
99
|
-
<a href='http://10.10.130.72:8086/#/modules/cesium/analyse/geologyAnalyse/model-banding' target='_blank'>2、地质体封边</a><br>
|
|
100
|
-
<a href='http://10.10.130.72:8086/#/modules/cesium/analyse/terrainAnalyse/terrain-excavation' target='_blank'>3、地形开挖</a>
|
|
101
|
-
<h5>支持如下方法:</h5>
|
|
102
|
-
<a href='#createModelCuttingPlane'>[1、创建模型裁剪面]</a><br/>
|
|
103
|
-
<a href='#changePlaneColor'>[2、修改辅助剖切面颜色]</a><br/>
|
|
104
|
-
<a href='#createModelCuttingPlaneFromLine'>[3、通过直线,绘制模型裁剪面]</a><br/>
|
|
105
|
-
<a href='#createModelCuttingPlaneFromPolyline'>[4、通过折线,绘制模型裁剪面,请提两个以上的点,否则不执行剖切分析]</a><br/>
|
|
106
|
-
<a href='#createModelCuttingVolume'>[5、通过边界区域,以及最小最大高程,构建裁剪体]</a><br/>
|
|
107
|
-
<a href='#createModelCuttingPolygon'>[6、多边形几何裁剪]</a><br/>
|
|
108
|
-
<a href='#removeAll'>[7、移除所有裁剪面]</a><br/>
|
|
109
|
-
<a href='#enabled'>[8、开关当前被CuttingTool管理的裁剪体]</a><br/>
|
|
110
|
-
<a href='#showCuttingPlane'>[9、显示或隐藏所有辅助剖切面(体)]</a><br/></p>
|
|
111
|
-
|
|
112
97
|
</dt>
|
|
113
98
|
<dd>
|
|
114
99
|
|
|
115
100
|
|
|
116
101
|
<div class="description">
|
|
117
|
-
<p
|
|
102
|
+
<p>三维场景裁剪工具集,用于对模型图层执行剖切、裁剪体构建,以及可选的地形开挖联动。</p>
|
|
118
103
|
</div>
|
|
119
104
|
|
|
120
105
|
|
|
@@ -166,7 +151,7 @@
|
|
|
166
151
|
|
|
167
152
|
|
|
168
153
|
|
|
169
|
-
<p>三维视图对象,<a href='http://10.10.130.72:8086/static/modules/cesium/api/cesium/index.html' target='_blank'>详见Cesium.Viewer</a
|
|
154
|
+
<p>三维视图对象,<a href='http://10.10.130.72:8086/static/modules/cesium/api/cesium/index.html' target='_blank'>详见 Cesium.Viewer</a>。</p></td>
|
|
170
155
|
</tr>
|
|
171
156
|
|
|
172
157
|
|
|
@@ -194,9 +179,9 @@
|
|
|
194
179
|
|
|
195
180
|
|
|
196
181
|
|
|
197
|
-
<p
|
|
198
|
-
|
|
199
|
-
<a href='http://10.10.130.72:8086/static/modules/cesium/api/cesium/Cesium3DTileset.html' target='_blank'>《Cesium.Cesium3DTileset》</a
|
|
182
|
+
<p>要剖切的图层对象数组。
|
|
183
|
+
支持 <a href='http://10.10.130.72:8086/static/modules/cesium/api/cesium/MapGISM3DSet.html' target='_blank'>《Cesium.MapGISM3DSet》</a>
|
|
184
|
+
和 <a href='http://10.10.130.72:8086/static/modules/cesium/api/cesium/Cesium3DTileset.html' target='_blank'>《Cesium.Cesium3DTileset》</a>。</p></td>
|
|
200
185
|
</tr>
|
|
201
186
|
|
|
202
187
|
|
|
@@ -226,7 +211,7 @@
|
|
|
226
211
|
|
|
227
212
|
|
|
228
213
|
|
|
229
|
-
<p
|
|
214
|
+
<p>可选参数。</p>
|
|
230
215
|
|
|
231
216
|
|
|
232
217
|
<table class="params">
|
|
@@ -272,7 +257,8 @@
|
|
|
272
257
|
|
|
273
258
|
|
|
274
259
|
|
|
275
|
-
<p
|
|
260
|
+
<p>发生错误时的回调函数,<code>type</code> 为错误类型,<code>msg</code> 为错误信息。
|
|
261
|
+
错误类型约定为:<code>0</code> 点数量小于 2,<code>1</code> 为凹多边形不支持,<code>2</code> 有空对象,<code>3</code> 不是笛卡尔点对象,<code>4</code> 裁剪体高度不正确。</p></td>
|
|
276
262
|
</tr>
|
|
277
263
|
|
|
278
264
|
|
|
@@ -302,7 +288,7 @@
|
|
|
302
288
|
|
|
303
289
|
|
|
304
290
|
|
|
305
|
-
<p
|
|
291
|
+
<p>是否在创建裁剪体时同步对地形执行开挖。</p></td>
|
|
306
292
|
</tr>
|
|
307
293
|
|
|
308
294
|
|
|
@@ -353,6 +339,29 @@
|
|
|
353
339
|
|
|
354
340
|
|
|
355
341
|
|
|
342
|
+
<h5>Example</h5>
|
|
343
|
+
|
|
344
|
+
<p class="code-caption"><h7>初始化模型裁剪工具</h7></p>
|
|
345
|
+
|
|
346
|
+
|
|
347
|
+
|
|
348
|
+
<pre class="prettyprint"><code>// ES5引入方式
|
|
349
|
+
const { CuttingTool } = zondy.cesium
|
|
350
|
+
|
|
351
|
+
// ES6引入方式
|
|
352
|
+
import { CuttingTool } from '@mapgis/webclient-cesium-plugin'
|
|
353
|
+
|
|
354
|
+
// 参考示例:
|
|
355
|
+
// http://10.10.130.72:8086/#/modules/cesium/analyse/modelAnalyse/model-cutting
|
|
356
|
+
// http://10.10.130.72:8086/#/modules/cesium/analyse/geologyAnalyse/model-banding
|
|
357
|
+
// http://10.10.130.72:8086/#/modules/cesium/analyse/terrainAnalyse/terrain-excavation
|
|
358
|
+
|
|
359
|
+
const cuttingTool = new CuttingTool(viewer, layerList, {
|
|
360
|
+
isCuttingTerrain: false
|
|
361
|
+
})</code></pre>
|
|
362
|
+
|
|
363
|
+
|
|
364
|
+
|
|
356
365
|
</dd>
|
|
357
366
|
|
|
358
367
|
|
|
@@ -413,6 +422,52 @@
|
|
|
413
422
|
|
|
414
423
|
|
|
415
424
|
|
|
425
|
+
|
|
426
|
+
</dl>
|
|
427
|
+
|
|
428
|
+
|
|
429
|
+
|
|
430
|
+
</dd>
|
|
431
|
+
|
|
432
|
+
|
|
433
|
+
|
|
434
|
+
<dt>
|
|
435
|
+
<div class="nameContainer">
|
|
436
|
+
<h4 class="name" id="terrainExcavate">terrainExcavate<span class="type-signature type terrainexcavatetool"><a href="TerrainExcavateTool.html">TerrainExcavateTool</a></span> </h4>
|
|
437
|
+
</div>
|
|
438
|
+
|
|
439
|
+
|
|
440
|
+
</dt>
|
|
441
|
+
<dd>
|
|
442
|
+
|
|
443
|
+
<div class="description">
|
|
444
|
+
<p>地形剖切工具实例
|
|
445
|
+
用于地形裁剪和开挖的工具实例,可通过此属性访问 TerrainExcavateTool 的所有功能。</p>
|
|
446
|
+
</div>
|
|
447
|
+
|
|
448
|
+
|
|
449
|
+
|
|
450
|
+
<dl class="details">
|
|
451
|
+
|
|
452
|
+
|
|
453
|
+
|
|
454
|
+
|
|
455
|
+
|
|
456
|
+
|
|
457
|
+
|
|
458
|
+
|
|
459
|
+
|
|
460
|
+
|
|
461
|
+
|
|
462
|
+
|
|
463
|
+
|
|
464
|
+
|
|
465
|
+
|
|
466
|
+
|
|
467
|
+
|
|
468
|
+
|
|
469
|
+
|
|
470
|
+
|
|
416
471
|
|
|
417
472
|
</dl>
|
|
418
473
|
|
|
@@ -439,7 +494,7 @@
|
|
|
439
494
|
|
|
440
495
|
|
|
441
496
|
<div class="tag-source">
|
|
442
|
-
engineExtensions/tools/CuttingTool.js, line
|
|
497
|
+
engineExtensions/tools/CuttingTool.js, line 276
|
|
443
498
|
</div>
|
|
444
499
|
|
|
445
500
|
</div>
|
|
@@ -450,7 +505,7 @@
|
|
|
450
505
|
|
|
451
506
|
|
|
452
507
|
<div class="description">
|
|
453
|
-
<p
|
|
508
|
+
<p>修改已有辅助剖切面或辅助裁剪体的显示颜色。<a id='changePlaneColor'/></p>
|
|
454
509
|
</div>
|
|
455
510
|
|
|
456
511
|
|
|
@@ -512,7 +567,7 @@
|
|
|
512
567
|
|
|
513
568
|
|
|
514
569
|
|
|
515
|
-
<p
|
|
570
|
+
<p>辅助面颜色。</p></td>
|
|
516
571
|
</tr>
|
|
517
572
|
|
|
518
573
|
|
|
@@ -570,7 +625,7 @@
|
|
|
570
625
|
|
|
571
626
|
|
|
572
627
|
<div class="tag-source">
|
|
573
|
-
engineExtensions/tools/CuttingTool.js, line
|
|
628
|
+
engineExtensions/tools/CuttingTool.js, line 78
|
|
574
629
|
</div>
|
|
575
630
|
|
|
576
631
|
</div>
|
|
@@ -581,7 +636,7 @@
|
|
|
581
636
|
|
|
582
637
|
|
|
583
638
|
<div class="description">
|
|
584
|
-
<p
|
|
639
|
+
<p>创建单个模型裁剪面,支持 MapGISM3DSet 和 Cesium3DTileset。<a id='createModelCuttingPlane'/></p>
|
|
585
640
|
</div>
|
|
586
641
|
|
|
587
642
|
|
|
@@ -633,7 +688,7 @@
|
|
|
633
688
|
|
|
634
689
|
|
|
635
690
|
|
|
636
|
-
<p
|
|
691
|
+
<p>裁剪面的法线方向。</p></td>
|
|
637
692
|
</tr>
|
|
638
693
|
|
|
639
694
|
|
|
@@ -663,7 +718,7 @@
|
|
|
663
718
|
|
|
664
719
|
|
|
665
720
|
|
|
666
|
-
<p
|
|
721
|
+
<p>可选参数。</p>
|
|
667
722
|
|
|
668
723
|
|
|
669
724
|
<table class="params">
|
|
@@ -717,7 +772,7 @@
|
|
|
717
772
|
|
|
718
773
|
|
|
719
774
|
|
|
720
|
-
<p
|
|
775
|
+
<p>裁剪面的初始距离。</p></td>
|
|
721
776
|
</tr>
|
|
722
777
|
|
|
723
778
|
|
|
@@ -753,7 +808,7 @@
|
|
|
753
808
|
|
|
754
809
|
|
|
755
810
|
|
|
756
|
-
<p
|
|
811
|
+
<p>辅助面的宽度缩放比例。</p></td>
|
|
757
812
|
</tr>
|
|
758
813
|
|
|
759
814
|
|
|
@@ -789,7 +844,7 @@
|
|
|
789
844
|
|
|
790
845
|
|
|
791
846
|
|
|
792
|
-
<p
|
|
847
|
+
<p>辅助面的高度缩放比例。</p></td>
|
|
793
848
|
</tr>
|
|
794
849
|
|
|
795
850
|
|
|
@@ -825,7 +880,7 @@
|
|
|
825
880
|
|
|
826
881
|
|
|
827
882
|
|
|
828
|
-
<p
|
|
883
|
+
<p>裁剪方向,<code>false</code> 表示原方向,<code>true</code> 表示反向。</p></td>
|
|
829
884
|
</tr>
|
|
830
885
|
|
|
831
886
|
|
|
@@ -861,7 +916,7 @@
|
|
|
861
916
|
|
|
862
917
|
|
|
863
918
|
|
|
864
|
-
<p
|
|
919
|
+
<p>辅助面颜色。</p></td>
|
|
865
920
|
</tr>
|
|
866
921
|
|
|
867
922
|
|
|
@@ -897,7 +952,7 @@
|
|
|
897
952
|
|
|
898
953
|
|
|
899
954
|
|
|
900
|
-
<p
|
|
955
|
+
<p>是否显示辅助面。</p></td>
|
|
901
956
|
</tr>
|
|
902
957
|
|
|
903
958
|
|
|
@@ -961,7 +1016,7 @@
|
|
|
961
1016
|
|
|
962
1017
|
|
|
963
1018
|
<div class="tag-source">
|
|
964
|
-
engineExtensions/tools/CuttingTool.js, line
|
|
1019
|
+
engineExtensions/tools/CuttingTool.js, line 304
|
|
965
1020
|
</div>
|
|
966
1021
|
|
|
967
1022
|
</div>
|
|
@@ -972,7 +1027,7 @@
|
|
|
972
1027
|
|
|
973
1028
|
|
|
974
1029
|
<div class="description">
|
|
975
|
-
<p
|
|
1030
|
+
<p>通过一条直线定义模型裁剪面,支持 MapGISM3DSet 和 Cesium3DTileset。<a id='createModelCuttingPlaneFromLine'/></p>
|
|
976
1031
|
</div>
|
|
977
1032
|
|
|
978
1033
|
|
|
@@ -1024,7 +1079,7 @@
|
|
|
1024
1079
|
|
|
1025
1080
|
|
|
1026
1081
|
|
|
1027
|
-
<p>直线起始点 A
|
|
1082
|
+
<p>直线起始点 A,必须为角度制经纬度点。</p></td>
|
|
1028
1083
|
</tr>
|
|
1029
1084
|
|
|
1030
1085
|
|
|
@@ -1052,7 +1107,7 @@
|
|
|
1052
1107
|
|
|
1053
1108
|
|
|
1054
1109
|
|
|
1055
|
-
<p>直线终止点 B
|
|
1110
|
+
<p>直线终止点 B,必须为角度制经纬度点。</p></td>
|
|
1056
1111
|
</tr>
|
|
1057
1112
|
|
|
1058
1113
|
|
|
@@ -1082,7 +1137,7 @@
|
|
|
1082
1137
|
|
|
1083
1138
|
|
|
1084
1139
|
|
|
1085
|
-
<p
|
|
1140
|
+
<p>可选参数。</p>
|
|
1086
1141
|
|
|
1087
1142
|
|
|
1088
1143
|
<table class="params">
|
|
@@ -1136,7 +1191,7 @@
|
|
|
1136
1191
|
|
|
1137
1192
|
|
|
1138
1193
|
|
|
1139
|
-
<p
|
|
1194
|
+
<p>辅助面宽度缩放比例。</p></td>
|
|
1140
1195
|
</tr>
|
|
1141
1196
|
|
|
1142
1197
|
|
|
@@ -1172,7 +1227,7 @@
|
|
|
1172
1227
|
|
|
1173
1228
|
|
|
1174
1229
|
|
|
1175
|
-
<p
|
|
1230
|
+
<p>辅助面高度缩放比例。</p></td>
|
|
1176
1231
|
</tr>
|
|
1177
1232
|
|
|
1178
1233
|
|
|
@@ -1208,7 +1263,7 @@
|
|
|
1208
1263
|
|
|
1209
1264
|
|
|
1210
1265
|
|
|
1211
|
-
<p
|
|
1266
|
+
<p>辅助面颜色。</p></td>
|
|
1212
1267
|
</tr>
|
|
1213
1268
|
|
|
1214
1269
|
|
|
@@ -1244,7 +1299,7 @@
|
|
|
1244
1299
|
|
|
1245
1300
|
|
|
1246
1301
|
|
|
1247
|
-
<p
|
|
1302
|
+
<p>是否显示辅助面。</p></td>
|
|
1248
1303
|
</tr>
|
|
1249
1304
|
|
|
1250
1305
|
|
|
@@ -1280,7 +1335,7 @@
|
|
|
1280
1335
|
|
|
1281
1336
|
|
|
1282
1337
|
|
|
1283
|
-
<p
|
|
1338
|
+
<p>裁剪方向,<code>false</code> 为原方向,<code>true</code> 为反方向。</p></td>
|
|
1284
1339
|
</tr>
|
|
1285
1340
|
|
|
1286
1341
|
|
|
@@ -1344,7 +1399,7 @@
|
|
|
1344
1399
|
|
|
1345
1400
|
|
|
1346
1401
|
<div class="tag-source">
|
|
1347
|
-
engineExtensions/tools/CuttingTool.js, line
|
|
1402
|
+
engineExtensions/tools/CuttingTool.js, line 321
|
|
1348
1403
|
</div>
|
|
1349
1404
|
|
|
1350
1405
|
</div>
|
|
@@ -1355,7 +1410,7 @@
|
|
|
1355
1410
|
|
|
1356
1411
|
|
|
1357
1412
|
<div class="description">
|
|
1358
|
-
<p
|
|
1413
|
+
<p>通过折线定义模型裁剪面,至少需要两个点,支持 MapGISM3DSet 和 Cesium3DTileset。<a id='createModelCuttingPlaneFromPolyline'/></p>
|
|
1359
1414
|
</div>
|
|
1360
1415
|
|
|
1361
1416
|
|
|
@@ -1407,7 +1462,7 @@
|
|
|
1407
1462
|
|
|
1408
1463
|
|
|
1409
1464
|
|
|
1410
|
-
<p
|
|
1465
|
+
<p>折线点坐标数组。</p></td>
|
|
1411
1466
|
</tr>
|
|
1412
1467
|
|
|
1413
1468
|
|
|
@@ -1437,7 +1492,7 @@
|
|
|
1437
1492
|
|
|
1438
1493
|
|
|
1439
1494
|
|
|
1440
|
-
<p
|
|
1495
|
+
<p>可选参数。</p>
|
|
1441
1496
|
|
|
1442
1497
|
|
|
1443
1498
|
<table class="params">
|
|
@@ -1491,7 +1546,8 @@
|
|
|
1491
1546
|
|
|
1492
1547
|
|
|
1493
1548
|
|
|
1494
|
-
<p
|
|
1549
|
+
<p>辅助面宽度缩放比例。
|
|
1550
|
+
仅当剖切对象为模型时,辅助面相关配置才会生效。</p></td>
|
|
1495
1551
|
</tr>
|
|
1496
1552
|
|
|
1497
1553
|
|
|
@@ -1527,7 +1583,7 @@
|
|
|
1527
1583
|
|
|
1528
1584
|
|
|
1529
1585
|
|
|
1530
|
-
<p
|
|
1586
|
+
<p>辅助面高度缩放比例。</p></td>
|
|
1531
1587
|
</tr>
|
|
1532
1588
|
|
|
1533
1589
|
|
|
@@ -1563,7 +1619,7 @@
|
|
|
1563
1619
|
|
|
1564
1620
|
|
|
1565
1621
|
|
|
1566
|
-
<p
|
|
1622
|
+
<p>辅助面颜色。</p></td>
|
|
1567
1623
|
</tr>
|
|
1568
1624
|
|
|
1569
1625
|
|
|
@@ -1599,7 +1655,7 @@
|
|
|
1599
1655
|
|
|
1600
1656
|
|
|
1601
1657
|
|
|
1602
|
-
<p
|
|
1658
|
+
<p>是否显示辅助面。</p></td>
|
|
1603
1659
|
</tr>
|
|
1604
1660
|
|
|
1605
1661
|
|
|
@@ -1635,7 +1691,7 @@
|
|
|
1635
1691
|
|
|
1636
1692
|
|
|
1637
1693
|
|
|
1638
|
-
<p
|
|
1694
|
+
<p>裁剪方向,<code>false</code> 为反方向裁剪,<code>true</code> 为原方向裁剪。</p></td>
|
|
1639
1695
|
</tr>
|
|
1640
1696
|
|
|
1641
1697
|
|
|
@@ -1699,7 +1755,7 @@
|
|
|
1699
1755
|
|
|
1700
1756
|
|
|
1701
1757
|
<div class="tag-source">
|
|
1702
|
-
engineExtensions/tools/CuttingTool.js, line
|
|
1758
|
+
engineExtensions/tools/CuttingTool.js, line 483
|
|
1703
1759
|
</div>
|
|
1704
1760
|
|
|
1705
1761
|
</div>
|
|
@@ -1710,8 +1766,8 @@
|
|
|
1710
1766
|
|
|
1711
1767
|
|
|
1712
1768
|
<div class="description">
|
|
1713
|
-
<p
|
|
1714
|
-
|
|
1769
|
+
<p>多边形几何裁剪。<a id='createModelCuttingPolygon'/>
|
|
1770
|
+
通过边界区域和高程范围构建裁剪几何体。支持凹多边形裁剪,但封边效果仅对 MapGISM3DSet 支持较好。</p>
|
|
1715
1771
|
</div>
|
|
1716
1772
|
|
|
1717
1773
|
|
|
@@ -1758,7 +1814,7 @@
|
|
|
1758
1814
|
|
|
1759
1815
|
<td class="description last">
|
|
1760
1816
|
|
|
1761
|
-
<p
|
|
1817
|
+
<p>区域边界点数组,点需要按顺时针方向选取,且要求为经纬度坐标。</p></td>
|
|
1762
1818
|
</tr>
|
|
1763
1819
|
|
|
1764
1820
|
|
|
@@ -1781,7 +1837,7 @@
|
|
|
1781
1837
|
|
|
1782
1838
|
<td class="description last">
|
|
1783
1839
|
|
|
1784
|
-
<p
|
|
1840
|
+
<p>最小高程。</p></td>
|
|
1785
1841
|
</tr>
|
|
1786
1842
|
|
|
1787
1843
|
|
|
@@ -1804,7 +1860,7 @@
|
|
|
1804
1860
|
|
|
1805
1861
|
<td class="description last">
|
|
1806
1862
|
|
|
1807
|
-
<p
|
|
1863
|
+
<p>最大高程。</p></td>
|
|
1808
1864
|
</tr>
|
|
1809
1865
|
|
|
1810
1866
|
|
|
@@ -1827,7 +1883,7 @@
|
|
|
1827
1883
|
|
|
1828
1884
|
<td class="description last">
|
|
1829
1885
|
|
|
1830
|
-
<p
|
|
1886
|
+
<p>可选参数。</p>
|
|
1831
1887
|
|
|
1832
1888
|
|
|
1833
1889
|
<table class="params">
|
|
@@ -1881,7 +1937,7 @@
|
|
|
1881
1937
|
|
|
1882
1938
|
|
|
1883
1939
|
|
|
1884
|
-
<p
|
|
1940
|
+
<p>配置裁剪体颜色及透明度。</p></td>
|
|
1885
1941
|
</tr>
|
|
1886
1942
|
|
|
1887
1943
|
|
|
@@ -1917,7 +1973,7 @@
|
|
|
1917
1973
|
|
|
1918
1974
|
|
|
1919
1975
|
|
|
1920
|
-
<p
|
|
1976
|
+
<p>裁剪方向,<code>true</code> 表示去除裁剪区域内的部分,<code>false</code> 表示去除裁剪区域外的部分。</p></td>
|
|
1921
1977
|
</tr>
|
|
1922
1978
|
|
|
1923
1979
|
|
|
@@ -1953,7 +2009,7 @@
|
|
|
1953
2009
|
|
|
1954
2010
|
|
|
1955
2011
|
|
|
1956
|
-
<p
|
|
2012
|
+
<p>是否显示辅助面。</p></td>
|
|
1957
2013
|
</tr>
|
|
1958
2014
|
|
|
1959
2015
|
|
|
@@ -2006,26 +2062,25 @@
|
|
|
2006
2062
|
|
|
2007
2063
|
<h5>Example</h5>
|
|
2008
2064
|
|
|
2065
|
+
<p class="code-caption"><h7>多边形几何裁剪</h7></p>
|
|
2066
|
+
|
|
2009
2067
|
|
|
2010
2068
|
|
|
2011
|
-
<pre class="prettyprint"><code>var cutTool = new Cesium.CuttingTool(viewer, layerList)
|
|
2069
|
+
<pre class="prettyprint"><code>var cutTool = new Cesium.CuttingTool(viewer, layerList)
|
|
2012
2070
|
var positions = [
|
|
2013
|
-
|
|
2014
|
-
|
|
2015
|
-
|
|
2016
|
-
|
|
2017
|
-
|
|
2018
|
-
|
|
2019
|
-
|
|
2020
|
-
|
|
2021
|
-
]
|
|
2071
|
+
113.0406, 30.0378,
|
|
2072
|
+
113.0595, 30.0378,
|
|
2073
|
+
113.0595, 30.0297,
|
|
2074
|
+
113.0762, 30.0297,
|
|
2075
|
+
113.0762, 30.0179,
|
|
2076
|
+
113.0595, 30.0179,
|
|
2077
|
+
113.0595, 30.0099,
|
|
2078
|
+
113.0406, 30.0099
|
|
2079
|
+
]
|
|
2022
2080
|
cutTool.createModelCuttingPolygon(positions, -1000, 500, {
|
|
2023
|
-
|
|
2024
|
-
|
|
2025
|
-
|
|
2026
|
-
color: new Cesium.Color(1, 1, 1, 0.2),
|
|
2027
|
-
//是否显示裁剪体
|
|
2028
|
-
showCuttingPlane: true
|
|
2081
|
+
unionClippingRegions: false,
|
|
2082
|
+
color: new Cesium.Color(1, 1, 1, 0.2),
|
|
2083
|
+
showCuttingPlane: true
|
|
2029
2084
|
})</code></pre>
|
|
2030
2085
|
|
|
2031
2086
|
|
|
@@ -2043,7 +2098,7 @@ cutTool.createModelCuttingPolygon(positions, -1000, 500, {
|
|
|
2043
2098
|
|
|
2044
2099
|
|
|
2045
2100
|
<div class="tag-source">
|
|
2046
|
-
engineExtensions/tools/CuttingTool.js, line
|
|
2101
|
+
engineExtensions/tools/CuttingTool.js, line 444
|
|
2047
2102
|
</div>
|
|
2048
2103
|
|
|
2049
2104
|
</div>
|
|
@@ -2054,7 +2109,7 @@ cutTool.createModelCuttingPolygon(positions, -1000, 500, {
|
|
|
2054
2109
|
|
|
2055
2110
|
|
|
2056
2111
|
<div class="description">
|
|
2057
|
-
<p
|
|
2112
|
+
<p>根据边界区域与高程范围构建裁剪体,支持 MapGISM3DSet 和 Cesium3DTileset。<a id='createModelCuttingVolume'/></p>
|
|
2058
2113
|
</div>
|
|
2059
2114
|
|
|
2060
2115
|
|
|
@@ -2101,7 +2156,7 @@ cutTool.createModelCuttingPolygon(positions, -1000, 500, {
|
|
|
2101
2156
|
|
|
2102
2157
|
<td class="description last">
|
|
2103
2158
|
|
|
2104
|
-
<p
|
|
2159
|
+
<p>区域边界点数组,点需要按顺时针方向选取。</p></td>
|
|
2105
2160
|
</tr>
|
|
2106
2161
|
|
|
2107
2162
|
|
|
@@ -2124,7 +2179,7 @@ cutTool.createModelCuttingPolygon(positions, -1000, 500, {
|
|
|
2124
2179
|
|
|
2125
2180
|
<td class="description last">
|
|
2126
2181
|
|
|
2127
|
-
<p
|
|
2182
|
+
<p>最小高程。</p></td>
|
|
2128
2183
|
</tr>
|
|
2129
2184
|
|
|
2130
2185
|
|
|
@@ -2147,7 +2202,7 @@ cutTool.createModelCuttingPolygon(positions, -1000, 500, {
|
|
|
2147
2202
|
|
|
2148
2203
|
<td class="description last">
|
|
2149
2204
|
|
|
2150
|
-
<p
|
|
2205
|
+
<p>最大高程。</p></td>
|
|
2151
2206
|
</tr>
|
|
2152
2207
|
|
|
2153
2208
|
|
|
@@ -2170,7 +2225,7 @@ cutTool.createModelCuttingPolygon(positions, -1000, 500, {
|
|
|
2170
2225
|
|
|
2171
2226
|
<td class="description last">
|
|
2172
2227
|
|
|
2173
|
-
<p
|
|
2228
|
+
<p>可选参数。</p>
|
|
2174
2229
|
|
|
2175
2230
|
|
|
2176
2231
|
<table class="params">
|
|
@@ -2224,7 +2279,7 @@ cutTool.createModelCuttingPolygon(positions, -1000, 500, {
|
|
|
2224
2279
|
|
|
2225
2280
|
|
|
2226
2281
|
|
|
2227
|
-
<p
|
|
2282
|
+
<p>配置裁剪体颜色及透明度。</p></td>
|
|
2228
2283
|
</tr>
|
|
2229
2284
|
|
|
2230
2285
|
|
|
@@ -2260,7 +2315,7 @@ cutTool.createModelCuttingPolygon(positions, -1000, 500, {
|
|
|
2260
2315
|
|
|
2261
2316
|
|
|
2262
2317
|
|
|
2263
|
-
<p
|
|
2318
|
+
<p>裁剪方向,<code>true</code> 表示去除裁剪区域内的部分,<code>false</code> 表示去除裁剪区域外的部分。</p></td>
|
|
2264
2319
|
</tr>
|
|
2265
2320
|
|
|
2266
2321
|
|
|
@@ -2296,7 +2351,44 @@ cutTool.createModelCuttingPolygon(positions, -1000, 500, {
|
|
|
2296
2351
|
|
|
2297
2352
|
|
|
2298
2353
|
|
|
2299
|
-
<p
|
|
2354
|
+
<p>是否显示辅助面。
|
|
2355
|
+
仅当剖切对象为模型时,辅助面相关配置才会生效。</p></td>
|
|
2356
|
+
</tr>
|
|
2357
|
+
|
|
2358
|
+
|
|
2359
|
+
|
|
2360
|
+
<tr>
|
|
2361
|
+
|
|
2362
|
+
<td class="name"><code>isFill</code></td>
|
|
2363
|
+
|
|
2364
|
+
|
|
2365
|
+
<td class="type">
|
|
2366
|
+
|
|
2367
|
+
|
|
2368
|
+
<span class="param-type">Boolean</span>
|
|
2369
|
+
|
|
2370
|
+
|
|
2371
|
+
|
|
2372
|
+
</td>
|
|
2373
|
+
|
|
2374
|
+
|
|
2375
|
+
<td class="default">
|
|
2376
|
+
|
|
2377
|
+
true
|
|
2378
|
+
|
|
2379
|
+
</td>
|
|
2380
|
+
|
|
2381
|
+
|
|
2382
|
+
<td class="description last">
|
|
2383
|
+
|
|
2384
|
+
|
|
2385
|
+
<span class="optional"> 可选</span>
|
|
2386
|
+
|
|
2387
|
+
|
|
2388
|
+
|
|
2389
|
+
|
|
2390
|
+
|
|
2391
|
+
<p>是否显示地形开挖封边,<code>true</code> 表示显示侧边和底面,<code>false</code> 表示隐藏侧边和底面。</p></td>
|
|
2300
2392
|
</tr>
|
|
2301
2393
|
|
|
2302
2394
|
|
|
@@ -2332,7 +2424,7 @@ cutTool.createModelCuttingPolygon(positions, -1000, 500, {
|
|
|
2332
2424
|
|
|
2333
2425
|
|
|
2334
2426
|
|
|
2335
|
-
<p
|
|
2427
|
+
<p>地形封边底面纹理资源路径。</p></td>
|
|
2336
2428
|
</tr>
|
|
2337
2429
|
|
|
2338
2430
|
|
|
@@ -2368,7 +2460,7 @@ cutTool.createModelCuttingPolygon(positions, -1000, 500, {
|
|
|
2368
2460
|
|
|
2369
2461
|
|
|
2370
2462
|
|
|
2371
|
-
<p
|
|
2463
|
+
<p>地形封边剖面纹理资源路径。</p></td>
|
|
2372
2464
|
</tr>
|
|
2373
2465
|
|
|
2374
2466
|
|
|
@@ -2432,7 +2524,7 @@ cutTool.createModelCuttingPolygon(positions, -1000, 500, {
|
|
|
2432
2524
|
|
|
2433
2525
|
|
|
2434
2526
|
<div class="tag-source">
|
|
2435
|
-
engineExtensions/tools/CuttingTool.js, line
|
|
2527
|
+
engineExtensions/tools/CuttingTool.js, line 653
|
|
2436
2528
|
</div>
|
|
2437
2529
|
|
|
2438
2530
|
</div>
|
|
@@ -2443,7 +2535,7 @@ cutTool.createModelCuttingPolygon(positions, -1000, 500, {
|
|
|
2443
2535
|
|
|
2444
2536
|
|
|
2445
2537
|
<div class="description">
|
|
2446
|
-
<p
|
|
2538
|
+
<p>统一开关当前由 CuttingTool 管理的裁剪效果。<a id='enabled'/></p>
|
|
2447
2539
|
</div>
|
|
2448
2540
|
|
|
2449
2541
|
|
|
@@ -2490,7 +2582,7 @@ cutTool.createModelCuttingPolygon(positions, -1000, 500, {
|
|
|
2490
2582
|
|
|
2491
2583
|
<td class="description last">
|
|
2492
2584
|
|
|
2493
|
-
</td>
|
|
2585
|
+
<p><code>true</code> 表示启用裁剪效果,<code>false</code> 表示关闭裁剪效果。</p></td>
|
|
2494
2586
|
</tr>
|
|
2495
2587
|
|
|
2496
2588
|
|
|
@@ -2548,7 +2640,7 @@ cutTool.createModelCuttingPolygon(positions, -1000, 500, {
|
|
|
2548
2640
|
|
|
2549
2641
|
|
|
2550
2642
|
<div class="tag-source">
|
|
2551
|
-
engineExtensions/tools/CuttingTool.js, line
|
|
2643
|
+
engineExtensions/tools/CuttingTool.js, line 592
|
|
2552
2644
|
</div>
|
|
2553
2645
|
|
|
2554
2646
|
</div>
|
|
@@ -2559,7 +2651,7 @@ cutTool.createModelCuttingPolygon(positions, -1000, 500, {
|
|
|
2559
2651
|
|
|
2560
2652
|
|
|
2561
2653
|
<div class="description">
|
|
2562
|
-
<p
|
|
2654
|
+
<p>移除当前工具管理的所有裁剪面、裁剪体以及地形开挖结果。<a id='removeAll'/></p>
|
|
2563
2655
|
</div>
|
|
2564
2656
|
|
|
2565
2657
|
|
|
@@ -2608,11 +2700,13 @@ cutTool.createModelCuttingPolygon(positions, -1000, 500, {
|
|
|
2608
2700
|
|
|
2609
2701
|
<h5>Example</h5>
|
|
2610
2702
|
|
|
2703
|
+
<p class="code-caption"><h7>清理裁剪结果</h7></p>
|
|
2704
|
+
|
|
2611
2705
|
|
|
2612
2706
|
|
|
2613
|
-
<pre class="prettyprint"><code>var cutTool = new Cesium.CuttingTool(viewer, layerList)
|
|
2707
|
+
<pre class="prettyprint"><code>var cutTool = new Cesium.CuttingTool(viewer, layerList)
|
|
2614
2708
|
|
|
2615
|
-
cutTool.removeAll()
|
|
2709
|
+
cutTool.removeAll()</code></pre>
|
|
2616
2710
|
|
|
2617
2711
|
|
|
2618
2712
|
|
|
@@ -2629,7 +2723,7 @@ cutTool.removeAll();</code></pre>
|
|
|
2629
2723
|
|
|
2630
2724
|
|
|
2631
2725
|
<div class="tag-source">
|
|
2632
|
-
engineExtensions/tools/CuttingTool.js, line
|
|
2726
|
+
engineExtensions/tools/CuttingTool.js, line 673
|
|
2633
2727
|
</div>
|
|
2634
2728
|
|
|
2635
2729
|
</div>
|
|
@@ -2640,7 +2734,8 @@ cutTool.removeAll();</code></pre>
|
|
|
2640
2734
|
|
|
2641
2735
|
|
|
2642
2736
|
<div class="description">
|
|
2643
|
-
<p
|
|
2737
|
+
<p>控制已创建辅助剖切面或辅助裁剪体的显隐状态。<a id='showCuttingPlane'/>
|
|
2738
|
+
在新增模型裁剪面时,辅助面的初始显隐仍需通过 <code>options.showCuttingPlane</code> 配置。</p>
|
|
2644
2739
|
</div>
|
|
2645
2740
|
|
|
2646
2741
|
|
|
@@ -2702,7 +2797,7 @@ cutTool.removeAll();</code></pre>
|
|
|
2702
2797
|
|
|
2703
2798
|
|
|
2704
2799
|
|
|
2705
|
-
<p
|
|
2800
|
+
<p><code>true</code> 表示显示全部辅助剖切面(体),<code>false</code> 表示隐藏全部辅助剖切面(体)。</p></td>
|
|
2706
2801
|
</tr>
|
|
2707
2802
|
|
|
2708
2803
|
|
|
@@ -2763,7 +2858,7 @@ cutTool.removeAll();</code></pre>
|
|
|
2763
2858
|
|
|
2764
2859
|
|
|
2765
2860
|
<footer>
|
|
2766
|
-
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc</a> on
|
|
2861
|
+
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc</a> on Sat Sep 12 2026 11:55:59 GMT+0800 (中国标准时间)
|
|
2767
2862
|
</footer>
|
|
2768
2863
|
</div>
|
|
2769
2864
|
</div>
|