@mapgis/webclient-cesium-plugin 17.2.4 → 17.2.6

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.
@@ -0,0 +1,1053 @@
1
+ <header id="page-title" class="page-title">
2
+
3
+ <span class="page-title-main">类名</span>
4
+ <span class="page-title-sub">ModelFilterTool</span>
5
+
6
+ </header>
7
+
8
+
9
+
10
+
11
+
12
+ <section>
13
+
14
+ <article>
15
+ <div class="container-overview">
16
+
17
+
18
+ <div class='vertical-section'>
19
+ <div class="members">
20
+ <div class="member">
21
+
22
+
23
+
24
+
25
+ <h4 class="name" id="ModelFilterTool">
26
+ <a class="href-link" href="#ModelFilterTool">#</a>
27
+
28
+ <span class="code-name" id="ModelFilterTool" style="font-size:30px">
29
+
30
+ new ModelFilterTool<span class="signature">(layer<span class="signature-attributes">opt</span>, options<span class="signature-attributes">opt</span>)</span>
31
+
32
+ </span>
33
+ </h4>
34
+
35
+
36
+
37
+ <div class="description">
38
+ <p>模型空间过滤工具</p>
39
+ </div>
40
+
41
+
42
+
43
+
44
+
45
+
46
+
47
+
48
+
49
+
50
+ <h4>参数</h4>
51
+
52
+ <div class="table-container">
53
+ <table class="params table">
54
+ <thead>
55
+ <tr>
56
+
57
+ <th>名称</th>
58
+
59
+
60
+ <th>类型</th>
61
+
62
+
63
+ <th style="min-width: 100px;">默认值</th>
64
+
65
+
66
+ <th class="last">描述</th>
67
+ </tr>
68
+ </thead>
69
+
70
+ <tbody>
71
+
72
+
73
+
74
+ <tr class="deep-level-0">
75
+
76
+ <td class="name"><code>layer</code></td>
77
+
78
+
79
+ <td class="type">
80
+
81
+
82
+ <span class="param-type">
83
+
84
+ <a link="MapGISM3DSet.html" onclick="getTypeHTML(event)" class="mapgis-link-name" title="MapGISM3DSet" MapGISM3DSet.html>MapGISM3DSet</a>
85
+
86
+ </span>
87
+
88
+
89
+
90
+
91
+ </td>
92
+
93
+
94
+ <td class="default">
95
+
96
+ {}
97
+
98
+ </td>
99
+
100
+
101
+ <td class="description last"><p>MapGISM3DSet对象</p></td>
102
+ </tr>
103
+
104
+
105
+
106
+
107
+
108
+
109
+ <tr class="deep-level-0">
110
+
111
+ <td class="name"><code>options</code></td>
112
+
113
+
114
+ <td class="type">
115
+
116
+
117
+ <span class="param-type">
118
+
119
+ Object
120
+
121
+ </span>
122
+
123
+
124
+
125
+
126
+ </td>
127
+
128
+
129
+ <td class="default">
130
+
131
+ {}
132
+
133
+ </td>
134
+
135
+
136
+ <td class="description last"><p>额外初始化参数</p></td>
137
+ </tr>
138
+
139
+
140
+
141
+
142
+ <tr class="deep-level-1">
143
+
144
+ <td class="name"><code>enableFrameFunction</code></td>
145
+
146
+
147
+ <td class="type">
148
+
149
+
150
+ <span class="param-type">
151
+
152
+ Boolean
153
+
154
+ </span>
155
+
156
+
157
+
158
+
159
+ </td>
160
+
161
+
162
+ <td class="default">
163
+
164
+ true
165
+
166
+ </td>
167
+
168
+
169
+ <td class="description last"><p>启用帧函数,即每一帧执行过滤操作,针对lod的模型实时过滤</p></td>
170
+ </tr>
171
+
172
+
173
+
174
+
175
+ <tr class="deep-level-1">
176
+
177
+ <td class="name"><code>enableCartesian</code></td>
178
+
179
+
180
+ <td class="type">
181
+
182
+
183
+ <span class="param-type">
184
+
185
+ Boolean
186
+
187
+ </span>
188
+
189
+
190
+
191
+
192
+ </td>
193
+
194
+
195
+ <td class="default">
196
+
197
+ false
198
+
199
+ </td>
200
+
201
+
202
+ <td class="description last"><p>是否使用笛卡尔坐标,[cartesian3,cartesian3,cartesian3,...]</p></td>
203
+ </tr>
204
+
205
+
206
+
207
+
208
+
209
+
210
+
211
+ </tbody>
212
+ </table>
213
+ </div>
214
+
215
+
216
+
217
+
218
+
219
+
220
+ <dl class="details">
221
+
222
+
223
+
224
+
225
+
226
+
227
+
228
+
229
+
230
+
231
+
232
+
233
+
234
+
235
+
236
+
237
+
238
+
239
+
240
+
241
+
242
+
243
+
244
+
245
+
246
+
247
+
248
+
249
+
250
+
251
+
252
+ </dl>
253
+
254
+
255
+
256
+
257
+
258
+
259
+
260
+
261
+
262
+
263
+
264
+
265
+
266
+
267
+
268
+
269
+
270
+
271
+
272
+
273
+
274
+
275
+
276
+ <h5>示例</h5>
277
+
278
+ <p class="code-caption"><h7>模型空间过滤</h7></p>
279
+
280
+
281
+ <pre class="prettyprint"><code>// 参考示例:
282
+ http://192.168.82.91:8086/#/modules/cesium/analyse/modelAnalyse/model-filter
283
+
284
+ // ES5引入方式
285
+ const { ModelFilterTool } = zondy.cesium
286
+ // ES6引入方式
287
+ import { ModelFilterTool } from "@mapgis/webclient-cesium-plugin"
288
+
289
+ // 1 初始化模型空间过滤工具
290
+ const modelFilterTool = new zondy.cesium.ModelFilterTool(
291
+ // 获取到的MapGISM3DSet对象
292
+ layer,
293
+ // 额外初始化参数
294
+ {
295
+ //支持输入范围为笛卡尔坐标
296
+ enableCartesian: true
297
+ })
298
+
299
+ // 2 外包盒过滤
300
+ modelFilterTool.filterWithBoundingVolume(
301
+ // 过滤范围,笛卡尔3坐标数组
302
+ []
303
+ )
304
+
305
+ // 3 外包盒过滤,带高度范围
306
+ modelFilterTool.filterWithBoundingVolume(
307
+ // 过滤范围,笛卡尔3坐标数组
308
+ [],
309
+ // 外包盒最小高度
310
+ 10,
311
+ // 外包盒最大高度
312
+ 200
313
+ )
314
+
315
+ // 4 模型中心点过滤
316
+ modelFilterTool.filterWithCenter(
317
+ // 过滤范围,笛卡尔3坐标数组
318
+ []
319
+ )
320
+
321
+ // 5 模型中心点过滤,带高度范围
322
+ modelFilterTool.filterWithCenter(
323
+ // 过滤范围,笛卡尔3坐标数组
324
+ [],
325
+ // 最小高度范围
326
+ 10,
327
+ // 最大高度范围
328
+ 200
329
+ )</code></pre>
330
+
331
+
332
+
333
+
334
+ </div>
335
+ </div>
336
+ </div>
337
+
338
+
339
+ </div>
340
+
341
+
342
+
343
+
344
+
345
+
346
+
347
+
348
+
349
+
350
+
351
+
352
+
353
+
354
+
355
+
356
+ <div class='vertical-section'>
357
+ <h3 id='function'>方法</h3>
358
+ <h4 style="margin-top: 20px;margin-bottom: 20px;">方法概述</h4>
359
+ <div class="members">
360
+ <div class="table-container">
361
+ <table class="params table">
362
+ <thead>
363
+ <tr>
364
+ <th>名称</th>
365
+ <th>返回值类型</th>
366
+ <th>描述</th>
367
+ </tr>
368
+ </thead>
369
+ <tbody>
370
+
371
+ <tr class="deep-level-0">
372
+ <td class="name"><code><a href="#destroy">destroy</a></code></td>
373
+ <td class="name">
374
+ <code>
375
+
376
+ </code>
377
+ </td>
378
+ <td class="name"><code><p>销毁工具</p></code></td>
379
+ </tr>
380
+
381
+ <tr class="deep-level-0">
382
+ <td class="name"><code><a href="#filterWithBoundingVolume">filterWithBoundingVolume</a></code></td>
383
+ <td class="name">
384
+ <code>
385
+
386
+ </code>
387
+ </td>
388
+ <td class="name"><code><p>给定范围,如果模型的BoundingVolume和给定范围相交,则显示模型,否则不显示</p></code></td>
389
+ </tr>
390
+
391
+ <tr class="deep-level-0">
392
+ <td class="name"><code><a href="#filterWithCenter">filterWithCenter</a></code></td>
393
+ <td class="name">
394
+ <code>
395
+
396
+ </code>
397
+ </td>
398
+ <td class="name"><code><p>给定范围,如果模型的中心点在给定范围内,则显示模型,否则不显示</p></code></td>
399
+ </tr>
400
+
401
+ <tr class="deep-level-0">
402
+ <td class="name"><code><a href="#removeFilter">removeFilter</a></code></td>
403
+ <td class="name">
404
+ <code>
405
+
406
+ </code>
407
+ </td>
408
+ <td class="name"><code><p>撤销过滤</p></code></td>
409
+ </tr>
410
+
411
+ </tbody>
412
+ </table>
413
+ </div>
414
+ <h4 style="margin-top: 20px;margin-bottom: 20px;">方法详情</h4>
415
+
416
+ <div class="member">
417
+
418
+
419
+
420
+ <h4 class="name" id="destroy">
421
+ <a class="href-link" href="#destroy">#</a>
422
+
423
+ <span class="code-name" id="destroy" style="font-size:30px">
424
+
425
+ destroy<span class="signature">()</span>
426
+
427
+ </span>
428
+ </h4>
429
+
430
+
431
+
432
+ <div class="description">
433
+ <p>销毁工具</p>
434
+ </div>
435
+
436
+
437
+
438
+
439
+
440
+
441
+
442
+
443
+
444
+
445
+
446
+
447
+
448
+
449
+ <dl class="details">
450
+
451
+
452
+
453
+
454
+
455
+
456
+
457
+
458
+
459
+
460
+
461
+
462
+
463
+
464
+
465
+
466
+
467
+
468
+
469
+
470
+
471
+
472
+
473
+
474
+
475
+
476
+
477
+
478
+
479
+
480
+
481
+ </dl>
482
+
483
+
484
+
485
+
486
+
487
+
488
+
489
+
490
+
491
+
492
+
493
+
494
+
495
+
496
+
497
+
498
+
499
+
500
+
501
+
502
+
503
+
504
+
505
+ </div>
506
+
507
+ <div class="member">
508
+
509
+
510
+
511
+ <h4 class="name" id="filterWithBoundingVolume">
512
+ <a class="href-link" href="#filterWithBoundingVolume">#</a>
513
+
514
+ <span class="code-name" id="filterWithBoundingVolume" style="font-size:30px">
515
+
516
+ filterWithBoundingVolume<span class="signature">(positions<span class="signature-attributes">opt</span>, minHeight<span class="signature-attributes">opt</span>, maxHeight<span class="signature-attributes">opt</span>)</span>
517
+
518
+ </span>
519
+ </h4>
520
+
521
+
522
+
523
+ <div class="description">
524
+ <p>给定范围,如果模型的BoundingVolume和给定范围相交,则显示模型,否则不显示</p>
525
+ </div>
526
+
527
+
528
+
529
+
530
+
531
+
532
+
533
+
534
+
535
+
536
+ <h4>参数</h4>
537
+
538
+ <div class="table-container">
539
+ <table class="params table">
540
+ <thead>
541
+ <tr>
542
+
543
+ <th>名称</th>
544
+
545
+
546
+ <th>类型</th>
547
+
548
+
549
+ <th style="min-width: 100px;">默认值</th>
550
+
551
+
552
+ <th class="last">描述</th>
553
+ </tr>
554
+ </thead>
555
+
556
+ <tbody>
557
+
558
+
559
+
560
+ <tr class="deep-level-0">
561
+
562
+ <td class="name"><code>positions</code></td>
563
+
564
+
565
+ <td class="type">
566
+
567
+
568
+ <span class="param-type">
569
+
570
+ Array.&lt;Cesium.Cartesian3>
571
+
572
+ </span>
573
+
574
+
575
+
576
+
577
+ </td>
578
+
579
+
580
+ <td class="default">
581
+
582
+ []
583
+
584
+ </td>
585
+
586
+
587
+ <td class="description last"><p>给定过滤范围,默认经纬度高程坐标点数组,[Cesium.Cartographic, Cesium.Cartographic, Cesium.Cartographic, ...]</p></td>
588
+ </tr>
589
+
590
+
591
+
592
+
593
+
594
+
595
+ <tr class="deep-level-0">
596
+
597
+ <td class="name"><code>minHeight</code></td>
598
+
599
+
600
+ <td class="type">
601
+
602
+
603
+ <span class="param-type">
604
+
605
+ Number
606
+
607
+ </span>
608
+
609
+
610
+
611
+
612
+ </td>
613
+
614
+
615
+ <td class="default">
616
+
617
+ 0
618
+
619
+ </td>
620
+
621
+
622
+ <td class="description last"><p>过滤最小高度,如果最大或最小高度未传,则不进行高度过滤</p></td>
623
+ </tr>
624
+
625
+
626
+
627
+
628
+
629
+
630
+ <tr class="deep-level-0">
631
+
632
+ <td class="name"><code>maxHeight</code></td>
633
+
634
+
635
+ <td class="type">
636
+
637
+
638
+ <span class="param-type">
639
+
640
+ Number
641
+
642
+ </span>
643
+
644
+
645
+
646
+
647
+ </td>
648
+
649
+
650
+ <td class="default">
651
+
652
+ 0
653
+
654
+ </td>
655
+
656
+
657
+ <td class="description last"><p>过滤最大高度,如果最大或最小高度未传,则不进行高度过滤</p></td>
658
+ </tr>
659
+
660
+
661
+
662
+
663
+ </tbody>
664
+ </table>
665
+ </div>
666
+
667
+
668
+
669
+
670
+
671
+
672
+ <dl class="details">
673
+
674
+
675
+
676
+
677
+
678
+
679
+
680
+
681
+
682
+
683
+
684
+
685
+
686
+
687
+
688
+
689
+
690
+
691
+
692
+
693
+
694
+
695
+
696
+
697
+
698
+
699
+
700
+
701
+
702
+
703
+
704
+ </dl>
705
+
706
+
707
+
708
+
709
+
710
+
711
+
712
+
713
+
714
+
715
+
716
+
717
+
718
+
719
+
720
+
721
+
722
+
723
+
724
+
725
+
726
+
727
+
728
+ </div>
729
+
730
+ <div class="member">
731
+
732
+
733
+
734
+ <h4 class="name" id="filterWithCenter">
735
+ <a class="href-link" href="#filterWithCenter">#</a>
736
+
737
+ <span class="code-name" id="filterWithCenter" style="font-size:30px">
738
+
739
+ filterWithCenter<span class="signature">(positions<span class="signature-attributes">opt</span>, minHeight<span class="signature-attributes">opt</span>, maxHeight<span class="signature-attributes">opt</span>)</span>
740
+
741
+ </span>
742
+ </h4>
743
+
744
+
745
+
746
+ <div class="description">
747
+ <p>给定范围,如果模型的中心点在给定范围内,则显示模型,否则不显示</p>
748
+ </div>
749
+
750
+
751
+
752
+
753
+
754
+
755
+
756
+
757
+
758
+
759
+ <h4>参数</h4>
760
+
761
+ <div class="table-container">
762
+ <table class="params table">
763
+ <thead>
764
+ <tr>
765
+
766
+ <th>名称</th>
767
+
768
+
769
+ <th>类型</th>
770
+
771
+
772
+ <th style="min-width: 100px;">默认值</th>
773
+
774
+
775
+ <th class="last">描述</th>
776
+ </tr>
777
+ </thead>
778
+
779
+ <tbody>
780
+
781
+
782
+
783
+ <tr class="deep-level-0">
784
+
785
+ <td class="name"><code>positions</code></td>
786
+
787
+
788
+ <td class="type">
789
+
790
+
791
+ <span class="param-type">
792
+
793
+ Array.&lt;Cesium.Cartesian3>
794
+
795
+ </span>
796
+
797
+
798
+
799
+
800
+ </td>
801
+
802
+
803
+ <td class="default">
804
+
805
+ []
806
+
807
+ </td>
808
+
809
+
810
+ <td class="description last"><p>给定过滤范围,默认经纬度高程坐标点数组,[Cesium.Cartographic, Cesium.Cartographic, Cesium.Cartographic, ...]</p></td>
811
+ </tr>
812
+
813
+
814
+
815
+
816
+
817
+
818
+ <tr class="deep-level-0">
819
+
820
+ <td class="name"><code>minHeight</code></td>
821
+
822
+
823
+ <td class="type">
824
+
825
+
826
+ <span class="param-type">
827
+
828
+ Number
829
+
830
+ </span>
831
+
832
+
833
+
834
+
835
+ </td>
836
+
837
+
838
+ <td class="default">
839
+
840
+ 0
841
+
842
+ </td>
843
+
844
+
845
+ <td class="description last"><p>过滤最小高度,如果最大或最小高度未传,则不进行高度过滤</p></td>
846
+ </tr>
847
+
848
+
849
+
850
+
851
+
852
+
853
+ <tr class="deep-level-0">
854
+
855
+ <td class="name"><code>maxHeight</code></td>
856
+
857
+
858
+ <td class="type">
859
+
860
+
861
+ <span class="param-type">
862
+
863
+ Number
864
+
865
+ </span>
866
+
867
+
868
+
869
+
870
+ </td>
871
+
872
+
873
+ <td class="default">
874
+
875
+ 0
876
+
877
+ </td>
878
+
879
+
880
+ <td class="description last"><p>过滤最大高度,如果最大或最小高度未传,则不进行高度过滤</p></td>
881
+ </tr>
882
+
883
+
884
+
885
+
886
+ </tbody>
887
+ </table>
888
+ </div>
889
+
890
+
891
+
892
+
893
+
894
+
895
+ <dl class="details">
896
+
897
+
898
+
899
+
900
+
901
+
902
+
903
+
904
+
905
+
906
+
907
+
908
+
909
+
910
+
911
+
912
+
913
+
914
+
915
+
916
+
917
+
918
+
919
+
920
+
921
+
922
+
923
+
924
+
925
+
926
+
927
+ </dl>
928
+
929
+
930
+
931
+
932
+
933
+
934
+
935
+
936
+
937
+
938
+
939
+
940
+
941
+
942
+
943
+
944
+
945
+
946
+
947
+
948
+
949
+
950
+
951
+ </div>
952
+
953
+ <div class="member">
954
+
955
+
956
+
957
+ <h4 class="name" id="removeFilter">
958
+ <a class="href-link" href="#removeFilter">#</a>
959
+
960
+ <span class="code-name" id="removeFilter" style="font-size:30px">
961
+
962
+ removeFilter<span class="signature">()</span>
963
+
964
+ </span>
965
+ </h4>
966
+
967
+
968
+
969
+ <div class="description">
970
+ <p>撤销过滤</p>
971
+ </div>
972
+
973
+
974
+
975
+
976
+
977
+
978
+
979
+
980
+
981
+
982
+
983
+
984
+
985
+
986
+ <dl class="details">
987
+
988
+
989
+
990
+
991
+
992
+
993
+
994
+
995
+
996
+
997
+
998
+
999
+
1000
+
1001
+
1002
+
1003
+
1004
+
1005
+
1006
+
1007
+
1008
+
1009
+
1010
+
1011
+
1012
+
1013
+
1014
+
1015
+
1016
+
1017
+
1018
+ </dl>
1019
+
1020
+
1021
+
1022
+
1023
+
1024
+
1025
+
1026
+
1027
+
1028
+
1029
+
1030
+
1031
+
1032
+
1033
+
1034
+
1035
+
1036
+
1037
+
1038
+
1039
+
1040
+
1041
+
1042
+ </div>
1043
+
1044
+ </div>
1045
+ </div>
1046
+
1047
+
1048
+
1049
+
1050
+
1051
+ </article>
1052
+
1053
+ </section>