@mapgis/webclient-cesium-plugin 17.2.3 → 17.2.5

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.
Files changed (44) hide show
  1. package/README.md +16 -0
  2. package/dist/es5/webclient-cesium-plugin.min.js +7 -5
  3. package/dist/es5/webclient-common.min.js +2 -2
  4. package/dist/webclient-cesium-plugin-es6.min.js +7 -5
  5. package/documention/AlgorithmLib.html +7009 -0
  6. package/documention/AngulationTool.html +1068 -0
  7. package/documention/AnimationTool.html +5966 -0
  8. package/documention/CesiumHeatmap.html +3701 -0
  9. package/documention/CesiumTerrainProvider.html +139 -0
  10. package/documention/CircleWaveMaterialProperty.html +313 -0
  11. package/documention/CuttingTool.html +2930 -0
  12. package/documention/Deferred.html +139 -0
  13. package/documention/DrawElement.html +1643 -0
  14. package/documention/DrawTool.html +1275 -0
  15. package/documention/EditTool.html +1839 -0
  16. package/documention/FloodAnalysisReflection.html +1 -1
  17. package/documention/Graphic.html +4789 -0
  18. package/documention/GraphicsLayer.html +5071 -0
  19. package/documention/HeightLimited.html +811 -0
  20. package/documention/KeyboardCameraController.html +1313 -0
  21. package/documention/MeasureAreaTool.html +1215 -0
  22. package/documention/MeasureLengthTool.html +2339 -0
  23. package/documention/MeasureSlopeTool.html +1141 -0
  24. package/documention/ModelEditor.html +356 -0
  25. package/documention/ModelFilterTool.html +1053 -0
  26. package/documention/ModelTransformTool.html +3277 -0
  27. package/documention/PolylineTrailLinkMaterialProperty.html +369 -0
  28. package/documention/PostProcessStageLibrary.html +3 -3
  29. package/documention/Promise.html +980 -0
  30. package/documention/RadarMaterialProperty.html +255 -0
  31. package/documention/ReImg.html +370 -0
  32. package/documention/RiverGeometry.html +2659 -0
  33. package/documention/S3MTileset.html +5 -5
  34. package/documention/SelectTool.html +784 -0
  35. package/documention/ShadowRateAnalysis.html +1827 -0
  36. package/documention/ShadowRateDrawCommand.html +917 -0
  37. package/documention/Style.html +14203 -0
  38. package/documention/TerrainAnalyse.html +2966 -0
  39. package/documention/TerrainProfile.html +1053 -0
  40. package/documention/Tooltip.html +877 -0
  41. package/documention/TriangulationTool.html +1721 -0
  42. package/documention/VisiblityAnalysis.html +1998 -0
  43. package/documention/WaterReflection.html +1 -1
  44. package/package.json +1 -1
