@mapgis/webclient-cesium-plugin 17.8.1 → 17.10.10
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 -482
- 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 +93 -42
- 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
|
@@ -71,8 +71,6 @@
|
|
|
71
71
|
|
|
72
72
|
</h2>
|
|
73
73
|
|
|
74
|
-
<div class="class-description"><p>ShadowRateAnalysis</p></div>
|
|
75
|
-
|
|
76
74
|
</header>
|
|
77
75
|
|
|
78
76
|
<article>
|
|
@@ -85,12 +83,12 @@
|
|
|
85
83
|
<div class="nameContainer">
|
|
86
84
|
<h4 class="name" id="ShadowRateAnalysis">
|
|
87
85
|
|
|
88
|
-
new ShadowRateAnalysis<span class="signature">(viewer, options)</span>
|
|
86
|
+
new ShadowRateAnalysis<span class="signature">(viewer, <span class="optional">options</span>)</span>
|
|
89
87
|
</h4>
|
|
90
88
|
|
|
91
89
|
|
|
92
90
|
<div class="tag-source">
|
|
93
|
-
engineExtensions/analysis/ShadowRateAnalysis.js, line
|
|
91
|
+
engineExtensions/analysis/ShadowRateAnalysis.js, line 139
|
|
94
92
|
</div>
|
|
95
93
|
|
|
96
94
|
</div>
|
|
@@ -100,6 +98,13 @@
|
|
|
100
98
|
<dd>
|
|
101
99
|
|
|
102
100
|
|
|
101
|
+
<div class="description">
|
|
102
|
+
<p>阴影率分析工具。</p>
|
|
103
|
+
<p>该类用于在指定时间范围内,对一个多边形区域内不同高度的采样点进行逐时刻阴影检测,
|
|
104
|
+
并将阴影率结果以点元颜色的方式绘制到场景中。分析过程中会临时接管 <code>viewer</code> 的阴影、光照和时钟配置,
|
|
105
|
+
在分析结束或日照播放结束后恢复原始状态。</p>
|
|
106
|
+
</div>
|
|
107
|
+
|
|
103
108
|
|
|
104
109
|
|
|
105
110
|
|
|
@@ -118,6 +123,8 @@
|
|
|
118
123
|
<th>Type</th>
|
|
119
124
|
|
|
120
125
|
|
|
126
|
+
<th>Default</th>
|
|
127
|
+
|
|
121
128
|
|
|
122
129
|
<th class="last">Description</th>
|
|
123
130
|
</tr>
|
|
@@ -134,17 +141,27 @@
|
|
|
134
141
|
<td class="type">
|
|
135
142
|
|
|
136
143
|
|
|
137
|
-
<span class="param-type">
|
|
144
|
+
<span class="param-type"><a href="Cesium.Viewer.html">Cesium.Viewer</a></span>
|
|
138
145
|
|
|
139
146
|
|
|
140
147
|
|
|
141
148
|
</td>
|
|
142
149
|
|
|
143
150
|
|
|
151
|
+
<td class="default">
|
|
152
|
+
|
|
153
|
+
</td>
|
|
154
|
+
|
|
144
155
|
|
|
145
156
|
<td class="description last">
|
|
146
157
|
|
|
147
|
-
|
|
158
|
+
|
|
159
|
+
|
|
160
|
+
|
|
161
|
+
|
|
162
|
+
|
|
163
|
+
<p>三维场景视图对象。通常可通过 <code>new Cesium.Viewer(...)</code> 创建获得,
|
|
164
|
+
也可在 <code>SceneView</code>的'底层引擎视图对象创建完毕事件(innerView-created)'回调的event.innerView参数中获取。分析过程中会基于该对象的场景、时钟和 Primitive 集合执行计算与绘制。</p></td>
|
|
148
165
|
</tr>
|
|
149
166
|
|
|
150
167
|
|
|
@@ -164,10 +181,23 @@
|
|
|
164
181
|
</td>
|
|
165
182
|
|
|
166
183
|
|
|
184
|
+
<td class="default">
|
|
185
|
+
|
|
186
|
+
{}
|
|
187
|
+
|
|
188
|
+
</td>
|
|
189
|
+
|
|
167
190
|
|
|
168
191
|
<td class="description last">
|
|
169
192
|
|
|
170
|
-
|
|
193
|
+
|
|
194
|
+
<span class="optional"> 可选</span>
|
|
195
|
+
|
|
196
|
+
|
|
197
|
+
|
|
198
|
+
|
|
199
|
+
|
|
200
|
+
<p>阴影率分析配置项。</p>
|
|
171
201
|
|
|
172
202
|
|
|
173
203
|
<table class="params">
|
|
@@ -198,7 +228,7 @@
|
|
|
198
228
|
<td class="type">
|
|
199
229
|
|
|
200
230
|
|
|
201
|
-
<span class="param-type">Array.<Cartesian3></span>
|
|
231
|
+
<span class="param-type">Array.<Cesium.Cartesian3></span>
|
|
202
232
|
|
|
203
233
|
|
|
204
234
|
|
|
@@ -207,6 +237,8 @@
|
|
|
207
237
|
|
|
208
238
|
<td class="default">
|
|
209
239
|
|
|
240
|
+
[]
|
|
241
|
+
|
|
210
242
|
</td>
|
|
211
243
|
|
|
212
244
|
|
|
@@ -219,7 +251,7 @@
|
|
|
219
251
|
|
|
220
252
|
|
|
221
253
|
|
|
222
|
-
<p
|
|
254
|
+
<p>分析区域顶点数组,使用世界坐标 <code>Cartesian3</code> 表示。通常可直接使用交互绘制面要素时返回的顶点结果。</p></td>
|
|
223
255
|
</tr>
|
|
224
256
|
|
|
225
257
|
|
|
@@ -232,7 +264,7 @@
|
|
|
232
264
|
<td class="type">
|
|
233
265
|
|
|
234
266
|
|
|
235
|
-
<span class="param-type">JulianDate</span>
|
|
267
|
+
<span class="param-type">Cesium.JulianDate</span>
|
|
236
268
|
|
|
237
269
|
|
|
238
270
|
|
|
@@ -253,7 +285,7 @@
|
|
|
253
285
|
|
|
254
286
|
|
|
255
287
|
|
|
256
|
-
<p
|
|
288
|
+
<p>分析时间段开始时间。执行 <code>shadowRate</code> 或 <code>sunLightEffect</code> 前应确保已设置该值。</p></td>
|
|
257
289
|
</tr>
|
|
258
290
|
|
|
259
291
|
|
|
@@ -266,7 +298,7 @@
|
|
|
266
298
|
<td class="type">
|
|
267
299
|
|
|
268
300
|
|
|
269
|
-
<span class="param-type">JulianDate</span>
|
|
301
|
+
<span class="param-type">Cesium.JulianDate</span>
|
|
270
302
|
|
|
271
303
|
|
|
272
304
|
|
|
@@ -287,7 +319,7 @@
|
|
|
287
319
|
|
|
288
320
|
|
|
289
321
|
|
|
290
|
-
<p
|
|
322
|
+
<p>分析时间段结束时间。执行 <code>shadowRate</code> 或 <code>sunLightEffect</code> 前应确保已设置该值。</p></td>
|
|
291
323
|
</tr>
|
|
292
324
|
|
|
293
325
|
|
|
@@ -323,7 +355,7 @@
|
|
|
323
355
|
|
|
324
356
|
|
|
325
357
|
|
|
326
|
-
<p
|
|
358
|
+
<p>时钟时间倍率,用于控制时间流逝速度。倍率越小分析越精细但耗时越长,倍率越大分析速度越快但结果会更粗略。</p></td>
|
|
327
359
|
</tr>
|
|
328
360
|
|
|
329
361
|
|
|
@@ -359,7 +391,7 @@
|
|
|
359
391
|
|
|
360
392
|
|
|
361
393
|
|
|
362
|
-
<p
|
|
394
|
+
<p>采样点的水平间距与高度步长,单位为米。</p></td>
|
|
363
395
|
</tr>
|
|
364
396
|
|
|
365
397
|
|
|
@@ -395,7 +427,7 @@
|
|
|
395
427
|
|
|
396
428
|
|
|
397
429
|
|
|
398
|
-
<p
|
|
430
|
+
<p>结果点元绘制大小,单位为像素。</p></td>
|
|
399
431
|
</tr>
|
|
400
432
|
|
|
401
433
|
|
|
@@ -408,7 +440,7 @@
|
|
|
408
440
|
<td class="type">
|
|
409
441
|
|
|
410
442
|
|
|
411
|
-
<span class="param-type">Array
|
|
443
|
+
<span class="param-type">Array.<Object></span>
|
|
412
444
|
|
|
413
445
|
|
|
414
446
|
|
|
@@ -429,13 +461,7 @@
|
|
|
429
461
|
|
|
430
462
|
|
|
431
463
|
|
|
432
|
-
<p
|
|
433
|
-
,将阴影率与点元颜色映射,传入方式举例:<br/>
|
|
434
|
-
colorScheme=[<br/>
|
|
435
|
-
{color:'rgba(0, 255, 0, 1)',rate:0},<br/>
|
|
436
|
-
{color:'rgba(255, 255, 0, 1)',rate:0.5},<br/>
|
|
437
|
-
{color:'rgba(255, 0, 0, 1)',rate:1}<br/>
|
|
438
|
-
]</p></td>
|
|
464
|
+
<p>阴影率颜色映射表。每项至少包含 <code>color</code> 与 <code>rate</code> 字段,用于将阴影率映射为点元颜色。</p></td>
|
|
439
465
|
</tr>
|
|
440
466
|
|
|
441
467
|
|
|
@@ -471,7 +497,7 @@ colorScheme=[<br/>
|
|
|
471
497
|
|
|
472
498
|
|
|
473
499
|
|
|
474
|
-
<p
|
|
500
|
+
<p>参与分析的最小采样高度,单位为米。</p></td>
|
|
475
501
|
</tr>
|
|
476
502
|
|
|
477
503
|
|
|
@@ -507,7 +533,7 @@ colorScheme=[<br/>
|
|
|
507
533
|
|
|
508
534
|
|
|
509
535
|
|
|
510
|
-
<p
|
|
536
|
+
<p>参与分析的最大采样高度,单位为米。</p></td>
|
|
511
537
|
</tr>
|
|
512
538
|
|
|
513
539
|
|
|
@@ -560,9 +586,33 @@ colorScheme=[<br/>
|
|
|
560
586
|
|
|
561
587
|
<h5>Example</h5>
|
|
562
588
|
|
|
589
|
+
<p class="code-caption">创建阴影率分析实例并执行分析</p>
|
|
590
|
+
|
|
563
591
|
|
|
564
592
|
|
|
565
|
-
<pre class="prettyprint"><code>const { ShadowRateAnalysis } = zondy.cesium
|
|
566
593
|
startTime: Cesium.JulianDate.fromDate(startTimeDate),
|
|
567
594
|
endTime: Cesium.JulianDate.fromDate(endTimeDate),
|
|
568
595
|
spacing: 5,
|
|
569
596
|
pointSize: 10,
|
|
570
597
|
minHeight: 10,
|
|
571
598
|
maxHeight: 50,
|
|
572
599
|
});
|
|
573
600
|
name: 'build',
|
|
574
601
|
position: Cesium.Cartesian3.fromDegrees(115.1771, 20.2834, 500),
|
|
575
602
|
model: {
|
|
576
603
|
uri: '../../SampleData/models/Building/build.glb',
|
|
577
604
|
heightReference: Cesium.HeightReference.CLAMP_TO_GROUND,
|
|
578
605
|
minimumPixelSize: 10,
|
|
579
606
|
scale: 200
|
|
580
607
|
}
|
|
581
608
|
});
|
|
582
609
|
destination: Cesium.Cartesian3.fromDegrees(115.1771, 20.2834, 1000), //经度,纬度,视角高度
|
|
583
610
|
duration: 0
|
|
584
611
|
});
|
|
585
612
|
{
|
|
586
613
|
"x": -2545958.6505201817,
|
|
587
614
|
"y": 5416460.046735503,
|
|
588
615
|
"z": 2197304.570977404
|
|
589
616
|
},
|
|
590
617
|
{
|
|
591
618
|
"x": -2546028.547171191,
|
|
592
619
|
"y": 5416621.283669859,
|
|
593
620
|
"z": 2196829.2727668337
|
|
594
621
|
},
|
|
595
622
|
{
|
|
596
623
|
"x": -2546502.8935825536,
|
|
597
624
|
"y": 5416402.67652554,
|
|
598
625
|
"z": 2196818.5454125707
|
|
599
626
|
},
|
|
600
627
|
{
|
|
601
628
|
"x": -2546411.1078572497,
|
|
602
629
|
"y": 5416239.747866453,
|
|
603
630
|
"z": 2197323.1835109163
|
|
604
631
|
},
|
|
605
632
|
{
|
|
606
633
|
"x": -2545958.6505201817,
|
|
607
634
|
"y": 5416460.046735503,
|
|
608
635
|
"z": 2197304.570977404
|
|
609
636
|
}
|
|
637
|
+
<pre class="prettyprint"><code>// ES5 引入方式
|
|
638
|
+
const { ShadowRateAnalysis } = zondy.cesium
|
|
639
|
+
|
|
640
|
+
// ES6 引入方式
|
|
641
|
+
import { ShadowRateAnalysis } from '@mapgis/webclient-cesium-plugin'
|
|
642
|
+
|
|
643
|
+
const startTimeDate = new Date('2024/04/01 05:00:00')
|
|
644
|
+
const endTimeDate = new Date('2024/04/01 15:00:00')
|
|
645
|
+
|
|
646
|
+
const analysis = new ShadowRateAnalysis(viewer, {
|
|
647
|
+
startTime: Cesium.JulianDate.fromDate(startTimeDate),
|
|
648
|
+
endTime: Cesium.JulianDate.fromDate(endTimeDate),
|
|
649
|
+
spacing: 5,
|
|
650
|
+
pointSize: 10,
|
|
651
|
+
minHeight: 10,
|
|
652
|
+
maxHeight: 50,
|
|
653
|
+
})
|
|
654
|
+
|
|
655
|
+
analysis.pointsArray = points
|
|
656
|
+
analysis.shadowRate()
|
|
657
|
+
|
|
658
|
+
如需仅播放日照效果,可调用:
|
|
659
|
+
analysis.sunLightEffect()</code></pre>
|
|
610
660
|
|
|
611
661
|
|
|
612
662
|
|
|
@@ -588,7 +638,7 @@ colorScheme=[<br/>
|
|
|
588
638
|
|
|
589
639
|
<dt>
|
|
590
640
|
<div class="nameContainer">
|
|
591
|
-
<h4 class="name" id="colorScheme">colorScheme<span class="type-signature type array">Array
|
|
641
|
+
<h4 class="name" id="colorScheme">colorScheme<span class="type-signature type array.<object>">Array.<Object></span> </h4>
|
|
592
642
|
</div>
|
|
593
643
|
|
|
594
644
|
|
|
@@ -596,7 +646,8 @@ colorScheme=[<br/>
|
|
|
596
646
|
<dd>
|
|
597
647
|
|
|
598
648
|
<div class="description">
|
|
599
|
-
<p
|
|
649
|
+
<p>阴影率颜色映射表。</p>
|
|
650
|
+
<p>数组项通常包含 <code>color</code> 与 <code>rate</code> 字段,用于将阴影率结果映射为结果点元颜色。</p>
|
|
600
651
|
</div>
|
|
601
652
|
|
|
602
653
|
|
|
@@ -633,7 +684,7 @@ colorScheme=[<br/>
|
|
|
633
684
|
|
|
634
685
|
<dt>
|
|
635
686
|
<div class="nameContainer">
|
|
636
|
-
<h4 class="name" id="endTime">endTime<span class="type-signature type juliandate">JulianDate</span> </h4>
|
|
687
|
+
<h4 class="name" id="endTime">endTime<span class="type-signature type cesium.juliandate">Cesium.JulianDate</span> </h4>
|
|
637
688
|
</div>
|
|
638
689
|
|
|
639
690
|
|
|
@@ -641,7 +692,8 @@ colorScheme=[<br/>
|
|
|
641
692
|
<dd>
|
|
642
693
|
|
|
643
694
|
<div class="description">
|
|
644
|
-
<p
|
|
695
|
+
<p>阴影率分析或日照播放的结束时间。</p>
|
|
696
|
+
<p>该属性会直接用于设置 <code>viewer.clock.stopTime</code>,决定本次分析的总时长。</p>
|
|
645
697
|
</div>
|
|
646
698
|
|
|
647
699
|
|
|
@@ -686,7 +738,8 @@ colorScheme=[<br/>
|
|
|
686
738
|
<dd>
|
|
687
739
|
|
|
688
740
|
<div class="description">
|
|
689
|
-
<p
|
|
741
|
+
<p>参与分析的最大采样高度。</p>
|
|
742
|
+
<p>该值决定三维采样点集的终止高度,单位为米。</p>
|
|
690
743
|
</div>
|
|
691
744
|
|
|
692
745
|
|
|
@@ -731,7 +784,8 @@ colorScheme=[<br/>
|
|
|
731
784
|
<dd>
|
|
732
785
|
|
|
733
786
|
<div class="description">
|
|
734
|
-
<p
|
|
787
|
+
<p>参与分析的最小采样高度。</p>
|
|
788
|
+
<p>该值决定三维采样点集的起始高度,单位为米。</p>
|
|
735
789
|
</div>
|
|
736
790
|
|
|
737
791
|
|
|
@@ -776,7 +830,8 @@ colorScheme=[<br/>
|
|
|
776
830
|
<dd>
|
|
777
831
|
|
|
778
832
|
<div class="description">
|
|
779
|
-
<p
|
|
833
|
+
<p>分析或播放过程使用的时钟时间倍率。</p>
|
|
834
|
+
<p>值越小,时间推进越细,阴影率结果通常越精确但执行耗时越长。</p>
|
|
780
835
|
</div>
|
|
781
836
|
|
|
782
837
|
|
|
@@ -813,7 +868,7 @@ colorScheme=[<br/>
|
|
|
813
868
|
|
|
814
869
|
<dt>
|
|
815
870
|
<div class="nameContainer">
|
|
816
|
-
<h4 class="name" id="
|
|
871
|
+
<h4 class="name" id="pointSize">pointSize<span class="type-signature type number">Number</span> </h4>
|
|
817
872
|
</div>
|
|
818
873
|
|
|
819
874
|
|
|
@@ -821,7 +876,8 @@ colorScheme=[<br/>
|
|
|
821
876
|
<dd>
|
|
822
877
|
|
|
823
878
|
<div class="description">
|
|
824
|
-
<p
|
|
879
|
+
<p>结果点元的显示大小。</p>
|
|
880
|
+
<p>该值仅影响分析结果的可视化表现,单位为像素。</p>
|
|
825
881
|
</div>
|
|
826
882
|
|
|
827
883
|
|
|
@@ -858,7 +914,7 @@ colorScheme=[<br/>
|
|
|
858
914
|
|
|
859
915
|
<dt>
|
|
860
916
|
<div class="nameContainer">
|
|
861
|
-
<h4 class="name" id="
|
|
917
|
+
<h4 class="name" id="pointsArray">pointsArray<span class="type-signature type array.<cesium.cartesian3>">Array.<Cesium.Cartesian3></span> </h4>
|
|
862
918
|
</div>
|
|
863
919
|
|
|
864
920
|
|
|
@@ -866,7 +922,8 @@ colorScheme=[<br/>
|
|
|
866
922
|
<dd>
|
|
867
923
|
|
|
868
924
|
<div class="description">
|
|
869
|
-
<p
|
|
925
|
+
<p>当前分析范围的顶点数组。</p>
|
|
926
|
+
<p>该属性用于定义参与阴影率分析的多边形边界,坐标值应为 <code>Cesium.Cartesian3</code> 世界坐标数组。</p>
|
|
870
927
|
</div>
|
|
871
928
|
|
|
872
929
|
|
|
@@ -911,7 +968,8 @@ colorScheme=[<br/>
|
|
|
911
968
|
<dd>
|
|
912
969
|
|
|
913
970
|
<div class="description">
|
|
914
|
-
<p
|
|
971
|
+
<p>采样点间距与高度步长。</p>
|
|
972
|
+
<p>该值同时影响平面格网密度和垂向采样层间距,单位为米。</p>
|
|
915
973
|
</div>
|
|
916
974
|
|
|
917
975
|
|
|
@@ -948,7 +1006,7 @@ colorScheme=[<br/>
|
|
|
948
1006
|
|
|
949
1007
|
<dt>
|
|
950
1008
|
<div class="nameContainer">
|
|
951
|
-
<h4 class="name" id="startTime">startTime<span class="type-signature type juliandate">JulianDate</span> </h4>
|
|
1009
|
+
<h4 class="name" id="startTime">startTime<span class="type-signature type cesium.juliandate">Cesium.JulianDate</span> </h4>
|
|
952
1010
|
</div>
|
|
953
1011
|
|
|
954
1012
|
|
|
@@ -956,7 +1014,8 @@ colorScheme=[<br/>
|
|
|
956
1014
|
<dd>
|
|
957
1015
|
|
|
958
1016
|
<div class="description">
|
|
959
|
-
<p
|
|
1017
|
+
<p>阴影率分析或日照播放的开始时间。</p>
|
|
1018
|
+
<p>该属性会直接用于设置 <code>viewer.clock.startTime</code> 与 <code>viewer.clock.currentTime</code>。</p>
|
|
960
1019
|
</div>
|
|
961
1020
|
|
|
962
1021
|
|
|
@@ -1003,12 +1062,12 @@ colorScheme=[<br/>
|
|
|
1003
1062
|
<div class="nameContainer">
|
|
1004
1063
|
<h4 class="name" id="clear">
|
|
1005
1064
|
|
|
1006
|
-
clear<span class="signature">()</span>
|
|
1065
|
+
clear<span class="signature">()</span><span class="glyphicon glyphicon-circle-arrow-right"></span><span class="type-signature returnType">{void}</span>
|
|
1007
1066
|
</h4>
|
|
1008
1067
|
|
|
1009
1068
|
|
|
1010
1069
|
<div class="tag-source">
|
|
1011
|
-
engineExtensions/analysis/ShadowRateAnalysis.js, line
|
|
1070
|
+
engineExtensions/analysis/ShadowRateAnalysis.js, line 421
|
|
1012
1071
|
</div>
|
|
1013
1072
|
|
|
1014
1073
|
</div>
|
|
@@ -1019,7 +1078,8 @@ colorScheme=[<br/>
|
|
|
1019
1078
|
|
|
1020
1079
|
|
|
1021
1080
|
<div class="description">
|
|
1022
|
-
<p
|
|
1081
|
+
<p>清空当前分析结果的点元绘制内容。</p>
|
|
1082
|
+
<p>该方法只移除当前实例绘制到场景中的结果点,不会重置分析参数。</p>
|
|
1023
1083
|
</div>
|
|
1024
1084
|
|
|
1025
1085
|
|
|
@@ -1064,6 +1124,35 @@ colorScheme=[<br/>
|
|
|
1064
1124
|
|
|
1065
1125
|
|
|
1066
1126
|
|
|
1127
|
+
<h5>Returns:</h5>
|
|
1128
|
+
|
|
1129
|
+
|
|
1130
|
+
|
|
1131
|
+
<table class="params">
|
|
1132
|
+
<thead>
|
|
1133
|
+
<tr>
|
|
1134
|
+
|
|
1135
|
+
<th>Type</th>
|
|
1136
|
+
<th class="last">Description</th>
|
|
1137
|
+
</tr>
|
|
1138
|
+
</thead>
|
|
1139
|
+
<tbody>
|
|
1140
|
+
|
|
1141
|
+
<tr>
|
|
1142
|
+
|
|
1143
|
+
<td class="type">
|
|
1144
|
+
|
|
1145
|
+
void
|
|
1146
|
+
|
|
1147
|
+
|
|
1148
|
+
</td>
|
|
1149
|
+
<td class="description last"></td>
|
|
1150
|
+
</tr>
|
|
1151
|
+
|
|
1152
|
+
</tbody>
|
|
1153
|
+
</table>
|
|
1154
|
+
|
|
1155
|
+
|
|
1067
1156
|
|
|
1068
1157
|
|
|
1069
1158
|
</dd>
|
|
@@ -1074,12 +1163,12 @@ colorScheme=[<br/>
|
|
|
1074
1163
|
<div class="nameContainer">
|
|
1075
1164
|
<h4 class="name" id="destroy">
|
|
1076
1165
|
|
|
1077
|
-
destroy<span class="signature">()</span>
|
|
1166
|
+
destroy<span class="signature">()</span><span class="glyphicon glyphicon-circle-arrow-right"></span><span class="type-signature returnType">{void}</span>
|
|
1078
1167
|
</h4>
|
|
1079
1168
|
|
|
1080
1169
|
|
|
1081
1170
|
<div class="tag-source">
|
|
1082
|
-
engineExtensions/analysis/ShadowRateAnalysis.js, line
|
|
1171
|
+
engineExtensions/analysis/ShadowRateAnalysis.js, line 433
|
|
1083
1172
|
</div>
|
|
1084
1173
|
|
|
1085
1174
|
</div>
|
|
@@ -1090,7 +1179,8 @@ colorScheme=[<br/>
|
|
|
1090
1179
|
|
|
1091
1180
|
|
|
1092
1181
|
<div class="description">
|
|
1093
|
-
<p
|
|
1182
|
+
<p>销毁阴影率分析实例。</p>
|
|
1183
|
+
<p>调用后会将该实例创建的点元集合从场景中移除,并释放对象引用;销毁后的实例不应继续使用。</p>
|
|
1094
1184
|
</div>
|
|
1095
1185
|
|
|
1096
1186
|
|
|
@@ -1135,6 +1225,35 @@ colorScheme=[<br/>
|
|
|
1135
1225
|
|
|
1136
1226
|
|
|
1137
1227
|
|
|
1228
|
+
<h5>Returns:</h5>
|
|
1229
|
+
|
|
1230
|
+
|
|
1231
|
+
|
|
1232
|
+
<table class="params">
|
|
1233
|
+
<thead>
|
|
1234
|
+
<tr>
|
|
1235
|
+
|
|
1236
|
+
<th>Type</th>
|
|
1237
|
+
<th class="last">Description</th>
|
|
1238
|
+
</tr>
|
|
1239
|
+
</thead>
|
|
1240
|
+
<tbody>
|
|
1241
|
+
|
|
1242
|
+
<tr>
|
|
1243
|
+
|
|
1244
|
+
<td class="type">
|
|
1245
|
+
|
|
1246
|
+
void
|
|
1247
|
+
|
|
1248
|
+
|
|
1249
|
+
</td>
|
|
1250
|
+
<td class="description last"></td>
|
|
1251
|
+
</tr>
|
|
1252
|
+
|
|
1253
|
+
</tbody>
|
|
1254
|
+
</table>
|
|
1255
|
+
|
|
1256
|
+
|
|
1138
1257
|
|
|
1139
1258
|
|
|
1140
1259
|
</dd>
|
|
@@ -1145,12 +1264,12 @@ colorScheme=[<br/>
|
|
|
1145
1264
|
<div class="nameContainer">
|
|
1146
1265
|
<h4 class="name" id="shadowRate">
|
|
1147
1266
|
|
|
1148
|
-
shadowRate<span class="signature">()</span>
|
|
1267
|
+
shadowRate<span class="signature">()</span><span class="glyphicon glyphicon-circle-arrow-right"></span><span class="type-signature returnType">{void}</span>
|
|
1149
1268
|
</h4>
|
|
1150
1269
|
|
|
1151
1270
|
|
|
1152
1271
|
<div class="tag-source">
|
|
1153
|
-
engineExtensions/analysis/ShadowRateAnalysis.js, line
|
|
1272
|
+
engineExtensions/analysis/ShadowRateAnalysis.js, line 231
|
|
1154
1273
|
</div>
|
|
1155
1274
|
|
|
1156
1275
|
</div>
|
|
@@ -1161,7 +1280,10 @@ colorScheme=[<br/>
|
|
|
1161
1280
|
|
|
1162
1281
|
|
|
1163
1282
|
<div class="description">
|
|
1164
|
-
<p
|
|
1283
|
+
<p>执行阴影率分析并绘制结果点。</p>
|
|
1284
|
+
<p>调用前应确保 <code>pointsArray</code>、<code>startTime</code> 和 <code>endTime</code> 已正确设置。
|
|
1285
|
+
该方法会根据分析范围与高度范围生成采样点,驱动 GPU 模块逐时刻统计阴影结果,
|
|
1286
|
+
并在分析结束后将结果以点元颜色绘制到场景中。</p>
|
|
1165
1287
|
</div>
|
|
1166
1288
|
|
|
1167
1289
|
|
|
@@ -1206,6 +1328,35 @@ colorScheme=[<br/>
|
|
|
1206
1328
|
|
|
1207
1329
|
|
|
1208
1330
|
|
|
1331
|
+
<h5>Returns:</h5>
|
|
1332
|
+
|
|
1333
|
+
|
|
1334
|
+
|
|
1335
|
+
<table class="params">
|
|
1336
|
+
<thead>
|
|
1337
|
+
<tr>
|
|
1338
|
+
|
|
1339
|
+
<th>Type</th>
|
|
1340
|
+
<th class="last">Description</th>
|
|
1341
|
+
</tr>
|
|
1342
|
+
</thead>
|
|
1343
|
+
<tbody>
|
|
1344
|
+
|
|
1345
|
+
<tr>
|
|
1346
|
+
|
|
1347
|
+
<td class="type">
|
|
1348
|
+
|
|
1349
|
+
void
|
|
1350
|
+
|
|
1351
|
+
|
|
1352
|
+
</td>
|
|
1353
|
+
<td class="description last"></td>
|
|
1354
|
+
</tr>
|
|
1355
|
+
|
|
1356
|
+
</tbody>
|
|
1357
|
+
</table>
|
|
1358
|
+
|
|
1359
|
+
|
|
1209
1360
|
|
|
1210
1361
|
|
|
1211
1362
|
</dd>
|
|
@@ -1216,12 +1367,12 @@ colorScheme=[<br/>
|
|
|
1216
1367
|
<div class="nameContainer">
|
|
1217
1368
|
<h4 class="name" id="sunLightEffect">
|
|
1218
1369
|
|
|
1219
|
-
sunLightEffect<span class="signature">()</span>
|
|
1370
|
+
sunLightEffect<span class="signature">()</span><span class="glyphicon glyphicon-circle-arrow-right"></span><span class="type-signature returnType">{void}</span>
|
|
1220
1371
|
</h4>
|
|
1221
1372
|
|
|
1222
1373
|
|
|
1223
1374
|
<div class="tag-source">
|
|
1224
|
-
engineExtensions/analysis/ShadowRateAnalysis.js, line
|
|
1375
|
+
engineExtensions/analysis/ShadowRateAnalysis.js, line 294
|
|
1225
1376
|
</div>
|
|
1226
1377
|
|
|
1227
1378
|
</div>
|
|
@@ -1232,7 +1383,9 @@ colorScheme=[<br/>
|
|
|
1232
1383
|
|
|
1233
1384
|
|
|
1234
1385
|
<div class="description">
|
|
1235
|
-
<p
|
|
1386
|
+
<p>播放指定时间段内的日照阴影效果。</p>
|
|
1387
|
+
<p>该方法不会计算阴影率统计结果,而是仅驱动场景时钟播放日照变化,
|
|
1388
|
+
并在播放结束后恢复分析前的阴影和光照状态。</p>
|
|
1236
1389
|
</div>
|
|
1237
1390
|
|
|
1238
1391
|
|
|
@@ -1277,6 +1430,35 @@ colorScheme=[<br/>
|
|
|
1277
1430
|
|
|
1278
1431
|
|
|
1279
1432
|
|
|
1433
|
+
<h5>Returns:</h5>
|
|
1434
|
+
|
|
1435
|
+
|
|
1436
|
+
|
|
1437
|
+
<table class="params">
|
|
1438
|
+
<thead>
|
|
1439
|
+
<tr>
|
|
1440
|
+
|
|
1441
|
+
<th>Type</th>
|
|
1442
|
+
<th class="last">Description</th>
|
|
1443
|
+
</tr>
|
|
1444
|
+
</thead>
|
|
1445
|
+
<tbody>
|
|
1446
|
+
|
|
1447
|
+
<tr>
|
|
1448
|
+
|
|
1449
|
+
<td class="type">
|
|
1450
|
+
|
|
1451
|
+
void
|
|
1452
|
+
|
|
1453
|
+
|
|
1454
|
+
</td>
|
|
1455
|
+
<td class="description last"></td>
|
|
1456
|
+
</tr>
|
|
1457
|
+
|
|
1458
|
+
</tbody>
|
|
1459
|
+
</table>
|
|
1460
|
+
|
|
1461
|
+
|
|
1280
1462
|
|
|
1281
1463
|
|
|
1282
1464
|
</dd>
|
|
@@ -1295,7 +1477,7 @@ colorScheme=[<br/>
|
|
|
1295
1477
|
|
|
1296
1478
|
|
|
1297
1479
|
<footer>
|
|
1298
|
-
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc</a> on Fri
|
|
1480
|
+
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc</a> on Fri Sep 18 2026 14:59:30 GMT+0800 (中国标准时间)
|
|
1299
1481
|
</footer>
|
|
1300
1482
|
</div>
|
|
1301
1483
|
</div>
|