@@ -0,0 +1,3277 @@
1
+ <header id="page-title" class="page-title">
2
+
3
+ <span class="page-title-main">类名</span>
4
+ <span class="page-title-sub">ModelTransformTool</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="ModelTransformTool">
26
+ <a class="href-link" href="#ModelTransformTool">#</a>
27
+
28
+ <span class="code-name" id="ModelTransformTool" style="font-size:30px">
29
+
30
+ new ModelTransformTool<span class="signature">(layer<span class="signature-attributes">opt</span>, callback<span class="signature-attributes">opt</span>)</span>
31
+
32
+ </span>
33
+ </h4>
34
+
35
+
36
+
37
+
38
+
39
+
40
+
41
+
42
+
43
+
44
+
45
+
46
+ <h4>参数</h4>
47
+
48
+ <div class="table-container">
49
+ <table class="params table">
50
+ <thead>
51
+ <tr>
52
+
53
+ <th>名称</th>
54
+
55
+
56
+ <th>类型</th>
57
+
58
+
59
+
60
+ <th class="last">描述</th>
61
+ </tr>
62
+ </thead>
63
+
64
+ <tbody>
65
+
66
+
67
+
68
+ <tr class="deep-level-0">
69
+
70
+ <td class="name"><code>layer</code></td>
71
+
72
+
73
+ <td class="type">
74
+
75
+
76
+ <span class="param-type">
77
+
78
+ <a link="MapGISM3DSet.html" onclick="getTypeHTML(event)" class="mapgis-link-name" title="MapGISM3DSet" MapGISM3DSet.html>MapGISM3DSet</a>
79
+
80
+ </span>
81
+ |
82
+
83
+ <span class="param-type">
84
+
85
+ Cesium.Cesium3DTileset
86
+
87
+ </span>
88
+ |
89
+
90
+ <span class="param-type">
91
+
92
+ undefined
93
+
94
+ </span>
95
+
96
+
97
+
98
+
99
+ </td>
100
+
101
+
102
+
103
+ <td class="description last"><p>模型对象</p></td>
104
+ </tr>
105
+
106
+
107
+
108
+
109
+
110
+
111
+ <tr class="deep-level-0">
112
+
113
+ <td class="name"><code>callback</code></td>
114
+
115
+
116
+ <td class="type">
117
+
118
+
119
+ <span class="param-type">
120
+
121
+ function
122
+
123
+ </span>
124
+
125
+
126
+
127
+
128
+ </td>
129
+
130
+
131
+
132
+ <td class="description last"><p>模型编辑工具编辑后的回调函数
133
+ 模型对象为空时,需要在调用具体的变换接口时指定要变换的模型。
134
+ 推荐在调用变换接口时指定模型。</p></td>
135
+ </tr>
136
+
137
+
138
+
139
+
140
+ </tbody>
141
+ </table>
142
+ </div>
143
+
144
+
145
+
146
+
147
+
148
+
149
+ <dl class="details">
150
+
151
+
152
+
153
+
154
+
155
+
156
+
157
+
158
+
159
+
160
+
161
+
162
+
163
+
164
+
165
+
166
+
167
+
168
+ <dt class="tag-author">作者:</dt>
169
+ <dd class="tag-author">
170
+ <ul>
171
+ <li>基础平台-杨琨</li>
172
+ </ul>
173
+ </dd>
174
+
175
+
176
+
177
+
178
+
179
+
180
+
181
+
182
+
183
+
184
+ <dt class="tag-see">See:</dt>
185
+ <dd class="tag-see">
186
+ <ul>
187
+ <li>ModelTransformTool#translateWorld</li>
188
+
189
+ <li>ModelTransformTool#setPositionWorld</li>
190
+
191
+ <li>ModelTransformTool#rotateLocal</li>
192
+
193
+ <li>ModelTransformTool#setLocalScala</li>
194
+ </ul>
195
+ </dd>
196
+
197
+
198
+
199
+
200
+
201
+ </dl>
202
+
203
+
204
+
205
+
206
+
207
+
208
+
209
+
210
+
211
+
212
+
213
+
214
+
215
+
216
+
217
+
218
+
219
+
220
+
221
+
222
+
223
+
224
+
225
+
226
+ </div>
227
+ </div>
228
+ </div>
229
+
230
+
231
+ </div>
232
+
233
+
234
+
235
+
236
+
237
+
238
+
239
+
240
+
241
+
242
+
243
+
244
+
245
+
246
+
247
+
248
+ <div class='vertical-section'>
249
+ <h3 id='function'>方法</h3>
250
+ <h4 style="margin-top: 20px;margin-bottom: 20px;">方法概述</h4>
251
+ <div class="members">
252
+ <div class="table-container">
253
+ <table class="params table">
254
+ <thead>
255
+ <tr>
256
+ <th>名称</th>
257
+ <th>返回值类型</th>
258
+ <th>描述</th>
259
+ </tr>
260
+ </thead>
261
+ <tbody>
262
+
263
+ <tr class="deep-level-0">
264
+ <td class="name"><code><a href="#activeRotationEditor">activeRotationEditor</a></code></td>
265
+ <td class="name">
266
+ <code>
267
+
268
+ </code>
269
+ </td>
270
+ <td class="name"><code><p>可视化旋转工具</p></code></td>
271
+ </tr>
272
+
273
+ <tr class="deep-level-0">
274
+ <td class="name"><code><a href="#activeScaleEditor">activeScaleEditor</a></code></td>
275
+ <td class="name">
276
+ <code>
277
+
278
+ </code>
279
+ </td>
280
+ <td class="name"><code><p>可视化缩放工具</p></code></td>
281
+ </tr>
282
+
283
+ <tr class="deep-level-0">
284
+ <td class="name"><code><a href="#activeTranslationEditor">activeTranslationEditor</a></code></td>
285
+ <td class="name">
286
+ <code>
287
+
288
+ </code>
289
+ </td>
290
+ <td class="name"><code><p>可视化平移工具</p></code></td>
291
+ </tr>
292
+
293
+ <tr class="deep-level-0">
294
+ <td class="name"><code><a href="#deactivate">deactivate</a></code></td>
295
+ <td class="name">
296
+ <code>
297
+
298
+ </code>
299
+ </td>
300
+ <td class="name"><code><p>取消激活可视化工具</p></code></td>
301
+ </tr>
302
+
303
+ <tr class="deep-level-0">
304
+ <td class="name"><code><a href="#destroy">destroy</a></code></td>
305
+ <td class="name">
306
+ <code>
307
+
308
+ </code>
309
+ </td>
310
+ <td class="name"><code><p>销毁工具</p></code></td>
311
+ </tr>
312
+
313
+ <tr class="deep-level-0">
314
+ <td class="name"><code><a href="#getEulerFromTransform">getEulerFromTransform</a></code></td>
315
+ <td class="name">
316
+ <code>
317
+
318
+ </code>
319
+ </td>
320
+ <td class="name"><code><p>根据模型的tansform矩阵获取欧拉角</p></code></td>
321
+ </tr>
322
+
323
+ <tr class="deep-level-0">
324
+ <td class="name"><code><a href="#initModelEditor">initModelEditor</a></code></td>
325
+ <td class="name">
326
+ <code>
327
+
328
+ </code>
329
+ </td>
330
+ <td class="name"><code><p>初始化可视化模型变换工具</p></code></td>
331
+ </tr>
332
+
333
+ <tr class="deep-level-0">
334
+ <td class="name"><code><a href="#reset">reset</a></code></td>
335
+ <td class="name">
336
+ <code>
337
+
338
+ </code>
339
+ </td>
340
+ <td class="name"><code><p>重置模型位置到初始状态,只会重置通过构造函数传入的模型。</p></code></td>
341
+ </tr>
342
+
343
+ <tr class="deep-level-0">
344
+ <td class="name"><code><a href="#rotateLocal">rotateLocal</a></code></td>
345
+ <td class="name">
346
+ <code>
347
+
348
+ </code>
349
+ </td>
350
+ <td class="name"><code><p>控制模型在本地空间下做旋转变换</p></code></td>
351
+ </tr>
352
+
353
+ <tr class="deep-level-0">
354
+ <td class="name"><code><a href="#setLocalScala">setLocalScala</a></code></td>
355
+ <td class="name">
356
+ <code>
357
+
358
+ </code>
359
+ </td>
360
+ <td class="name"><code><p>设置模型缩放</p></code></td>
361
+ </tr>
362
+
363
+ <tr class="deep-level-0">
364
+ <td class="name"><code><a href="#setPositionWorld">setPositionWorld</a></code></td>
365
+ <td class="name">
366
+ <code>
367
+
368
+ </code>
369
+ </td>
370
+ <td class="name"><code><p>设置M3D模型在笛卡尔世界坐标系下位置</p></code></td>
371
+ </tr>
372
+
373
+ <tr class="deep-level-0">
374
+ <td class="name"><code><a href="#setRotation">setRotation</a></code></td>
375
+ <td class="name">
376
+ <code>
377
+
378
+ </code>
379
+ </td>
380
+ <td class="name"><code><p>模型旋转</p></code></td>
381
+ </tr>
382
+
383
+ <tr class="deep-level-0">
384
+ <td class="name"><code><a href="#setScala">setScala</a></code></td>
385
+ <td class="name">
386
+ <code>
387
+
388
+ </code>
389
+ </td>
390
+ <td class="name"><code><p>模型缩放</p></code></td>
391
+ </tr>
392
+
393
+ <tr class="deep-level-0">
394
+ <td class="name"><code><a href="#setTranslation">setTranslation</a></code></td>
395
+ <td class="name">
396
+ <code>
397
+
398
+ </code>
399
+ </td>
400
+ <td class="name"><code><p>模型平移</p></code></td>
401
+ </tr>
402
+
403
+ <tr class="deep-level-0">
404
+ <td class="name"><code><a href="#translateWorld">translateWorld</a></code></td>
405
+ <td class="name">
406
+ <code>
407
+
408
+ </code>
409
+ </td>
410
+ <td class="name"><code><p>设置M3D模型在笛卡尔世界坐标系下平移</p></code></td>
411
+ </tr>
412
+
413
+ </tbody>
414
+ </table>
415
+ </div>
416
+ <h4 style="margin-top: 20px;margin-bottom: 20px;">方法详情</h4>
417
+
418
+ <div class="member">
419
+
420
+
421
+
422
+ <h4 class="name" id="activeRotationEditor">
423
+ <a class="href-link" href="#activeRotationEditor">#</a>
424
+
425
+ <span class="code-name" id="activeRotationEditor" style="font-size:30px">
426
+
427
+ activeRotationEditor<span class="signature">(options)</span>
428
+
429
+ </span>
430
+ </h4>
431
+
432
+
433
+
434
+ <div class="description">
435
+ <p>可视化旋转工具</p>
436
+ </div>
437
+
438
+
439
+
440
+
441
+
442
+
443
+
444
+
445
+
446
+
447
+ <h4>参数</h4>
448
+
449
+ <div class="table-container">
450
+ <table class="params table">
451
+ <thead>
452
+ <tr>
453
+
454
+ <th>名称</th>
455
+
456
+
457
+ <th>类型</th>
458
+
459
+
460
+
461
+ <th class="last">描述</th>
462
+ </tr>
463
+ </thead>
464
+
465
+ <tbody>
466
+
467
+
468
+
469
+ <tr class="deep-level-0">
470
+
471
+ <td class="name"><code>options</code></td>
472
+
473
+
474
+ <td class="type">
475
+
476
+
477
+ <span class="param-type">
478
+
479
+ Object
480
+
481
+ </span>
482
+
483
+
484
+
485
+
486
+ </td>
487
+
488
+
489
+
490
+ <td class="description last"></td>
491
+ </tr>
492
+
493
+
494
+
495
+
496
+ <tr class="deep-level-1">
497
+
498
+ <td class="name"><code>model</code></td>
499
+
500
+
501
+ <td class="type">
502
+
503
+
504
+ <span class="param-type">
505
+
506
+ <a link="MapGISM3DSet.html" onclick="getTypeHTML(event)" class="mapgis-link-name" title="MapGISM3DSet" MapGISM3DSet.html>MapGISM3DSet</a>
507
+
508
+ </span>
509
+ |
510
+
511
+ <span class="param-type">
512
+
513
+ MapGISM3D
514
+
515
+ </span>
516
+ |
517
+
518
+ <span class="param-type">
519
+
520
+ Cesium.Cesium3DTileset
521
+
522
+ </span>
523
+
524
+
525
+
526
+
527
+ </td>
528
+
529
+
530
+
531
+ <td class="description last"><p>要控制的模型</p></td>
532
+ </tr>
533
+
534
+
535
+
536
+
537
+
538
+
539
+
540
+ </tbody>
541
+ </table>
542
+ </div>
543
+
544
+
545
+
546
+
547
+
548
+
549
+ <dl class="details">
550
+
551
+
552
+
553
+
554
+
555
+
556
+
557
+
558
+
559
+
560
+
561
+
562
+
563
+
564
+
565
+
566
+
567
+
568
+
569
+
570
+
571
+
572
+
573
+
574
+
575
+
576
+
577
+
578
+
579
+
580
+
581
+ </dl>
582
+
583
+
584
+
585
+
586
+
587
+
588
+
589
+
590
+
591
+
592
+
593
+
594
+
595
+
596
+
597
+
598
+
599
+
600
+
601
+
602
+
603
+
604
+
605
+ </div>
606
+
607
+ <div class="member">
608
+
609
+
610
+
611
+ <h4 class="name" id="activeScaleEditor">
612
+ <a class="href-link" href="#activeScaleEditor">#</a>
613
+
614
+ <span class="code-name" id="activeScaleEditor" style="font-size:30px">
615
+
616
+ activeScaleEditor<span class="signature">(options<span class="signature-attributes">opt</span>)</span>
617
+
618
+ </span>
619
+ </h4>
620
+
621
+
622
+
623
+ <div class="description">
624
+ <p>可视化缩放工具</p>
625
+ </div>
626
+
627
+
628
+
629
+
630
+
631
+
632
+
633
+
634
+
635
+
636
+ <h4>参数</h4>
637
+
638
+ <div class="table-container">
639
+ <table class="params table">
640
+ <thead>
641
+ <tr>
642
+
643
+ <th>名称</th>
644
+
645
+
646
+ <th>类型</th>
647
+
648
+
649
+ <th style="min-width: 100px;">默认值</th>
650
+
651
+
652
+ <th class="last">描述</th>
653
+ </tr>
654
+ </thead>
655
+
656
+ <tbody>
657
+
658
+
659
+
660
+ <tr class="deep-level-0">
661
+
662
+ <td class="name"><code>options</code></td>
663
+
664
+
665
+ <td class="type">
666
+
667
+
668
+ <span class="param-type">
669
+
670
+ Object
671
+
672
+ </span>
673
+
674
+
675
+
676
+
677
+ </td>
678
+
679
+
680
+ <td class="default">
681
+
682
+ {}
683
+
684
+ </td>
685
+
686
+
687
+ <td class="description last"><p>工具参数</p></td>
688
+ </tr>
689
+
690
+
691
+
692
+
693
+ <tr class="deep-level-1">
694
+
695
+ <td class="name"><code>singleScale</code></td>
696
+
697
+
698
+ <td class="type">
699
+
700
+
701
+ <span class="param-type">
702
+
703
+ boolean
704
+
705
+ </span>
706
+
707
+
708
+
709
+
710
+ </td>
711
+
712
+
713
+ <td class="default">
714
+
715
+ false
716
+
717
+ </td>
718
+
719
+
720
+ <td class="description last"><p>是否单轴缩放,true:单轴缩放,false:三轴同时缩放</p></td>
721
+ </tr>
722
+
723
+
724
+
725
+
726
+ <tr class="deep-level-1">
727
+
728
+ <td class="name"><code>model</code></td>
729
+
730
+
731
+ <td class="type">
732
+
733
+
734
+ <span class="param-type">
735
+
736
+ <a link="MapGISM3DSet.html" onclick="getTypeHTML(event)" class="mapgis-link-name" title="MapGISM3DSet" MapGISM3DSet.html>MapGISM3DSet</a>
737
+
738
+ </span>
739
+ |
740
+
741
+ <span class="param-type">
742
+
743
+ MapGISM3D
744
+
745
+ </span>
746
+ |
747
+
748
+ <span class="param-type">
749
+
750
+ Cesium.Cesium3DTileset
751
+
752
+ </span>
753
+
754
+
755
+
756
+
757
+ </td>
758
+
759
+
760
+ <td class="default">
761
+
762
+ </td>
763
+
764
+
765
+ <td class="description last"><p>要控制的模型</p></td>
766
+ </tr>
767
+
768
+
769
+
770
+
771
+
772
+
773
+
774
+ </tbody>
775
+ </table>
776
+ </div>
777
+
778
+
779
+
780
+
781
+
782
+
783
+ <dl class="details">
784
+
785
+
786
+
787
+
788
+
789
+
790
+
791
+
792
+
793
+
794
+
795
+
796
+
797
+
798
+
799
+
800
+
801
+
802
+
803
+
804
+
805
+
806
+
807
+
808
+
809
+
810
+
811
+
812
+
813
+
814
+
815
+ </dl>
816
+
817
+
818
+
819
+
820
+
821
+
822
+
823
+
824
+
825
+
826
+
827
+
828
+
829
+
830
+
831
+
832
+
833
+
834
+
835
+
836
+
837
+
838
+
839
+ </div>
840
+
841
+ <div class="member">
842
+
843
+
844
+
845
+ <h4 class="name" id="activeTranslationEditor">
846
+ <a class="href-link" href="#activeTranslationEditor">#</a>
847
+
848
+ <span class="code-name" id="activeTranslationEditor" style="font-size:30px">
849
+
850
+ activeTranslationEditor<span class="signature">(options)</span>
851
+
852
+ </span>
853
+ </h4>
854
+
855
+
856
+
857
+ <div class="description">
858
+ <p>可视化平移工具</p>
859
+ </div>
860
+
861
+
862
+
863
+
864
+
865
+
866
+
867
+
868
+
869
+
870
+ <h4>参数</h4>
871
+
872
+ <div class="table-container">
873
+ <table class="params table">
874
+ <thead>
875
+ <tr>
876
+
877
+ <th>名称</th>
878
+
879
+
880
+ <th>类型</th>
881
+
882
+
883
+
884
+ <th class="last">描述</th>
885
+ </tr>
886
+ </thead>
887
+
888
+ <tbody>
889
+
890
+
891
+
892
+ <tr class="deep-level-0">
893
+
894
+ <td class="name"><code>options</code></td>
895
+
896
+
897
+ <td class="type">
898
+
899
+
900
+ <span class="param-type">
901
+
902
+ Object
903
+
904
+ </span>
905
+
906
+
907
+
908
+
909
+ </td>
910
+
911
+
912
+
913
+ <td class="description last"></td>
914
+ </tr>
915
+
916
+
917
+
918
+
919
+ <tr class="deep-level-1">
920
+
921
+ <td class="name"><code>model</code></td>
922
+
923
+
924
+ <td class="type">
925
+
926
+
927
+ <span class="param-type">
928
+
929
+ <a link="MapGISM3DSet.html" onclick="getTypeHTML(event)" class="mapgis-link-name" title="MapGISM3DSet" MapGISM3DSet.html>MapGISM3DSet</a>
930
+
931
+ </span>
932
+ |
933
+
934
+ <span class="param-type">
935
+
936
+ MapGISM3D
937
+
938
+ </span>
939
+ |
940
+
941
+ <span class="param-type">
942
+
943
+ Cesium.Cesium3DTileset
944
+
945
+ </span>
946
+
947
+
948
+
949
+
950
+ </td>
951
+
952
+
953
+
954
+ <td class="description last"><p>要控制的模型</p></td>
955
+ </tr>
956
+
957
+
958
+
959
+
960
+
961
+
962
+
963
+ </tbody>
964
+ </table>
965
+ </div>
966
+
967
+
968
+
969
+
970
+
971
+
972
+ <dl class="details">
973
+
974
+
975
+
976
+
977
+
978
+
979
+
980
+
981
+
982
+
983
+
984
+
985
+
986
+
987
+
988
+
989
+
990
+
991
+
992
+
993
+
994
+
995
+
996
+
997
+
998
+
999
+
1000
+
1001
+
1002
+
1003
+
1004
+ </dl>
1005
+
1006
+
1007
+
1008
+
1009
+
1010
+
1011
+
1012
+
1013
+
1014
+
1015
+
1016
+
1017
+
1018
+
1019
+
1020
+
1021
+
1022
+
1023
+
1024
+
1025
+
1026
+
1027
+
1028
+ </div>
1029
+
1030
+ <div class="member">
1031
+
1032
+
1033
+
1034
+ <h4 class="name" id="deactivate">
1035
+ <a class="href-link" href="#deactivate">#</a>
1036
+
1037
+ <span class="code-name" id="deactivate" style="font-size:30px">
1038
+
1039
+ deactivate<span class="signature">()</span>
1040
+
1041
+ </span>
1042
+ </h4>
1043
+
1044
+
1045
+
1046
+ <div class="description">
1047
+ <p>取消激活可视化工具</p>
1048
+ </div>
1049
+
1050
+
1051
+
1052
+
1053
+
1054
+
1055
+
1056
+
1057
+
1058
+
1059
+
1060
+
1061
+
1062
+
1063
+ <dl class="details">
1064
+
1065
+
1066
+
1067
+
1068
+
1069
+
1070
+
1071
+
1072
+
1073
+
1074
+
1075
+
1076
+
1077
+
1078
+
1079
+
1080
+
1081
+
1082
+
1083
+
1084
+
1085
+
1086
+
1087
+
1088
+
1089
+
1090
+
1091
+
1092
+
1093
+
1094
+
1095
+ </dl>
1096
+
1097
+
1098
+
1099
+
1100
+
1101
+
1102
+
1103
+
1104
+
1105
+
1106
+
1107
+
1108
+
1109
+
1110
+
1111
+
1112
+
1113
+
1114
+
1115
+
1116
+
1117
+
1118
+
1119
+ </div>
1120
+
1121
+ <div class="member">
1122
+
1123
+
1124
+
1125
+ <h4 class="name" id="destroy">
1126
+ <a class="href-link" href="#destroy">#</a>
1127
+
1128
+ <span class="code-name" id="destroy" style="font-size:30px">
1129
+
1130
+ destroy<span class="signature">()</span>
1131
+
1132
+ </span>
1133
+ </h4>
1134
+
1135
+
1136
+
1137
+ <div class="description">
1138
+ <p>销毁工具</p>
1139
+ </div>
1140
+
1141
+
1142
+
1143
+
1144
+
1145
+
1146
+
1147
+
1148
+
1149
+
1150
+
1151
+
1152
+
1153
+
1154
+ <dl class="details">
1155
+
1156
+
1157
+
1158
+
1159
+
1160
+
1161
+
1162
+
1163
+
1164
+
1165
+
1166
+
1167
+
1168
+
1169
+
1170
+
1171
+
1172
+
1173
+
1174
+
1175
+
1176
+
1177
+
1178
+
1179
+
1180
+
1181
+
1182
+
1183
+
1184
+
1185
+
1186
+ </dl>
1187
+
1188
+
1189
+
1190
+
1191
+
1192
+
1193
+
1194
+
1195
+
1196
+
1197
+
1198
+
1199
+
1200
+
1201
+
1202
+
1203
+
1204
+
1205
+
1206
+
1207
+
1208
+
1209
+
1210
+ </div>
1211
+
1212
+ <div class="member">
1213
+
1214
+
1215
+
1216
+ <h4 class="name" id="getEulerFromTransform">
1217
+ <a class="href-link" href="#getEulerFromTransform">#</a>
1218
+
1219
+ <span class="code-name" id="getEulerFromTransform" style="font-size:30px">
1220
+
1221
+ getEulerFromTransform<span class="signature">(transformInLocal, model<span class="signature-attributes">opt</span>, rotationPoint<span class="signature-attributes">opt</span>)</span>
1222
+
1223
+ </span>
1224
+ </h4>
1225
+
1226
+
1227
+
1228
+ <div class="description">
1229
+ <p>根据模型的tansform矩阵获取欧拉角</p>
1230
+ </div>
1231
+
1232
+
1233
+
1234
+
1235
+
1236
+
1237
+
1238
+
1239
+
1240
+
1241
+ <h4>参数</h4>
1242
+
1243
+ <div class="table-container">
1244
+ <table class="params table">
1245
+ <thead>
1246
+ <tr>
1247
+
1248
+ <th>名称</th>
1249
+
1250
+
1251
+ <th>类型</th>
1252
+
1253
+
1254
+
1255
+ <th class="last">描述</th>
1256
+ </tr>
1257
+ </thead>
1258
+
1259
+ <tbody>
1260
+
1261
+
1262
+
1263
+ <tr class="deep-level-0">
1264
+
1265
+ <td class="name"><code>transformInLocal</code></td>
1266
+
1267
+
1268
+ <td class="type">
1269
+
1270
+
1271
+ <span class="param-type">
1272
+
1273
+ Cesium.Matrix4
1274
+
1275
+ </span>
1276
+
1277
+
1278
+
1279
+
1280
+ </td>
1281
+
1282
+
1283
+
1284
+ <td class="description last"></td>
1285
+ </tr>
1286
+
1287
+
1288
+
1289
+
1290
+
1291
+
1292
+ <tr class="deep-level-0">
1293
+
1294
+ <td class="name"><code>model</code></td>
1295
+
1296
+
1297
+ <td class="type">
1298
+
1299
+
1300
+ <span class="param-type">
1301
+
1302
+ <a link="MapGISM3DSet.html" onclick="getTypeHTML(event)" class="mapgis-link-name" title="MapGISM3DSet" MapGISM3DSet.html>MapGISM3DSet</a>
1303
+
1304
+ </span>
1305
+ |
1306
+
1307
+ <span class="param-type">
1308
+
1309
+ MapGISM3D
1310
+
1311
+ </span>
1312
+ |
1313
+
1314
+ <span class="param-type">
1315
+
1316
+ Cesium.Cesium3DTileset
1317
+
1318
+ </span>
1319
+
1320
+
1321
+
1322
+
1323
+ </td>
1324
+
1325
+
1326
+
1327
+ <td class="description last"><p>模型对象;</p></td>
1328
+ </tr>
1329
+
1330
+
1331
+
1332
+
1333
+
1334
+
1335
+ <tr class="deep-level-0">
1336
+
1337
+ <td class="name"><code>rotationPoint</code></td>
1338
+
1339
+
1340
+ <td class="type">
1341
+
1342
+
1343
+ <span class="param-type">
1344
+
1345
+ Cesium.Cartesian3
1346
+
1347
+ </span>
1348
+
1349
+
1350
+
1351
+
1352
+ </td>
1353
+
1354
+
1355
+
1356
+ <td class="description last"><p>旋转中心;缺省时旋转中心默认为模型外包球中心</p></td>
1357
+ </tr>
1358
+
1359
+
1360
+
1361
+
1362
+ </tbody>
1363
+ </table>
1364
+ </div>
1365
+
1366
+
1367
+
1368
+
1369
+
1370
+
1371
+ <dl class="details">
1372
+
1373
+
1374
+
1375
+
1376
+
1377
+
1378
+
1379
+
1380
+
1381
+
1382
+
1383
+
1384
+
1385
+
1386
+
1387
+
1388
+
1389
+
1390
+
1391
+
1392
+
1393
+
1394
+
1395
+
1396
+
1397
+
1398
+
1399
+
1400
+
1401
+
1402
+
1403
+ </dl>
1404
+
1405
+
1406
+
1407
+
1408
+
1409
+
1410
+
1411
+
1412
+
1413
+
1414
+
1415
+
1416
+
1417
+
1418
+
1419
+
1420
+
1421
+
1422
+
1423
+
1424
+
1425
+
1426
+
1427
+ </div>
1428
+
1429
+ <div class="member">
1430
+
1431
+
1432
+
1433
+ <h4 class="name" id="initModelEditor">
1434
+ <a class="href-link" href="#initModelEditor">#</a>
1435
+
1436
+ <span class="code-name" id="initModelEditor" style="font-size:30px">
1437
+
1438
+ initModelEditor<span class="signature">(viewer)</span>
1439
+
1440
+ </span>
1441
+ </h4>
1442
+
1443
+
1444
+
1445
+ <div class="description">
1446
+ <p>初始化可视化模型变换工具</p>
1447
+ </div>
1448
+
1449
+
1450
+
1451
+
1452
+
1453
+
1454
+
1455
+
1456
+
1457
+
1458
+ <h4>参数</h4>
1459
+
1460
+ <div class="table-container">
1461
+ <table class="params table">
1462
+ <thead>
1463
+ <tr>
1464
+
1465
+ <th>名称</th>
1466
+
1467
+
1468
+ <th>类型</th>
1469
+
1470
+
1471
+
1472
+ <th class="last">描述</th>
1473
+ </tr>
1474
+ </thead>
1475
+
1476
+ <tbody>
1477
+
1478
+
1479
+
1480
+ <tr class="deep-level-0">
1481
+
1482
+ <td class="name"><code>viewer</code></td>
1483
+
1484
+
1485
+ <td class="type">
1486
+
1487
+
1488
+ <span class="param-type">
1489
+
1490
+ Viewer
1491
+
1492
+ </span>
1493
+
1494
+
1495
+
1496
+
1497
+ </td>
1498
+
1499
+
1500
+
1501
+ <td class="description last"><p>Cesium的viewer对象</p></td>
1502
+ </tr>
1503
+
1504
+
1505
+
1506
+
1507
+ </tbody>
1508
+ </table>
1509
+ </div>
1510
+
1511
+
1512
+
1513
+
1514
+
1515
+
1516
+ <dl class="details">
1517
+
1518
+
1519
+
1520
+
1521
+
1522
+
1523
+
1524
+
1525
+
1526
+
1527
+
1528
+
1529
+
1530
+
1531
+
1532
+
1533
+
1534
+
1535
+
1536
+
1537
+
1538
+
1539
+
1540
+
1541
+
1542
+
1543
+
1544
+
1545
+
1546
+
1547
+
1548
+ </dl>
1549
+
1550
+
1551
+
1552
+
1553
+
1554
+
1555
+
1556
+
1557
+
1558
+
1559
+
1560
+
1561
+
1562
+
1563
+
1564
+
1565
+
1566
+
1567
+
1568
+
1569
+
1570
+
1571
+
1572
+ </div>
1573
+
1574
+ <div class="member">
1575
+
1576
+
1577
+
1578
+ <h4 class="name" id="reset">
1579
+ <a class="href-link" href="#reset">#</a>
1580
+
1581
+ <span class="code-name" id="reset" style="font-size:30px">
1582
+
1583
+ reset<span class="signature">()</span>
1584
+
1585
+ </span>
1586
+ </h4>
1587
+
1588
+
1589
+
1590
+ <div class="description">
1591
+ <p>重置模型位置到初始状态,只会重置通过构造函数传入的模型。</p>
1592
+ </div>
1593
+
1594
+
1595
+
1596
+
1597
+
1598
+
1599
+
1600
+
1601
+
1602
+
1603
+
1604
+
1605
+
1606
+
1607
+ <dl class="details">
1608
+
1609
+
1610
+
1611
+
1612
+
1613
+
1614
+
1615
+
1616
+
1617
+
1618
+
1619
+
1620
+
1621
+
1622
+
1623
+
1624
+
1625
+
1626
+
1627
+
1628
+
1629
+
1630
+
1631
+
1632
+
1633
+
1634
+
1635
+
1636
+
1637
+
1638
+
1639
+ </dl>
1640
+
1641
+
1642
+
1643
+
1644
+
1645
+
1646
+
1647
+
1648
+
1649
+
1650
+
1651
+
1652
+
1653
+
1654
+
1655
+
1656
+
1657
+
1658
+
1659
+
1660
+
1661
+
1662
+
1663
+ </div>
1664
+
1665
+ <div class="member">
1666
+
1667
+
1668
+
1669
+ <h4 class="name" id="rotateLocal">
1670
+ <a class="href-link" href="#rotateLocal">#</a>
1671
+
1672
+ <span class="code-name" id="rotateLocal" style="font-size:30px">
1673
+
1674
+ rotateLocal<span class="signature">(options)</span>
1675
+
1676
+ </span>
1677
+ </h4>
1678
+
1679
+
1680
+
1681
+ <div class="description">
1682
+ <p>控制模型在本地空间下做旋转变换</p>
1683
+ </div>
1684
+
1685
+
1686
+
1687
+
1688
+
1689
+
1690
+
1691
+
1692
+
1693
+
1694
+ <h4>参数</h4>
1695
+
1696
+ <div class="table-container">
1697
+ <table class="params table">
1698
+ <thead>
1699
+ <tr>
1700
+
1701
+ <th>名称</th>
1702
+
1703
+
1704
+ <th>类型</th>
1705
+
1706
+
1707
+
1708
+ <th class="last">描述</th>
1709
+ </tr>
1710
+ </thead>
1711
+
1712
+ <tbody>
1713
+
1714
+
1715
+
1716
+ <tr class="deep-level-0">
1717
+
1718
+ <td class="name"><code>options</code></td>
1719
+
1720
+
1721
+ <td class="type">
1722
+
1723
+
1724
+ <span class="param-type">
1725
+
1726
+ Object
1727
+
1728
+ </span>
1729
+
1730
+
1731
+
1732
+
1733
+ </td>
1734
+
1735
+
1736
+
1737
+ <td class="description last"></td>
1738
+ </tr>
1739
+
1740
+
1741
+
1742
+
1743
+ <tr class="deep-level-1">
1744
+
1745
+ <td class="name"><code>rotation</code></td>
1746
+
1747
+
1748
+ <td class="type">
1749
+
1750
+
1751
+ <span class="param-type">
1752
+
1753
+ Cesium.Cartesian3
1754
+
1755
+ </span>
1756
+ |
1757
+
1758
+ <span class="param-type">
1759
+
1760
+ Cesium.HeadingPitchRoll
1761
+
1762
+ </span>
1763
+
1764
+
1765
+
1766
+
1767
+ </td>
1768
+
1769
+
1770
+
1771
+ <td class="description last"><p>旋转角度;
1772
+ HeadingPitchRoll类型为弧度制,Cartesian3类型为角度制。</p></td>
1773
+ </tr>
1774
+
1775
+
1776
+
1777
+
1778
+ <tr class="deep-level-1">
1779
+
1780
+ <td class="name"><code>model</code></td>
1781
+
1782
+
1783
+ <td class="type">
1784
+
1785
+
1786
+ <span class="param-type">
1787
+
1788
+ <a link="MapGISM3DSet.html" onclick="getTypeHTML(event)" class="mapgis-link-name" title="MapGISM3DSet" MapGISM3DSet.html>MapGISM3DSet</a>
1789
+
1790
+ </span>
1791
+ |
1792
+
1793
+ <span class="param-type">
1794
+
1795
+ MapGISM3D
1796
+
1797
+ </span>
1798
+ |
1799
+
1800
+ <span class="param-type">
1801
+
1802
+ Cesium.Cesium3DTileset
1803
+
1804
+ </span>
1805
+
1806
+
1807
+
1808
+
1809
+ </td>
1810
+
1811
+
1812
+
1813
+ <td class="description last"><p>要被旋转的模型;
1814
+ 置空时将从构造函数的layer中取M3D模型。不推荐置空。</p></td>
1815
+ </tr>
1816
+
1817
+
1818
+
1819
+
1820
+ <tr class="deep-level-1">
1821
+
1822
+ <td class="name"><code>rotationPoint</code></td>
1823
+
1824
+
1825
+ <td class="type">
1826
+
1827
+
1828
+ <span class="param-type">
1829
+
1830
+ Cesium.Cartesian3
1831
+
1832
+ </span>
1833
+
1834
+
1835
+
1836
+
1837
+ </td>
1838
+
1839
+
1840
+
1841
+ <td class="description last"><p>旋转中心;
1842
+ 缺省时绕模型自身的原点旋转;旋转的是SceneLayer图层时,SceneLayer下的所有图层绕第一个MapGISM3DSet的boundingSphere.center旋转。</p></td>
1843
+ </tr>
1844
+
1845
+
1846
+
1847
+
1848
+
1849
+
1850
+
1851
+ </tbody>
1852
+ </table>
1853
+ </div>
1854
+
1855
+
1856
+
1857
+
1858
+
1859
+
1860
+ <dl class="details">
1861
+
1862
+
1863
+
1864
+
1865
+
1866
+
1867
+
1868
+
1869
+
1870
+
1871
+
1872
+
1873
+
1874
+
1875
+
1876
+
1877
+
1878
+
1879
+
1880
+
1881
+
1882
+
1883
+
1884
+
1885
+
1886
+
1887
+
1888
+
1889
+
1890
+
1891
+
1892
+ </dl>
1893
+
1894
+
1895
+
1896
+
1897
+
1898
+
1899
+
1900
+
1901
+
1902
+
1903
+
1904
+
1905
+
1906
+
1907
+
1908
+
1909
+
1910
+
1911
+
1912
+
1913
+
1914
+
1915
+
1916
+ <h5>示例</h5>
1917
+
1918
+
1919
+ <pre class="prettyprint"><code>var modelTransformTool = new Cesium.ModelTransformTool();
1920
+ // 从SceneLayer图层中获取MapGISM3DSet
1921
+ var model = layer._m3dLayerMap.values()[0];
1922
+ modelTransformTool.initModelEditor(viewer);
1923
+ // 通过角度控制
1924
+ modelTransformTool.rotateLocal({
1925
+ // 绕Z轴旋转90度
1926
+ rotation: new Cesium.Cartesian3(0, 0, 90),
1927
+ model: model,
1928
+ rotationPoint: model.boundingSphere.center
1929
+ })
1930
+ // 通过headingpitchroll控制
1931
+ modelTransformTool.rotateLocal({
1932
+ // 绕Z轴旋转90度
1933
+ rotation: new Cesium.HeadingPitchRoll(Cesium.Math.toRadians(90), 0, 0),
1934
+ model: model,
1935
+ rotationPoint: model.boundingSphere.center
1936
+ })</code></pre>
1937
+
1938
+
1939
+
1940
+ </div>
1941
+
1942
+ <div class="member">
1943
+
1944
+
1945
+
1946
+ <h4 class="name" id="setLocalScala">
1947
+ <a class="href-link" href="#setLocalScala">#</a>
1948
+
1949
+ <span class="code-name" id="setLocalScala" style="font-size:30px">
1950
+
1951
+ setLocalScala<span class="signature">(options)</span>
1952
+
1953
+ </span>
1954
+ </h4>
1955
+
1956
+
1957
+
1958
+ <div class="description">
1959
+ <p>设置模型缩放</p>
1960
+ </div>
1961
+
1962
+
1963
+
1964
+
1965
+
1966
+
1967
+
1968
+
1969
+
1970
+
1971
+ <h4>参数</h4>
1972
+
1973
+ <div class="table-container">
1974
+ <table class="params table">
1975
+ <thead>
1976
+ <tr>
1977
+
1978
+ <th>名称</th>
1979
+
1980
+
1981
+ <th>类型</th>
1982
+
1983
+
1984
+
1985
+ <th class="last">描述</th>
1986
+ </tr>
1987
+ </thead>
1988
+
1989
+ <tbody>
1990
+
1991
+
1992
+
1993
+ <tr class="deep-level-0">
1994
+
1995
+ <td class="name"><code>options</code></td>
1996
+
1997
+
1998
+ <td class="type">
1999
+
2000
+
2001
+ <span class="param-type">
2002
+
2003
+ Object
2004
+
2005
+ </span>
2006
+
2007
+
2008
+
2009
+
2010
+ </td>
2011
+
2012
+
2013
+
2014
+ <td class="description last"></td>
2015
+ </tr>
2016
+
2017
+
2018
+
2019
+
2020
+ <tr class="deep-level-1">
2021
+
2022
+ <td class="name"><code>size</code></td>
2023
+
2024
+
2025
+ <td class="type">
2026
+
2027
+
2028
+ <span class="param-type">
2029
+
2030
+ Cesium.Cartesian3
2031
+
2032
+ </span>
2033
+
2034
+
2035
+
2036
+
2037
+ </td>
2038
+
2039
+
2040
+
2041
+ <td class="description last"><p>缩放矢量</p></td>
2042
+ </tr>
2043
+
2044
+
2045
+
2046
+
2047
+ <tr class="deep-level-1">
2048
+
2049
+ <td class="name"><code>model</code></td>
2050
+
2051
+
2052
+ <td class="type">
2053
+
2054
+
2055
+ <span class="param-type">
2056
+
2057
+ <a link="MapGISM3DSet.html" onclick="getTypeHTML(event)" class="mapgis-link-name" title="MapGISM3DSet" MapGISM3DSet.html>MapGISM3DSet</a>
2058
+
2059
+ </span>
2060
+ |
2061
+
2062
+ <span class="param-type">
2063
+
2064
+ MapGISM3D
2065
+
2066
+ </span>
2067
+ |
2068
+
2069
+ <span class="param-type">
2070
+
2071
+ Cesium.Cesium3DTileset
2072
+
2073
+ </span>
2074
+
2075
+
2076
+
2077
+
2078
+ </td>
2079
+
2080
+
2081
+
2082
+ <td class="description last"><p>要被平移的模型,
2083
+ 置空时将从构造函数的layer中取M3D模型。不推荐置空。</p></td>
2084
+ </tr>
2085
+
2086
+
2087
+
2088
+
2089
+
2090
+
2091
+
2092
+ </tbody>
2093
+ </table>
2094
+ </div>
2095
+
2096
+
2097
+
2098
+
2099
+
2100
+
2101
+ <dl class="details">
2102
+
2103
+
2104
+
2105
+
2106
+
2107
+
2108
+
2109
+
2110
+
2111
+
2112
+
2113
+
2114
+
2115
+
2116
+
2117
+
2118
+
2119
+
2120
+
2121
+
2122
+
2123
+
2124
+
2125
+
2126
+
2127
+
2128
+
2129
+
2130
+
2131
+
2132
+
2133
+ </dl>
2134
+
2135
+
2136
+
2137
+
2138
+
2139
+
2140
+
2141
+
2142
+
2143
+
2144
+
2145
+
2146
+
2147
+
2148
+
2149
+
2150
+
2151
+
2152
+
2153
+
2154
+
2155
+
2156
+
2157
+ <h5>示例</h5>
2158
+
2159
+
2160
+ <pre class="prettyprint"><code>var modelTransformTool = new Cesium.ModelTransformTool();
2161
+ modelTransformTool.initModelEditor(viewer);
2162
+ modelTransformTool.setLocalScala({
2163
+ size: new Cesium.Cartesian3(2, 2, 2),
2164
+ // 从SceneLayer图层中获取MapGISM3DSet
2165
+ model: layer._m3dLayerMap.values()[0]
2166
+ })</code></pre>
2167
+
2168
+
2169
+
2170
+ </div>
2171
+
2172
+ <div class="member">
2173
+
2174
+
2175
+
2176
+ <h4 class="name" id="setPositionWorld">
2177
+ <a class="href-link" href="#setPositionWorld">#</a>
2178
+
2179
+ <span class="code-name" id="setPositionWorld" style="font-size:30px">
2180
+
2181
+ setPositionWorld<span class="signature">(options)</span>
2182
+
2183
+ </span>
2184
+ </h4>
2185
+
2186
+
2187
+
2188
+ <div class="description">
2189
+ <p>设置M3D模型在笛卡尔世界坐标系下位置</p>
2190
+ </div>
2191
+
2192
+
2193
+
2194
+
2195
+
2196
+
2197
+
2198
+
2199
+
2200
+
2201
+ <h4>参数</h4>
2202
+
2203
+ <div class="table-container">
2204
+ <table class="params table">
2205
+ <thead>
2206
+ <tr>
2207
+
2208
+ <th>名称</th>
2209
+
2210
+
2211
+ <th>类型</th>
2212
+
2213
+
2214
+
2215
+ <th class="last">描述</th>
2216
+ </tr>
2217
+ </thead>
2218
+
2219
+ <tbody>
2220
+
2221
+
2222
+
2223
+ <tr class="deep-level-0">
2224
+
2225
+ <td class="name"><code>options</code></td>
2226
+
2227
+
2228
+ <td class="type">
2229
+
2230
+
2231
+ <span class="param-type">
2232
+
2233
+ Object
2234
+
2235
+ </span>
2236
+
2237
+
2238
+
2239
+
2240
+ </td>
2241
+
2242
+
2243
+
2244
+ <td class="description last"></td>
2245
+ </tr>
2246
+
2247
+
2248
+
2249
+
2250
+ <tr class="deep-level-1">
2251
+
2252
+ <td class="name"><code>position</code></td>
2253
+
2254
+
2255
+ <td class="type">
2256
+
2257
+
2258
+ <span class="param-type">
2259
+
2260
+ Cesium.Cartesian3
2261
+
2262
+ </span>
2263
+
2264
+
2265
+
2266
+
2267
+ </td>
2268
+
2269
+
2270
+
2271
+ <td class="description last"><p>位置 笛卡尔坐标系</p></td>
2272
+ </tr>
2273
+
2274
+
2275
+
2276
+
2277
+ <tr class="deep-level-1">
2278
+
2279
+ <td class="name"><code>model</code></td>
2280
+
2281
+
2282
+ <td class="type">
2283
+
2284
+
2285
+ <span class="param-type">
2286
+
2287
+ <a link="MapGISM3DSet.html" onclick="getTypeHTML(event)" class="mapgis-link-name" title="MapGISM3DSet" MapGISM3DSet.html>MapGISM3DSet</a>
2288
+
2289
+ </span>
2290
+ |
2291
+
2292
+ <span class="param-type">
2293
+
2294
+ MapGISM3D
2295
+
2296
+ </span>
2297
+ |
2298
+
2299
+ <span class="param-type">
2300
+
2301
+ Cesium.Cesium3DTileset
2302
+
2303
+ </span>
2304
+
2305
+
2306
+
2307
+
2308
+ </td>
2309
+
2310
+
2311
+
2312
+ <td class="description last"><p>要被设置的模型,
2313
+ 置空时将从构造函数的layer中取M3D模型。不推荐置空。</p></td>
2314
+ </tr>
2315
+
2316
+
2317
+
2318
+
2319
+
2320
+
2321
+
2322
+ </tbody>
2323
+ </table>
2324
+ </div>
2325
+
2326
+
2327
+
2328
+
2329
+
2330
+
2331
+ <dl class="details">
2332
+
2333
+
2334
+
2335
+
2336
+
2337
+
2338
+
2339
+
2340
+
2341
+
2342
+
2343
+
2344
+
2345
+
2346
+
2347
+
2348
+
2349
+
2350
+
2351
+
2352
+
2353
+
2354
+
2355
+
2356
+
2357
+
2358
+
2359
+
2360
+
2361
+
2362
+
2363
+ </dl>
2364
+
2365
+
2366
+
2367
+
2368
+
2369
+
2370
+
2371
+
2372
+
2373
+
2374
+
2375
+
2376
+
2377
+
2378
+
2379
+
2380
+
2381
+
2382
+
2383
+
2384
+
2385
+
2386
+
2387
+ <h5>示例</h5>
2388
+
2389
+
2390
+ <pre class="prettyprint"><code>var modelTransformTool = new Cesium.ModelTransformTool();
2391
+ modelTransformTool.initModelEditor(viewer);
2392
+ modelTransformTool.setPositionWorld({
2393
+ position: Cesium.Cartesian3.fromDegrees(113.0750, 30, 100),
2394
+ // 从SceneLayer图层中获取MapGISM3DSet
2395
+ model: layer._m3dLayerMap.values()[0]
2396
+ })</code></pre>
2397
+
2398
+
2399
+
2400
+ </div>
2401
+
2402
+ <div class="member">
2403
+
2404
+
2405
+
2406
+ <h4 class="name" id="setRotation">
2407
+ <a class="href-link" href="#setRotation">#</a>
2408
+
2409
+ <span class="code-name" id="setRotation" style="font-size:30px">
2410
+
2411
+ setRotation<span class="signature">(degree<span class="signature-attributes">opt</span>, axis<span class="signature-attributes">opt</span>)</span>
2412
+
2413
+ </span>
2414
+ </h4>
2415
+
2416
+
2417
+
2418
+ <div class="description">
2419
+ <p>模型旋转</p>
2420
+ </div>
2421
+
2422
+
2423
+
2424
+
2425
+
2426
+
2427
+
2428
+
2429
+
2430
+
2431
+ <h4>参数</h4>
2432
+
2433
+ <div class="table-container">
2434
+ <table class="params table">
2435
+ <thead>
2436
+ <tr>
2437
+
2438
+ <th>名称</th>
2439
+
2440
+
2441
+ <th>类型</th>
2442
+
2443
+
2444
+ <th style="min-width: 100px;">默认值</th>
2445
+
2446
+
2447
+ <th class="last">描述</th>
2448
+ </tr>
2449
+ </thead>
2450
+
2451
+ <tbody>
2452
+
2453
+
2454
+
2455
+ <tr class="deep-level-0">
2456
+
2457
+ <td class="name"><code>degree</code></td>
2458
+
2459
+
2460
+ <td class="type">
2461
+
2462
+
2463
+ <span class="param-type">
2464
+
2465
+ Number
2466
+
2467
+ </span>
2468
+
2469
+
2470
+
2471
+
2472
+ </td>
2473
+
2474
+
2475
+ <td class="default">
2476
+
2477
+ 0
2478
+
2479
+ </td>
2480
+
2481
+
2482
+ <td class="description last"><p>旋转角度,单位度</p></td>
2483
+ </tr>
2484
+
2485
+
2486
+
2487
+
2488
+
2489
+
2490
+ <tr class="deep-level-0">
2491
+
2492
+ <td class="name"><code>axis</code></td>
2493
+
2494
+
2495
+ <td class="type">
2496
+
2497
+
2498
+ <span class="param-type">
2499
+
2500
+ String
2501
+
2502
+ </span>
2503
+
2504
+
2505
+
2506
+
2507
+ </td>
2508
+
2509
+
2510
+ <td class="default">
2511
+
2512
+ 'Z'
2513
+
2514
+ </td>
2515
+
2516
+
2517
+ <td class="description last"><p>旋转轴,X:X轴,Y:Y轴,Z:Z轴</p></td>
2518
+ </tr>
2519
+
2520
+
2521
+
2522
+
2523
+ </tbody>
2524
+ </table>
2525
+ </div>
2526
+
2527
+
2528
+
2529
+
2530
+
2531
+
2532
+ <dl class="details">
2533
+
2534
+
2535
+
2536
+
2537
+
2538
+
2539
+
2540
+
2541
+
2542
+
2543
+
2544
+
2545
+
2546
+
2547
+
2548
+
2549
+
2550
+
2551
+
2552
+
2553
+
2554
+
2555
+
2556
+
2557
+
2558
+
2559
+
2560
+
2561
+
2562
+
2563
+
2564
+ </dl>
2565
+
2566
+
2567
+
2568
+
2569
+
2570
+
2571
+
2572
+
2573
+
2574
+
2575
+
2576
+
2577
+
2578
+
2579
+
2580
+
2581
+
2582
+
2583
+
2584
+
2585
+
2586
+
2587
+
2588
+ </div>
2589
+
2590
+ <div class="member">
2591
+
2592
+
2593
+
2594
+ <h4 class="name" id="setScala">
2595
+ <a class="href-link" href="#setScala">#</a>
2596
+
2597
+ <span class="code-name" id="setScala" style="font-size:30px">
2598
+
2599
+ setScala<span class="signature">(x<span class="signature-attributes">opt</span>, y<span class="signature-attributes">opt</span>, z<span class="signature-attributes">opt</span>)</span>
2600
+
2601
+ </span>
2602
+ </h4>
2603
+
2604
+
2605
+
2606
+ <div class="description">
2607
+ <p>模型缩放</p>
2608
+ </div>
2609
+
2610
+
2611
+
2612
+
2613
+
2614
+
2615
+
2616
+
2617
+
2618
+
2619
+ <h4>参数</h4>
2620
+
2621
+ <div class="table-container">
2622
+ <table class="params table">
2623
+ <thead>
2624
+ <tr>
2625
+
2626
+ <th>名称</th>
2627
+
2628
+
2629
+ <th>类型</th>
2630
+
2631
+
2632
+ <th style="min-width: 100px;">默认值</th>
2633
+
2634
+
2635
+ <th class="last">描述</th>
2636
+ </tr>
2637
+ </thead>
2638
+
2639
+ <tbody>
2640
+
2641
+
2642
+
2643
+ <tr class="deep-level-0">
2644
+
2645
+ <td class="name"><code>x</code></td>
2646
+
2647
+
2648
+ <td class="type">
2649
+
2650
+
2651
+ <span class="param-type">
2652
+
2653
+ Number
2654
+
2655
+ </span>
2656
+
2657
+
2658
+
2659
+
2660
+ </td>
2661
+
2662
+
2663
+ <td class="default">
2664
+
2665
+ 1
2666
+
2667
+ </td>
2668
+
2669
+
2670
+ <td class="description last"><p>x轴放大</p></td>
2671
+ </tr>
2672
+
2673
+
2674
+
2675
+
2676
+
2677
+
2678
+ <tr class="deep-level-0">
2679
+
2680
+ <td class="name"><code>y</code></td>
2681
+
2682
+
2683
+ <td class="type">
2684
+
2685
+
2686
+ <span class="param-type">
2687
+
2688
+ Number
2689
+
2690
+ </span>
2691
+
2692
+
2693
+
2694
+
2695
+ </td>
2696
+
2697
+
2698
+ <td class="default">
2699
+
2700
+ 1
2701
+
2702
+ </td>
2703
+
2704
+
2705
+ <td class="description last"><p>y轴放大</p></td>
2706
+ </tr>
2707
+
2708
+
2709
+
2710
+
2711
+
2712
+
2713
+ <tr class="deep-level-0">
2714
+
2715
+ <td class="name"><code>z</code></td>
2716
+
2717
+
2718
+ <td class="type">
2719
+
2720
+
2721
+ <span class="param-type">
2722
+
2723
+ Number
2724
+
2725
+ </span>
2726
+
2727
+
2728
+
2729
+
2730
+ </td>
2731
+
2732
+
2733
+ <td class="default">
2734
+
2735
+ 1
2736
+
2737
+ </td>
2738
+
2739
+
2740
+ <td class="description last"><p>z轴放大</p></td>
2741
+ </tr>
2742
+
2743
+
2744
+
2745
+
2746
+ </tbody>
2747
+ </table>
2748
+ </div>
2749
+
2750
+
2751
+
2752
+
2753
+
2754
+
2755
+ <dl class="details">
2756
+
2757
+
2758
+
2759
+
2760
+
2761
+
2762
+
2763
+
2764
+
2765
+
2766
+
2767
+
2768
+
2769
+
2770
+
2771
+
2772
+ <dt class="important tag-deprecated">Deprecated:</dt><dd><ul class="dummy"><li>请使用<a class="mapgis-link-name" title="ModelTransformTool#setLocalScala" ModelTransformTool.html#setLocalScala><code>ModelTransformTool#setLocalScala</code></a></li></ul></dd>
2773
+
2774
+
2775
+
2776
+
2777
+
2778
+
2779
+
2780
+
2781
+
2782
+
2783
+
2784
+
2785
+
2786
+
2787
+
2788
+
2789
+ </dl>
2790
+
2791
+
2792
+
2793
+
2794
+
2795
+
2796
+
2797
+
2798
+
2799
+
2800
+
2801
+
2802
+
2803
+
2804
+
2805
+
2806
+
2807
+
2808
+
2809
+
2810
+
2811
+
2812
+
2813
+ </div>
2814
+
2815
+ <div class="member">
2816
+
2817
+
2818
+
2819
+ <h4 class="name" id="setTranslation">
2820
+ <a class="href-link" href="#setTranslation">#</a>
2821
+
2822
+ <span class="code-name" id="setTranslation" style="font-size:30px">
2823
+
2824
+ setTranslation<span class="signature">(longitude<span class="signature-attributes">opt</span>, latitude<span class="signature-attributes">opt</span>, height<span class="signature-attributes">opt</span>)</span>
2825
+
2826
+ </span>
2827
+ </h4>
2828
+
2829
+
2830
+
2831
+ <div class="description">
2832
+ <p>模型平移</p>
2833
+ </div>
2834
+
2835
+
2836
+
2837
+
2838
+
2839
+
2840
+
2841
+
2842
+
2843
+
2844
+ <h4>参数</h4>
2845
+
2846
+ <div class="table-container">
2847
+ <table class="params table">
2848
+ <thead>
2849
+ <tr>
2850
+
2851
+ <th>名称</th>
2852
+
2853
+
2854
+ <th>类型</th>
2855
+
2856
+
2857
+ <th style="min-width: 100px;">默认值</th>
2858
+
2859
+
2860
+ <th class="last">描述</th>
2861
+ </tr>
2862
+ </thead>
2863
+
2864
+ <tbody>
2865
+
2866
+
2867
+
2868
+ <tr class="deep-level-0">
2869
+
2870
+ <td class="name"><code>longitude</code></td>
2871
+
2872
+
2873
+ <td class="type">
2874
+
2875
+
2876
+ <span class="param-type">
2877
+
2878
+ Number
2879
+
2880
+ </span>
2881
+
2882
+
2883
+
2884
+
2885
+ </td>
2886
+
2887
+
2888
+ <td class="default">
2889
+
2890
+ 0
2891
+
2892
+ </td>
2893
+
2894
+
2895
+ <td class="description last"><p>经度</p></td>
2896
+ </tr>
2897
+
2898
+
2899
+
2900
+
2901
+
2902
+
2903
+ <tr class="deep-level-0">
2904
+
2905
+ <td class="name"><code>latitude</code></td>
2906
+
2907
+
2908
+ <td class="type">
2909
+
2910
+
2911
+ <span class="param-type">
2912
+
2913
+ Number
2914
+
2915
+ </span>
2916
+
2917
+
2918
+
2919
+
2920
+ </td>
2921
+
2922
+
2923
+ <td class="default">
2924
+
2925
+ 0
2926
+
2927
+ </td>
2928
+
2929
+
2930
+ <td class="description last"><p>纬度</p></td>
2931
+ </tr>
2932
+
2933
+
2934
+
2935
+
2936
+
2937
+
2938
+ <tr class="deep-level-0">
2939
+
2940
+ <td class="name"><code>height</code></td>
2941
+
2942
+
2943
+ <td class="type">
2944
+
2945
+
2946
+ <span class="param-type">
2947
+
2948
+ Number
2949
+
2950
+ </span>
2951
+
2952
+
2953
+
2954
+
2955
+ </td>
2956
+
2957
+
2958
+ <td class="default">
2959
+
2960
+ 0
2961
+
2962
+ </td>
2963
+
2964
+
2965
+ <td class="description last"><p>高度</p></td>
2966
+ </tr>
2967
+
2968
+
2969
+
2970
+
2971
+ </tbody>
2972
+ </table>
2973
+ </div>
2974
+
2975
+
2976
+
2977
+
2978
+
2979
+
2980
+ <dl class="details">
2981
+
2982
+
2983
+
2984
+
2985
+
2986
+
2987
+
2988
+
2989
+
2990
+
2991
+
2992
+
2993
+
2994
+
2995
+
2996
+
2997
+
2998
+
2999
+
3000
+
3001
+
3002
+
3003
+
3004
+
3005
+
3006
+
3007
+
3008
+
3009
+
3010
+
3011
+
3012
+ </dl>
3013
+
3014
+
3015
+
3016
+
3017
+
3018
+
3019
+
3020
+
3021
+
3022
+
3023
+
3024
+
3025
+
3026
+
3027
+
3028
+
3029
+
3030
+
3031
+
3032
+
3033
+
3034
+
3035
+
3036
+ </div>
3037
+
3038
+ <div class="member">
3039
+
3040
+
3041
+
3042
+ <h4 class="name" id="translateWorld">
3043
+ <a class="href-link" href="#translateWorld">#</a>
3044
+
3045
+ <span class="code-name" id="translateWorld" style="font-size:30px">
3046
+
3047
+ translateWorld<span class="signature">(options)</span>
3048
+
3049
+ </span>
3050
+ </h4>
3051
+
3052
+
3053
+
3054
+ <div class="description">
3055
+ <p>设置M3D模型在笛卡尔世界坐标系下平移</p>
3056
+ </div>
3057
+
3058
+
3059
+
3060
+
3061
+
3062
+
3063
+
3064
+
3065
+
3066
+
3067
+ <h4>参数</h4>
3068
+
3069
+ <div class="table-container">
3070
+ <table class="params table">
3071
+ <thead>
3072
+ <tr>
3073
+
3074
+ <th>名称</th>
3075
+
3076
+
3077
+ <th>类型</th>
3078
+
3079
+
3080
+
3081
+ <th class="last">描述</th>
3082
+ </tr>
3083
+ </thead>
3084
+
3085
+ <tbody>
3086
+
3087
+
3088
+
3089
+ <tr class="deep-level-0">
3090
+
3091
+ <td class="name"><code>options</code></td>
3092
+
3093
+
3094
+ <td class="type">
3095
+
3096
+
3097
+ <span class="param-type">
3098
+
3099
+ Object
3100
+
3101
+ </span>
3102
+
3103
+
3104
+
3105
+
3106
+ </td>
3107
+
3108
+
3109
+
3110
+ <td class="description last"></td>
3111
+ </tr>
3112
+
3113
+
3114
+
3115
+
3116
+ <tr class="deep-level-1">
3117
+
3118
+ <td class="name"><code>vector</code></td>
3119
+
3120
+
3121
+ <td class="type">
3122
+
3123
+
3124
+ <span class="param-type">
3125
+
3126
+ Cesium.Cartesian3
3127
+
3128
+ </span>
3129
+
3130
+
3131
+
3132
+
3133
+ </td>
3134
+
3135
+
3136
+
3137
+ <td class="description last"><p>平移矢量 笛卡尔坐标系</p></td>
3138
+ </tr>
3139
+
3140
+
3141
+
3142
+
3143
+ <tr class="deep-level-1">
3144
+
3145
+ <td class="name"><code>model</code></td>
3146
+
3147
+
3148
+ <td class="type">
3149
+
3150
+
3151
+ <span class="param-type">
3152
+
3153
+ <a link="MapGISM3DSet.html" onclick="getTypeHTML(event)" class="mapgis-link-name" title="MapGISM3DSet" MapGISM3DSet.html>MapGISM3DSet</a>
3154
+
3155
+ </span>
3156
+ |
3157
+
3158
+ <span class="param-type">
3159
+
3160
+ MapGISM3D
3161
+
3162
+ </span>
3163
+ |
3164
+
3165
+ <span class="param-type">
3166
+
3167
+ Cesium.Cesium3DTileset
3168
+
3169
+ </span>
3170
+
3171
+
3172
+
3173
+
3174
+ </td>
3175
+
3176
+
3177
+
3178
+ <td class="description last"><p>要被平移的模型,
3179
+ 置空时将从构造函数的layer中取M3D模型。不推荐置空。</p></td>
3180
+ </tr>
3181
+
3182
+
3183
+
3184
+
3185
+
3186
+
3187
+
3188
+ </tbody>
3189
+ </table>
3190
+ </div>
3191
+
3192
+
3193
+
3194
+
3195
+
3196
+
3197
+ <dl class="details">
3198
+
3199
+
3200
+
3201
+
3202
+
3203
+
3204
+
3205
+
3206
+
3207
+
3208
+
3209
+
3210
+
3211
+
3212
+
3213
+
3214
+
3215
+
3216
+
3217
+
3218
+
3219
+
3220
+
3221
+
3222
+
3223
+
3224
+
3225
+
3226
+
3227
+
3228
+
3229
+ </dl>
3230
+
3231
+
3232
+
3233
+
3234
+
3235
+
3236
+
3237
+
3238
+
3239
+
3240
+
3241
+
3242
+
3243
+
3244
+
3245
+
3246
+
3247
+
3248
+
3249
+
3250
+
3251
+
3252
+
3253
+ <h5>示例</h5>
3254
+
3255
+
3256
+ <pre class="prettyprint"><code>var modelTransformTool = new Cesium.ModelTransformTool();
3257
+ modelTransformTool.initModelEditor(viewer);
3258
+ modelTransformTool.translateWorld({
3259
+ vector: new Cesium.Cartesian3(5000, 0, 1000),
3260
+ // 从SceneLayer图层中获取MapGISM3DSet
3261
+ model: layer._m3dLayerMap.values()[0]
3262
+ })</code></pre>
3263
+
3264
+
3265
+
3266
+ </div>
3267
+
3268
+ </div>
3269
+ </div>
3270
+
3271
+
3272
+
3273
+
3274
+
3275
+ </article>
3276
+
3277
+ </section>