deeptwins-cesium-engine 0.0.3
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/Build/ThirdParty/Workers/zip-web-worker.js +640 -0
- package/Build/Workers/chunk-2363JE27.js +163 -0
- package/Build/Workers/chunk-23T2IPHV.js +55 -0
- package/Build/Workers/chunk-27SAH2Q2.js +55 -0
- package/Build/Workers/chunk-2AM4E2WD.js +101 -0
- package/Build/Workers/chunk-2H4D4HBM.js +101 -0
- package/Build/Workers/chunk-2KBLMCYQ.js +198 -0
- package/Build/Workers/chunk-2MWF4IES.js +398 -0
- package/Build/Workers/chunk-2O7PRNCW.js +288 -0
- package/Build/Workers/chunk-2RCIRXNI.js +75 -0
- package/Build/Workers/chunk-3JIEAYRM.js +940 -0
- package/Build/Workers/chunk-3VNQVXD6.js +837 -0
- package/Build/Workers/chunk-3XR54LVR.js +75 -0
- package/Build/Workers/chunk-3YTMGEXW.js +1443 -0
- package/Build/Workers/chunk-3ZP3VA4L.js +171 -0
- package/Build/Workers/chunk-4AKOLNCZ.js +139 -0
- package/Build/Workers/chunk-4BHWJWS3.js +171 -0
- package/Build/Workers/chunk-4QSCEADX.js +1800 -0
- package/Build/Workers/chunk-4ZKQXB7T.js +1460 -0
- package/Build/Workers/chunk-4ZX6BO6C.js +476 -0
- package/Build/Workers/chunk-55NHNEI7.js +163 -0
- package/Build/Workers/chunk-5F3SUA6W.js +8366 -0
- package/Build/Workers/chunk-5FBLADWD.js +692 -0
- package/Build/Workers/chunk-5H7FXJTE.js +2719 -0
- package/Build/Workers/chunk-5JKH4AMT.js +58 -0
- package/Build/Workers/chunk-5MTUN2SE.js +642 -0
- package/Build/Workers/chunk-5PWCXSID.js +256 -0
- package/Build/Workers/chunk-5RL7XAZS.js +256 -0
- package/Build/Workers/chunk-5TZVQOFD.js +305 -0
- package/Build/Workers/chunk-67FTKXPJ.js +352 -0
- package/Build/Workers/chunk-6AIBN5NQ.js +1054 -0
- package/Build/Workers/chunk-6D6BOTSA.js +414 -0
- package/Build/Workers/chunk-6FGAWC5J.js +44 -0
- package/Build/Workers/chunk-6HKAPCSO.js +280 -0
- package/Build/Workers/chunk-6UJDVUJ4.js +8366 -0
- package/Build/Workers/chunk-73Q77JO7.js +138 -0
- package/Build/Workers/chunk-7A6QUBKY.js +58 -0
- package/Build/Workers/chunk-7APZZMCL.js +73 -0
- package/Build/Workers/chunk-7BHC3VOI.js +511 -0
- package/Build/Workers/chunk-7GQHESFY.js +368 -0
- package/Build/Workers/chunk-7MVC3OLP.js +58 -0
- package/Build/Workers/chunk-7UNMLR74.js +1800 -0
- package/Build/Workers/chunk-A2QTGP5S.js +55 -0
- package/Build/Workers/chunk-A3FZIBXG.js +55 -0
- package/Build/Workers/chunk-A53R2F2L.js +305 -0
- package/Build/Workers/chunk-A6LIUE7X.js +692 -0
- package/Build/Workers/chunk-A6YFUGJO.js +139 -0
- package/Build/Workers/chunk-AJYWXC6I.js +97 -0
- package/Build/Workers/chunk-ALTIGQTT.js +288 -0
- package/Build/Workers/chunk-AOIO5VUS.js +8366 -0
- package/Build/Workers/chunk-AT2CG6PG.js +3514 -0
- package/Build/Workers/chunk-ATX74V7S.js +55 -0
- package/Build/Workers/chunk-AZPXT6RB.js +1067 -0
- package/Build/Workers/chunk-B7JRBTT6.js +682 -0
- package/Build/Workers/chunk-BALMTCKJ.js +138 -0
- package/Build/Workers/chunk-BBYRID6W.js +352 -0
- package/Build/Workers/chunk-BDX4AYXL.js +162 -0
- package/Build/Workers/chunk-BG2DK4Q5.js +101 -0
- package/Build/Workers/chunk-BSNC3NBZ.js +139 -0
- package/Build/Workers/chunk-BZLYQCIC.js +958 -0
- package/Build/Workers/chunk-C4NX77B5.js +57 -0
- package/Build/Workers/chunk-CHNDJRYA.js +1054 -0
- package/Build/Workers/chunk-CJOV55CW.js +1067 -0
- package/Build/Workers/chunk-COGPE5Z2.js +241 -0
- package/Build/Workers/chunk-CRCK5VX6.js +497 -0
- package/Build/Workers/chunk-CTLQNSVP.js +455 -0
- package/Build/Workers/chunk-CW7W27IZ.js +299 -0
- package/Build/Workers/chunk-DICY26ID.js +2719 -0
- package/Build/Workers/chunk-DLAVWLZW.js +682 -0
- package/Build/Workers/chunk-DMEFNTUV.js +1317 -0
- package/Build/Workers/chunk-DQSJEOZY.js +55 -0
- package/Build/Workers/chunk-F6UXXCPK.js +3514 -0
- package/Build/Workers/chunk-FKIR6F3B.js +97 -0
- package/Build/Workers/chunk-FRBZJJVU.js +2719 -0
- package/Build/Workers/chunk-FRLH26PM.js +940 -0
- package/Build/Workers/chunk-FT6HYEKU.js +3514 -0
- package/Build/Workers/chunk-FYDCQ2VN.js +73 -0
- package/Build/Workers/chunk-G5OKIL5P.js +55 -0
- package/Build/Workers/chunk-G6VHLVWG.js +101 -0
- package/Build/Workers/chunk-GBGV4U6Z.js +219 -0
- package/Build/Workers/chunk-GDU4RZSZ.js +940 -0
- package/Build/Workers/chunk-GJRVCSXV.js +37 -0
- package/Build/Workers/chunk-GKWOUMYA.js +37 -0
- package/Build/Workers/chunk-GNDFFW5Z.js +1443 -0
- package/Build/Workers/chunk-GNQ5BH75.js +352 -0
- package/Build/Workers/chunk-GNQUZV4R.js +171 -0
- package/Build/Workers/chunk-GOCJHCLA.js +352 -0
- package/Build/Workers/chunk-GTY4K4IA.js +219 -0
- package/Build/Workers/chunk-GXBTJBHN.js +102 -0
- package/Build/Workers/chunk-H6Q7E4BQ.js +114 -0
- package/Build/Workers/chunk-HEGESGGY.js +219 -0
- package/Build/Workers/chunk-HG3HIMYL.js +241 -0
- package/Build/Workers/chunk-HGEYVFMI.js +1800 -0
- package/Build/Workers/chunk-HHGOFZVQ.js +124 -0
- package/Build/Workers/chunk-HXEVICMT.js +37 -0
- package/Build/Workers/chunk-HXKUEOOD.js +352 -0
- package/Build/Workers/chunk-I4REFVXB.js +256 -0
- package/Build/Workers/chunk-IL5F6WEE.js +497 -0
- package/Build/Workers/chunk-IOODZNYE.js +629 -0
- package/Build/Workers/chunk-IVLDVV5R.js +788 -0
- package/Build/Workers/chunk-IWP4XCPO.js +778 -0
- package/Build/Workers/chunk-JBTUZNI2.js +398 -0
- package/Build/Workers/chunk-JMSXZ6AI.js +414 -0
- package/Build/Workers/chunk-JTGVXCP2.js +2058 -0
- package/Build/Workers/chunk-JUK2ZSWT.js +198 -0
- package/Build/Workers/chunk-K6HQ5W6R.js +171 -0
- package/Build/Workers/chunk-KC3G7WHZ.js +57 -0
- package/Build/Workers/chunk-KGPKBCGY.js +97 -0
- package/Build/Workers/chunk-KKGD7HAW.js +414 -0
- package/Build/Workers/chunk-KQSN3QZM.js +368 -0
- package/Build/Workers/chunk-KROSQJUA.js +44 -0
- package/Build/Workers/chunk-L4JLDVCM.js +57 -0
- package/Build/Workers/chunk-LAOFDSKL.js +642 -0
- package/Build/Workers/chunk-LIYMRHGR.js +387 -0
- package/Build/Workers/chunk-LKCCQ3AW.js +198 -0
- package/Build/Workers/chunk-LLQFSX7U.js +139 -0
- package/Build/Workers/chunk-LSDXP6EX.js +75 -0
- package/Build/Workers/chunk-LTYK7VYQ.js +138 -0
- package/Build/Workers/chunk-LYMP3LWI.js +387 -0
- package/Build/Workers/chunk-M2WCZSU6.js +241 -0
- package/Build/Workers/chunk-M35VLUHY.js +352 -0
- package/Build/Workers/chunk-MAPGTIYK.js +2058 -0
- package/Build/Workers/chunk-MG6SYM3V.js +455 -0
- package/Build/Workers/chunk-MKMZHRB3.js +788 -0
- package/Build/Workers/chunk-MNR7L6SQ.js +1483 -0
- package/Build/Workers/chunk-MO25ZQ2I.js +958 -0
- package/Build/Workers/chunk-MOCL5YUJ.js +8366 -0
- package/Build/Workers/chunk-MRYY6ETH.js +280 -0
- package/Build/Workers/chunk-NAIA5L2S.js +682 -0
- package/Build/Workers/chunk-NMDV3OGH.js +958 -0
- package/Build/Workers/chunk-NYE77VTA.js +1054 -0
- package/Build/Workers/chunk-O6RZEKHZ.js +778 -0
- package/Build/Workers/chunk-OFOJ5HD6.js +1460 -0
- package/Build/Workers/chunk-OJNNQSZI.js +788 -0
- package/Build/Workers/chunk-OJXQBSG4.js +692 -0
- package/Build/Workers/chunk-OOCGX2OD.js +102 -0
- package/Build/Workers/chunk-OOY3DP7Z.js +788 -0
- package/Build/Workers/chunk-OSDDHXLU.js +1483 -0
- package/Build/Workers/chunk-OVZNLF46.js +241 -0
- package/Build/Workers/chunk-OXFU5HNU.js +162 -0
- package/Build/Workers/chunk-P5CGIJUY.js +73 -0
- package/Build/Workers/chunk-POLLOX2O.js +352 -0
- package/Build/Workers/chunk-POUR54ZW.js +37 -0
- package/Build/Workers/chunk-PR6F33M6.js +682 -0
- package/Build/Workers/chunk-Q6GCDF2J.js +44 -0
- package/Build/Workers/chunk-Q7HIBRGE.js +97 -0
- package/Build/Workers/chunk-QCJPQ5CQ.js +57 -0
- package/Build/Workers/chunk-QDKQNKG3.js +256 -0
- package/Build/Workers/chunk-QDTDTLQY.js +1067 -0
- package/Build/Workers/chunk-QEANVUGT.js +163 -0
- package/Build/Workers/chunk-QFBCIX7J.js +455 -0
- package/Build/Workers/chunk-QIKGPNLN.js +299 -0
- package/Build/Workers/chunk-QTKDUHWH.js +497 -0
- package/Build/Workers/chunk-QUAH3XOT.js +138 -0
- package/Build/Workers/chunk-R4MI537H.js +1443 -0
- package/Build/Workers/chunk-R5GL5C3T.js +1483 -0
- package/Build/Workers/chunk-RBAGNNPN.js +219 -0
- package/Build/Workers/chunk-RH6GMTSG.js +497 -0
- package/Build/Workers/chunk-RHJJWKSH.js +73 -0
- package/Build/Workers/chunk-RHV6AHJW.js +305 -0
- package/Build/Workers/chunk-RUZPDKUX.js +114 -0
- package/Build/Workers/chunk-RXZDTDIY.js +439 -0
- package/Build/Workers/chunk-SCSEVBY4.js +102 -0
- package/Build/Workers/chunk-SKMYTWWS.js +299 -0
- package/Build/Workers/chunk-SKVAQOZZ.js +1443 -0
- package/Build/Workers/chunk-SPA2KPH3.js +368 -0
- package/Build/Workers/chunk-STDNU6SV.js +1460 -0
- package/Build/Workers/chunk-SXOBEELD.js +55 -0
- package/Build/Workers/chunk-SYDXDJY5.js +2058 -0
- package/Build/Workers/chunk-SZ4ALZDU.js +305 -0
- package/Build/Workers/chunk-T2AGEECA.js +387 -0
- package/Build/Workers/chunk-T5ZG4SFF.js +1067 -0
- package/Build/Workers/chunk-TDSVSW5A.js +1460 -0
- package/Build/Workers/chunk-TJF36YYN.js +837 -0
- package/Build/Workers/chunk-TNZHNGKK.js +439 -0
- package/Build/Workers/chunk-TTWIV2BN.js +102 -0
- package/Build/Workers/chunk-TX3TQPIA.js +44 -0
- package/Build/Workers/chunk-TYPTCQPI.js +1317 -0
- package/Build/Workers/chunk-TZA4ZWFC.js +75 -0
- package/Build/Workers/chunk-UFDTAQBE.js +476 -0
- package/Build/Workers/chunk-UG2DPFOL.js +352 -0
- package/Build/Workers/chunk-UG3AH5C3.js +629 -0
- package/Build/Workers/chunk-UPPGWBJU.js +511 -0
- package/Build/Workers/chunk-URGEDZBS.js +476 -0
- package/Build/Workers/chunk-V35NQOJC.js +642 -0
- package/Build/Workers/chunk-VDNDTTCD.js +958 -0
- package/Build/Workers/chunk-VQIKTYAO.js +368 -0
- package/Build/Workers/chunk-VRXHACYU.js +476 -0
- package/Build/Workers/chunk-VTYZVS6I.js +455 -0
- package/Build/Workers/chunk-VVNCCJGH.js +398 -0
- package/Build/Workers/chunk-W4V3BNFU.js +114 -0
- package/Build/Workers/chunk-W4XUEDU5.js +2058 -0
- package/Build/Workers/chunk-W7UYJE5O.js +2719 -0
- package/Build/Workers/chunk-WB4TSSBQ.js +3514 -0
- package/Build/Workers/chunk-WGZVYW2C.js +124 -0
- package/Build/Workers/chunk-WNFIOIKE.js +414 -0
- package/Build/Workers/chunk-WNHOCO2K.js +280 -0
- package/Build/Workers/chunk-WQG2W2WD.js +837 -0
- package/Build/Workers/chunk-WTLYD4FE.js +1483 -0
- package/Build/Workers/chunk-WV2G6UNC.js +940 -0
- package/Build/Workers/chunk-WVC3OW5V.js +629 -0
- package/Build/Workers/chunk-WWQFFOV6.js +299 -0
- package/Build/Workers/chunk-XD7QHRAY.js +288 -0
- package/Build/Workers/chunk-XH6GW5M4.js +58 -0
- package/Build/Workers/chunk-XIX2VR7Z.js +778 -0
- package/Build/Workers/chunk-XJYSONL4.js +1054 -0
- package/Build/Workers/chunk-XP6ASNFM.js +1317 -0
- package/Build/Workers/chunk-XRDMBCX3.js +439 -0
- package/Build/Workers/chunk-XUA6BCV5.js +642 -0
- package/Build/Workers/chunk-XVBMYEYQ.js +124 -0
- package/Build/Workers/chunk-XWOAVRWZ.js +124 -0
- package/Build/Workers/chunk-Y4ALZ4SS.js +198 -0
- package/Build/Workers/chunk-Y4GOZA56.js +163 -0
- package/Build/Workers/chunk-YF2NVO5B.js +837 -0
- package/Build/Workers/chunk-YGVXG7IR.js +114 -0
- package/Build/Workers/chunk-YI7RTZGC.js +280 -0
- package/Build/Workers/chunk-YM4UTBTX.js +1800 -0
- package/Build/Workers/chunk-YP5ZF2MJ.js +162 -0
- package/Build/Workers/chunk-YSSL4KKM.js +387 -0
- package/Build/Workers/chunk-YSYSXSHF.js +629 -0
- package/Build/Workers/chunk-YX562XOB.js +692 -0
- package/Build/Workers/chunk-YZWA5B4R.js +511 -0
- package/Build/Workers/chunk-Z6DFT4D3.js +288 -0
- package/Build/Workers/chunk-Z6PVZUIE.js +398 -0
- package/Build/Workers/chunk-ZAI6LCSI.js +511 -0
- package/Build/Workers/chunk-ZBIINVUF.js +778 -0
- package/Build/Workers/chunk-ZG3TBDRX.js +1317 -0
- package/Build/Workers/chunk-ZGXHZJ75.js +439 -0
- package/Build/Workers/chunk-ZWDOE2JF.js +162 -0
- package/Build/Workers/combineGeometry.js +66 -0
- package/Build/Workers/createBoxGeometry.js +58 -0
- package/Build/Workers/createBoxOutlineGeometry.js +231 -0
- package/Build/Workers/createCircleGeometry.js +201 -0
- package/Build/Workers/createCircleOutlineGeometry.js +147 -0
- package/Build/Workers/createCoplanarPolygonGeometry.js +505 -0
- package/Build/Workers/createCoplanarPolygonOutlineGeometry.js +225 -0
- package/Build/Workers/createCorridorGeometry.js +1258 -0
- package/Build/Workers/createCorridorOutlineGeometry.js +563 -0
- package/Build/Workers/createCylinderGeometry.js +60 -0
- package/Build/Workers/createCylinderOutlineGeometry.js +231 -0
- package/Build/Workers/createEllipseGeometry.js +72 -0
- package/Build/Workers/createEllipseOutlineGeometry.js +65 -0
- package/Build/Workers/createEllipsoidGeometry.js +59 -0
- package/Build/Workers/createEllipsoidOutlineGeometry.js +61 -0
- package/Build/Workers/createFrustumGeometry.js +58 -0
- package/Build/Workers/createFrustumOutlineGeometry.js +234 -0
- package/Build/Workers/createGeometry.js +173 -0
- package/Build/Workers/createGroundPolylineGeometry.js +1602 -0
- package/Build/Workers/createPlaneGeometry.js +223 -0
- package/Build/Workers/createPlaneOutlineGeometry.js +124 -0
- package/Build/Workers/createPolygonGeometry.js +1404 -0
- package/Build/Workers/createPolygonOutlineGeometry.js +532 -0
- package/Build/Workers/createPolylineGeometry.js +491 -0
- package/Build/Workers/createPolylineVolumeGeometry.js +374 -0
- package/Build/Workers/createPolylineVolumeOutlineGeometry.js +272 -0
- package/Build/Workers/createRectangleGeometry.js +1264 -0
- package/Build/Workers/createRectangleOutlineGeometry.js +476 -0
- package/Build/Workers/createSimplePolylineGeometry.js +397 -0
- package/Build/Workers/createSphereGeometry.js +116 -0
- package/Build/Workers/createSphereOutlineGeometry.js +116 -0
- package/Build/Workers/createTaskProcessorWorker.js +32 -0
- package/Build/Workers/createVectorTileClampedPolylines.js +492 -0
- package/Build/Workers/createVectorTileGeometries.js +387 -0
- package/Build/Workers/createVectorTilePoints.js +114 -0
- package/Build/Workers/createVectorTilePolygons.js +386 -0
- package/Build/Workers/createVectorTilePolylines.js +262 -0
- package/Build/Workers/createVerticesFromCesium3DTilesTerrain.js +91 -0
- package/Build/Workers/createVerticesFromGoogleEarthEnterpriseBuffer.js +565 -0
- package/Build/Workers/createVerticesFromHeightmap.js +2254 -0
- package/Build/Workers/createVerticesFromQuantizedTerrainMesh.js +499 -0
- package/Build/Workers/createWallGeometry.js +487 -0
- package/Build/Workers/createWallOutlineGeometry.js +335 -0
- package/Build/Workers/decodeDraco.js +369 -0
- package/Build/Workers/decodeGoogleEarthEnterprisePacket.js +2666 -0
- package/Build/Workers/decodeI3S.js +1339 -0
- package/Build/Workers/gaussianSplatSorter.js +62 -0
- package/Build/Workers/gaussianSplatTextureGenerator.js +68 -0
- package/Build/Workers/incrementallyBuildTerrainPicker.js +121 -0
- package/Build/Workers/transcodeKTX2.js +3463 -0
- package/Build/Workers/transferTypedArrayTest.js +41 -0
- package/Build/Workers/upsampleQuantizedTerrainMesh.js +820 -0
- package/Build/Workers/upsampleVerticesFromCesium3DTilesTerrain.js +95 -0
- package/LICENSE.md +928 -0
- package/README.md +3 -0
- package/Source/Assets/IAU2006_XYS/IAU2006_XYS_0.json +1 -0
- package/Source/Assets/IAU2006_XYS/IAU2006_XYS_1.json +1 -0
- package/Source/Assets/IAU2006_XYS/IAU2006_XYS_10.json +1 -0
- package/Source/Assets/IAU2006_XYS/IAU2006_XYS_11.json +1 -0
- package/Source/Assets/IAU2006_XYS/IAU2006_XYS_12.json +1 -0
- package/Source/Assets/IAU2006_XYS/IAU2006_XYS_13.json +1 -0
- package/Source/Assets/IAU2006_XYS/IAU2006_XYS_14.json +1 -0
- package/Source/Assets/IAU2006_XYS/IAU2006_XYS_15.json +1 -0
- package/Source/Assets/IAU2006_XYS/IAU2006_XYS_16.json +1 -0
- package/Source/Assets/IAU2006_XYS/IAU2006_XYS_17.json +1 -0
- package/Source/Assets/IAU2006_XYS/IAU2006_XYS_18.json +1 -0
- package/Source/Assets/IAU2006_XYS/IAU2006_XYS_19.json +1 -0
- package/Source/Assets/IAU2006_XYS/IAU2006_XYS_2.json +1 -0
- package/Source/Assets/IAU2006_XYS/IAU2006_XYS_20.json +1 -0
- package/Source/Assets/IAU2006_XYS/IAU2006_XYS_21.json +1 -0
- package/Source/Assets/IAU2006_XYS/IAU2006_XYS_22.json +1 -0
- package/Source/Assets/IAU2006_XYS/IAU2006_XYS_23.json +1 -0
- package/Source/Assets/IAU2006_XYS/IAU2006_XYS_24.json +1 -0
- package/Source/Assets/IAU2006_XYS/IAU2006_XYS_25.json +1 -0
- package/Source/Assets/IAU2006_XYS/IAU2006_XYS_26.json +1 -0
- package/Source/Assets/IAU2006_XYS/IAU2006_XYS_27.json +1 -0
- package/Source/Assets/IAU2006_XYS/IAU2006_XYS_3.json +1 -0
- package/Source/Assets/IAU2006_XYS/IAU2006_XYS_4.json +1 -0
- package/Source/Assets/IAU2006_XYS/IAU2006_XYS_5.json +1 -0
- package/Source/Assets/IAU2006_XYS/IAU2006_XYS_6.json +1 -0
- package/Source/Assets/IAU2006_XYS/IAU2006_XYS_7.json +1 -0
- package/Source/Assets/IAU2006_XYS/IAU2006_XYS_8.json +1 -0
- package/Source/Assets/IAU2006_XYS/IAU2006_XYS_9.json +1 -0
- package/Source/Assets/Images/bing_maps_credit.png +0 -0
- package/Source/Assets/Images/cesium_credit.png +0 -0
- package/Source/Assets/Images/google_earth_credit.png +0 -0
- package/Source/Assets/Images/ion-credit.png +0 -0
- package/Source/Assets/Textures/LensFlare/DirtMask.jpg +0 -0
- package/Source/Assets/Textures/LensFlare/StarBurst.jpg +0 -0
- package/Source/Assets/Textures/NaturalEarthII/0/0/0.jpg +0 -0
- package/Source/Assets/Textures/NaturalEarthII/0/1/0.jpg +0 -0
- package/Source/Assets/Textures/NaturalEarthII/1/0/0.jpg +0 -0
- package/Source/Assets/Textures/NaturalEarthII/1/0/1.jpg +0 -0
- package/Source/Assets/Textures/NaturalEarthII/1/1/0.jpg +0 -0
- package/Source/Assets/Textures/NaturalEarthII/1/1/1.jpg +0 -0
- package/Source/Assets/Textures/NaturalEarthII/1/2/0.jpg +0 -0
- package/Source/Assets/Textures/NaturalEarthII/1/2/1.jpg +0 -0
- package/Source/Assets/Textures/NaturalEarthII/1/3/0.jpg +0 -0
- package/Source/Assets/Textures/NaturalEarthII/1/3/1.jpg +0 -0
- package/Source/Assets/Textures/NaturalEarthII/2/0/0.jpg +0 -0
- package/Source/Assets/Textures/NaturalEarthII/2/0/1.jpg +0 -0
- package/Source/Assets/Textures/NaturalEarthII/2/0/2.jpg +0 -0
- package/Source/Assets/Textures/NaturalEarthII/2/0/3.jpg +0 -0
- package/Source/Assets/Textures/NaturalEarthII/2/1/0.jpg +0 -0
- package/Source/Assets/Textures/NaturalEarthII/2/1/1.jpg +0 -0
- package/Source/Assets/Textures/NaturalEarthII/2/1/2.jpg +0 -0
- package/Source/Assets/Textures/NaturalEarthII/2/1/3.jpg +0 -0
- package/Source/Assets/Textures/NaturalEarthII/2/2/0.jpg +0 -0
- package/Source/Assets/Textures/NaturalEarthII/2/2/1.jpg +0 -0
- package/Source/Assets/Textures/NaturalEarthII/2/2/2.jpg +0 -0
- package/Source/Assets/Textures/NaturalEarthII/2/2/3.jpg +0 -0
- package/Source/Assets/Textures/NaturalEarthII/2/3/0.jpg +0 -0
- package/Source/Assets/Textures/NaturalEarthII/2/3/1.jpg +0 -0
- package/Source/Assets/Textures/NaturalEarthII/2/3/2.jpg +0 -0
- package/Source/Assets/Textures/NaturalEarthII/2/3/3.jpg +0 -0
- package/Source/Assets/Textures/NaturalEarthII/2/4/0.jpg +0 -0
- package/Source/Assets/Textures/NaturalEarthII/2/4/1.jpg +0 -0
- package/Source/Assets/Textures/NaturalEarthII/2/4/2.jpg +0 -0
- package/Source/Assets/Textures/NaturalEarthII/2/4/3.jpg +0 -0
- package/Source/Assets/Textures/NaturalEarthII/2/5/0.jpg +0 -0
- package/Source/Assets/Textures/NaturalEarthII/2/5/1.jpg +0 -0
- package/Source/Assets/Textures/NaturalEarthII/2/5/2.jpg +0 -0
- package/Source/Assets/Textures/NaturalEarthII/2/5/3.jpg +0 -0
- package/Source/Assets/Textures/NaturalEarthII/2/6/0.jpg +0 -0
- package/Source/Assets/Textures/NaturalEarthII/2/6/1.jpg +0 -0
- package/Source/Assets/Textures/NaturalEarthII/2/6/2.jpg +0 -0
- package/Source/Assets/Textures/NaturalEarthII/2/6/3.jpg +0 -0
- package/Source/Assets/Textures/NaturalEarthII/2/7/0.jpg +0 -0
- package/Source/Assets/Textures/NaturalEarthII/2/7/1.jpg +0 -0
- package/Source/Assets/Textures/NaturalEarthII/2/7/2.jpg +0 -0
- package/Source/Assets/Textures/NaturalEarthII/2/7/3.jpg +0 -0
- package/Source/Assets/Textures/NaturalEarthII/tilemapresource.xml +14 -0
- package/Source/Assets/Textures/SkyBox/tycho2t3_80_mx.jpg +0 -0
- package/Source/Assets/Textures/SkyBox/tycho2t3_80_my.jpg +0 -0
- package/Source/Assets/Textures/SkyBox/tycho2t3_80_mz.jpg +0 -0
- package/Source/Assets/Textures/SkyBox/tycho2t3_80_px.jpg +0 -0
- package/Source/Assets/Textures/SkyBox/tycho2t3_80_py.jpg +0 -0
- package/Source/Assets/Textures/SkyBox/tycho2t3_80_pz.jpg +0 -0
- package/Source/Assets/Textures/maki/airfield.png +0 -0
- package/Source/Assets/Textures/maki/airport.png +0 -0
- package/Source/Assets/Textures/maki/alcohol-shop.png +0 -0
- package/Source/Assets/Textures/maki/america-football.png +0 -0
- package/Source/Assets/Textures/maki/art-gallery.png +0 -0
- package/Source/Assets/Textures/maki/bakery.png +0 -0
- package/Source/Assets/Textures/maki/bank.png +0 -0
- package/Source/Assets/Textures/maki/bar.png +0 -0
- package/Source/Assets/Textures/maki/baseball.png +0 -0
- package/Source/Assets/Textures/maki/basketball.png +0 -0
- package/Source/Assets/Textures/maki/beer.png +0 -0
- package/Source/Assets/Textures/maki/bicycle.png +0 -0
- package/Source/Assets/Textures/maki/building.png +0 -0
- package/Source/Assets/Textures/maki/bus.png +0 -0
- package/Source/Assets/Textures/maki/cafe.png +0 -0
- package/Source/Assets/Textures/maki/camera.png +0 -0
- package/Source/Assets/Textures/maki/campsite.png +0 -0
- package/Source/Assets/Textures/maki/car.png +0 -0
- package/Source/Assets/Textures/maki/cemetery.png +0 -0
- package/Source/Assets/Textures/maki/cesium.png +0 -0
- package/Source/Assets/Textures/maki/chemist.png +0 -0
- package/Source/Assets/Textures/maki/cinema.png +0 -0
- package/Source/Assets/Textures/maki/circle-stroked.png +0 -0
- package/Source/Assets/Textures/maki/circle.png +0 -0
- package/Source/Assets/Textures/maki/city.png +0 -0
- package/Source/Assets/Textures/maki/clothing-store.png +0 -0
- package/Source/Assets/Textures/maki/college.png +0 -0
- package/Source/Assets/Textures/maki/commercial.png +0 -0
- package/Source/Assets/Textures/maki/cricket.png +0 -0
- package/Source/Assets/Textures/maki/cross.png +0 -0
- package/Source/Assets/Textures/maki/dam.png +0 -0
- package/Source/Assets/Textures/maki/danger.png +0 -0
- package/Source/Assets/Textures/maki/disability.png +0 -0
- package/Source/Assets/Textures/maki/dog-park.png +0 -0
- package/Source/Assets/Textures/maki/embassy.png +0 -0
- package/Source/Assets/Textures/maki/emergency-telephone.png +0 -0
- package/Source/Assets/Textures/maki/entrance.png +0 -0
- package/Source/Assets/Textures/maki/farm.png +0 -0
- package/Source/Assets/Textures/maki/fast-food.png +0 -0
- package/Source/Assets/Textures/maki/ferry.png +0 -0
- package/Source/Assets/Textures/maki/fire-station.png +0 -0
- package/Source/Assets/Textures/maki/fuel.png +0 -0
- package/Source/Assets/Textures/maki/garden.png +0 -0
- package/Source/Assets/Textures/maki/gift.png +0 -0
- package/Source/Assets/Textures/maki/golf.png +0 -0
- package/Source/Assets/Textures/maki/grocery.png +0 -0
- package/Source/Assets/Textures/maki/hairdresser.png +0 -0
- package/Source/Assets/Textures/maki/harbor.png +0 -0
- package/Source/Assets/Textures/maki/heart.png +0 -0
- package/Source/Assets/Textures/maki/heliport.png +0 -0
- package/Source/Assets/Textures/maki/hospital.png +0 -0
- package/Source/Assets/Textures/maki/ice-cream.png +0 -0
- package/Source/Assets/Textures/maki/industrial.png +0 -0
- package/Source/Assets/Textures/maki/land-use.png +0 -0
- package/Source/Assets/Textures/maki/laundry.png +0 -0
- package/Source/Assets/Textures/maki/library.png +0 -0
- package/Source/Assets/Textures/maki/lighthouse.png +0 -0
- package/Source/Assets/Textures/maki/lodging.png +0 -0
- package/Source/Assets/Textures/maki/logging.png +0 -0
- package/Source/Assets/Textures/maki/london-underground.png +0 -0
- package/Source/Assets/Textures/maki/marker-stroked.png +0 -0
- package/Source/Assets/Textures/maki/marker.png +0 -0
- package/Source/Assets/Textures/maki/minefield.png +0 -0
- package/Source/Assets/Textures/maki/mobilephone.png +0 -0
- package/Source/Assets/Textures/maki/monument.png +0 -0
- package/Source/Assets/Textures/maki/museum.png +0 -0
- package/Source/Assets/Textures/maki/music.png +0 -0
- package/Source/Assets/Textures/maki/oil-well.png +0 -0
- package/Source/Assets/Textures/maki/park.png +0 -0
- package/Source/Assets/Textures/maki/park2.png +0 -0
- package/Source/Assets/Textures/maki/parking-garage.png +0 -0
- package/Source/Assets/Textures/maki/parking.png +0 -0
- package/Source/Assets/Textures/maki/pharmacy.png +0 -0
- package/Source/Assets/Textures/maki/pitch.png +0 -0
- package/Source/Assets/Textures/maki/place-of-worship.png +0 -0
- package/Source/Assets/Textures/maki/playground.png +0 -0
- package/Source/Assets/Textures/maki/police.png +0 -0
- package/Source/Assets/Textures/maki/polling-place.png +0 -0
- package/Source/Assets/Textures/maki/post.png +0 -0
- package/Source/Assets/Textures/maki/prison.png +0 -0
- package/Source/Assets/Textures/maki/rail-above.png +0 -0
- package/Source/Assets/Textures/maki/rail-light.png +0 -0
- package/Source/Assets/Textures/maki/rail-metro.png +0 -0
- package/Source/Assets/Textures/maki/rail-underground.png +0 -0
- package/Source/Assets/Textures/maki/rail.png +0 -0
- package/Source/Assets/Textures/maki/religious-christian.png +0 -0
- package/Source/Assets/Textures/maki/religious-jewish.png +0 -0
- package/Source/Assets/Textures/maki/religious-muslim.png +0 -0
- package/Source/Assets/Textures/maki/restaurant.png +0 -0
- package/Source/Assets/Textures/maki/roadblock.png +0 -0
- package/Source/Assets/Textures/maki/rocket.png +0 -0
- package/Source/Assets/Textures/maki/school.png +0 -0
- package/Source/Assets/Textures/maki/scooter.png +0 -0
- package/Source/Assets/Textures/maki/shop.png +0 -0
- package/Source/Assets/Textures/maki/skiing.png +0 -0
- package/Source/Assets/Textures/maki/slaughterhouse.png +0 -0
- package/Source/Assets/Textures/maki/soccer.png +0 -0
- package/Source/Assets/Textures/maki/square-stroked.png +0 -0
- package/Source/Assets/Textures/maki/square.png +0 -0
- package/Source/Assets/Textures/maki/star-stroked.png +0 -0
- package/Source/Assets/Textures/maki/star.png +0 -0
- package/Source/Assets/Textures/maki/suitcase.png +0 -0
- package/Source/Assets/Textures/maki/swimming.png +0 -0
- package/Source/Assets/Textures/maki/telephone.png +0 -0
- package/Source/Assets/Textures/maki/tennis.png +0 -0
- package/Source/Assets/Textures/maki/theatre.png +0 -0
- package/Source/Assets/Textures/maki/toilets.png +0 -0
- package/Source/Assets/Textures/maki/town-hall.png +0 -0
- package/Source/Assets/Textures/maki/town.png +0 -0
- package/Source/Assets/Textures/maki/triangle-stroked.png +0 -0
- package/Source/Assets/Textures/maki/triangle.png +0 -0
- package/Source/Assets/Textures/maki/village.png +0 -0
- package/Source/Assets/Textures/maki/warehouse.png +0 -0
- package/Source/Assets/Textures/maki/waste-basket.png +0 -0
- package/Source/Assets/Textures/maki/water.png +0 -0
- package/Source/Assets/Textures/maki/wetland.png +0 -0
- package/Source/Assets/Textures/maki/zoo.png +0 -0
- package/Source/Assets/Textures/moonSmall.jpg +0 -0
- package/Source/Assets/Textures/pin.svg +1 -0
- package/Source/Assets/Textures/waterNormals.jpg +0 -0
- package/Source/Assets/Textures/waterNormalsSmall.jpg +0 -0
- package/Source/Assets/approximateTerrainHeights.json +1 -0
- package/Source/Core/ApproximateTerrainHeights.js +255 -0
- package/Source/Core/ArcGISTiledElevationTerrainProvider.js +755 -0
- package/Source/Core/ArcType.js +31 -0
- package/Source/Core/ArticulationStageType.js +23 -0
- package/Source/Core/AssociativeArray.js +127 -0
- package/Source/Core/AttributeCompression.js +527 -0
- package/Source/Core/AxisAlignedBoundingBox.js +294 -0
- package/Source/Core/BingMapsGeocoderService.js +127 -0
- package/Source/Core/BoundingRectangle.js +374 -0
- package/Source/Core/BoundingSphere.js +1506 -0
- package/Source/Core/BoxGeometry.js +893 -0
- package/Source/Core/BoxOutlineGeometry.js +312 -0
- package/Source/Core/Cartesian2.js +823 -0
- package/Source/Core/Cartesian3.js +1220 -0
- package/Source/Core/Cartesian4.js +979 -0
- package/Source/Core/Cartographic.js +304 -0
- package/Source/Core/CartographicGeocoderService.js +73 -0
- package/Source/Core/CatmullRomSpline.js +324 -0
- package/Source/Core/Cesium3DTilesTerrainData.js +932 -0
- package/Source/Core/Cesium3DTilesTerrainGeometryProcessor.js +1868 -0
- package/Source/Core/Cesium3DTilesTerrainProvider.js +1052 -0
- package/Source/Core/CesiumTerrainProvider.js +1408 -0
- package/Source/Core/Check.d.ts +131 -0
- package/Source/Core/Check.js +212 -0
- package/Source/Core/CircleGeometry.js +207 -0
- package/Source/Core/CircleOutlineGeometry.js +149 -0
- package/Source/Core/Clock.js +316 -0
- package/Source/Core/ClockRange.js +39 -0
- package/Source/Core/ClockStep.js +38 -0
- package/Source/Core/Color.js +2283 -0
- package/Source/Core/ColorGeometryInstanceAttribute.js +181 -0
- package/Source/Core/ComponentDatatype.js +338 -0
- package/Source/Core/CompressedTextureBuffer.js +125 -0
- package/Source/Core/ConstantSpline.js +119 -0
- package/Source/Core/CoplanarPolygonGeometry.js +600 -0
- package/Source/Core/CoplanarPolygonGeometryLibrary.js +132 -0
- package/Source/Core/CoplanarPolygonOutlineGeometry.js +237 -0
- package/Source/Core/CornerType.js +37 -0
- package/Source/Core/CorridorGeometry.js +1411 -0
- package/Source/Core/CorridorGeometryLibrary.js +501 -0
- package/Source/Core/CorridorOutlineGeometry.js +599 -0
- package/Source/Core/Credit.js +172 -0
- package/Source/Core/CubicRealPolynomial.js +238 -0
- package/Source/Core/CullingVolume.js +216 -0
- package/Source/Core/CustomHeightmapTerrainProvider.js +287 -0
- package/Source/Core/CylinderGeometry.js +479 -0
- package/Source/Core/CylinderGeometryLibrary.js +59 -0
- package/Source/Core/CylinderOutlineGeometry.js +269 -0
- package/Source/Core/DefaultProxy.js +26 -0
- package/Source/Core/DeveloperError.js +75 -0
- package/Source/Core/DistanceDisplayCondition.js +171 -0
- package/Source/Core/DistanceDisplayConditionGeometryInstanceAttribute.js +179 -0
- package/Source/Core/DoubleEndedPriorityQueue.js +405 -0
- package/Source/Core/DoublyLinkedList.js +112 -0
- package/Source/Core/EarthOrientationParameters.js +431 -0
- package/Source/Core/EarthOrientationParametersSample.js +52 -0
- package/Source/Core/EasingFunction.js +257 -0
- package/Source/Core/EllipseGeometry.js +1318 -0
- package/Source/Core/EllipseGeometryLibrary.js +365 -0
- package/Source/Core/EllipseOutlineGeometry.js +451 -0
- package/Source/Core/Ellipsoid.js +889 -0
- package/Source/Core/EllipsoidGeodesic.js +523 -0
- package/Source/Core/EllipsoidGeometry.js +650 -0
- package/Source/Core/EllipsoidOutlineGeometry.js +464 -0
- package/Source/Core/EllipsoidRhumbLine.js +751 -0
- package/Source/Core/EllipsoidTangentPlane.js +382 -0
- package/Source/Core/EllipsoidTerrainProvider.js +201 -0
- package/Source/Core/EllipsoidalOccluder.js +538 -0
- package/Source/Core/EncodedCartesian3.js +170 -0
- package/Source/Core/Event.js +205 -0
- package/Source/Core/EventHelper.js +74 -0
- package/Source/Core/ExtrapolationType.js +34 -0
- package/Source/Core/FeatureDetection.js +435 -0
- package/Source/Core/Frozen.js +24 -0
- package/Source/Core/FrustumGeometry.js +583 -0
- package/Source/Core/FrustumOutlineGeometry.js +253 -0
- package/Source/Core/Fullscreen.js +249 -0
- package/Source/Core/GeocodeType.js +24 -0
- package/Source/Core/GeocoderService.js +60 -0
- package/Source/Core/GeographicProjection.js +105 -0
- package/Source/Core/GeographicTilingScheme.js +245 -0
- package/Source/Core/Geometry.js +371 -0
- package/Source/Core/GeometryAttribute.js +133 -0
- package/Source/Core/GeometryAttributes.js +88 -0
- package/Source/Core/GeometryFactory.js +25 -0
- package/Source/Core/GeometryInstance.js +118 -0
- package/Source/Core/GeometryInstanceAttribute.js +133 -0
- package/Source/Core/GeometryOffsetAttribute.js +10 -0
- package/Source/Core/GeometryPipeline.js +3291 -0
- package/Source/Core/GeometryType.js +10 -0
- package/Source/Core/GoogleEarthEnterpriseMetadata.js +584 -0
- package/Source/Core/GoogleEarthEnterpriseTerrainData.js +606 -0
- package/Source/Core/GoogleEarthEnterpriseTerrainProvider.js +574 -0
- package/Source/Core/GoogleEarthEnterpriseTileInformation.js +136 -0
- package/Source/Core/GoogleGeocoderService.js +110 -0
- package/Source/Core/GoogleMaps.js +40 -0
- package/Source/Core/GregorianDate.js +153 -0
- package/Source/Core/GroundPolylineGeometry.js +1659 -0
- package/Source/Core/HeadingPitchRange.js +59 -0
- package/Source/Core/HeadingPitchRoll.js +235 -0
- package/Source/Core/Heap.js +233 -0
- package/Source/Core/HeightmapEncoding.js +25 -0
- package/Source/Core/HeightmapTerrainData.js +903 -0
- package/Source/Core/HeightmapTessellator.js +518 -0
- package/Source/Core/HermitePolynomialApproximation.js +341 -0
- package/Source/Core/HermiteSpline.js +620 -0
- package/Source/Core/HilbertOrder.js +112 -0
- package/Source/Core/ITwinPlatform.js +388 -0
- package/Source/Core/Iau2000Orientation.js +167 -0
- package/Source/Core/Iau2006XysData.js +275 -0
- package/Source/Core/Iau2006XysSample.js +32 -0
- package/Source/Core/IauOrientationAxes.js +105 -0
- package/Source/Core/IauOrientationParameters.js +54 -0
- package/Source/Core/IndexDatatype.js +199 -0
- package/Source/Core/InterpolationAlgorithm.js +65 -0
- package/Source/Core/InterpolationType.js +14 -0
- package/Source/Core/Intersect.js +34 -0
- package/Source/Core/IntersectionTests.js +1087 -0
- package/Source/Core/Intersections2D.js +358 -0
- package/Source/Core/Interval.js +23 -0
- package/Source/Core/Ion.js +56 -0
- package/Source/Core/IonGeocodeProviderType.js +33 -0
- package/Source/Core/IonGeocoderService.js +147 -0
- package/Source/Core/IonResource.js +321 -0
- package/Source/Core/Iso8601.js +54 -0
- package/Source/Core/JulianDate.js +1229 -0
- package/Source/Core/KTX2Transcoder.js +92 -0
- package/Source/Core/KeyboardEventModifier.js +32 -0
- package/Source/Core/LagrangePolynomialApproximation.js +71 -0
- package/Source/Core/LeapSecond.js +24 -0
- package/Source/Core/LinearApproximation.js +83 -0
- package/Source/Core/LinearSpline.js +166 -0
- package/Source/Core/ManagedArray.js +162 -0
- package/Source/Core/MapProjection.js +62 -0
- package/Source/Core/Math.js +1125 -0
- package/Source/Core/Matrix2.js +1092 -0
- package/Source/Core/Matrix3.js +1838 -0
- package/Source/Core/Matrix4.js +3233 -0
- package/Source/Core/MorphWeightSpline.js +161 -0
- package/Source/Core/MortonOrder.js +214 -0
- package/Source/Core/NearFarScalar.js +173 -0
- package/Source/Core/Occluder.js +727 -0
- package/Source/Core/OffsetGeometryInstanceAttribute.js +125 -0
- package/Source/Core/OpenCageGeocoderService.js +134 -0
- package/Source/Core/OrientedBoundingBox.js +1272 -0
- package/Source/Core/OrthographicFrustum.js +351 -0
- package/Source/Core/OrthographicOffCenterFrustum.js +463 -0
- package/Source/Core/Packable.js +40 -0
- package/Source/Core/PackableForInterpolation.js +43 -0
- package/Source/Core/PeliasGeocoderService.js +106 -0
- package/Source/Core/PerspectiveFrustum.js +459 -0
- package/Source/Core/PerspectiveOffCenterFrustum.js +522 -0
- package/Source/Core/PinBuilder.js +234 -0
- package/Source/Core/PixelFormat.js +603 -0
- package/Source/Core/Plane.js +312 -0
- package/Source/Core/PlaneGeometry.js +250 -0
- package/Source/Core/PlaneOutlineGeometry.js +113 -0
- package/Source/Core/PolygonGeometry.js +1580 -0
- package/Source/Core/PolygonGeometryLibrary.js +1301 -0
- package/Source/Core/PolygonHierarchy.js +25 -0
- package/Source/Core/PolygonOutlineGeometry.js +687 -0
- package/Source/Core/PolygonPipeline.js +632 -0
- package/Source/Core/PolylineGeometry.js +573 -0
- package/Source/Core/PolylinePipeline.js +573 -0
- package/Source/Core/PolylineVolumeGeometry.js +412 -0
- package/Source/Core/PolylineVolumeGeometryLibrary.js +701 -0
- package/Source/Core/PolylineVolumeOutlineGeometry.js +294 -0
- package/Source/Core/PrimitiveType.js +107 -0
- package/Source/Core/Proxy.js +24 -0
- package/Source/Core/QuadraticRealPolynomial.js +147 -0
- package/Source/Core/QuantizedMeshTerrainData.js +735 -0
- package/Source/Core/QuarticRealPolynomial.js +342 -0
- package/Source/Core/Quaternion.js +1145 -0
- package/Source/Core/QuaternionSpline.js +155 -0
- package/Source/Core/Queue.js +126 -0
- package/Source/Core/Ray.js +79 -0
- package/Source/Core/Rectangle.js +1071 -0
- package/Source/Core/RectangleCollisionChecker.js +95 -0
- package/Source/Core/RectangleGeometry.js +1480 -0
- package/Source/Core/RectangleGeometryLibrary.js +286 -0
- package/Source/Core/RectangleOutlineGeometry.js +532 -0
- package/Source/Core/ReferenceFrame.js +23 -0
- package/Source/Core/Request.js +193 -0
- package/Source/Core/RequestErrorEvent.js +58 -0
- package/Source/Core/RequestScheduler.js +519 -0
- package/Source/Core/RequestState.js +55 -0
- package/Source/Core/RequestType.js +39 -0
- package/Source/Core/Resource.js +2280 -0
- package/Source/Core/RuntimeError.js +65 -0
- package/Source/Core/S2Cell.js +734 -0
- package/Source/Core/ScreenSpaceEventHandler.js +1140 -0
- package/Source/Core/ScreenSpaceEventType.js +127 -0
- package/Source/Core/ShowGeometryInstanceAttribute.js +122 -0
- package/Source/Core/Simon1994PlanetaryPositions.js +684 -0
- package/Source/Core/SimplePolylineGeometry.js +454 -0
- package/Source/Core/SphereGeometry.js +117 -0
- package/Source/Core/SphereOutlineGeometry.js +119 -0
- package/Source/Core/Spherical.js +183 -0
- package/Source/Core/Spline.js +188 -0
- package/Source/Core/SteppedSpline.js +160 -0
- package/Source/Core/Stereographic.js +247 -0
- package/Source/Core/TaskProcessor.js +403 -0
- package/Source/Core/TerrainData.js +126 -0
- package/Source/Core/TerrainEncoding.js +772 -0
- package/Source/Core/TerrainMesh.js +361 -0
- package/Source/Core/TerrainPicker.js +607 -0
- package/Source/Core/TerrainProvider.js +585 -0
- package/Source/Core/TerrainQuantization.js +25 -0
- package/Source/Core/TexturePacker.js +181 -0
- package/Source/Core/TileAvailability.js +564 -0
- package/Source/Core/TileEdge.js +14 -0
- package/Source/Core/TileProviderError.js +170 -0
- package/Source/Core/TilingScheme.js +132 -0
- package/Source/Core/TimeConstants.js +83 -0
- package/Source/Core/TimeInterval.js +438 -0
- package/Source/Core/TimeIntervalCollection.js +1137 -0
- package/Source/Core/TimeStandard.js +30 -0
- package/Source/Core/Tipsify.js +314 -0
- package/Source/Core/TrackingReferenceFrame.js +45 -0
- package/Source/Core/Transforms.js +1277 -0
- package/Source/Core/TranslationRotationScale.js +57 -0
- package/Source/Core/TridiagonalSystemSolver.js +113 -0
- package/Source/Core/TrustedServers.js +146 -0
- package/Source/Core/VRTheWorldTerrainProvider.js +462 -0
- package/Source/Core/VertexFormat.js +311 -0
- package/Source/Core/VerticalExaggeration.js +70 -0
- package/Source/Core/VideoSynchronizer.js +222 -0
- package/Source/Core/Visibility.js +34 -0
- package/Source/Core/VulkanConstants.js +286 -0
- package/Source/Core/WallGeometry.js +623 -0
- package/Source/Core/WallGeometryLibrary.js +212 -0
- package/Source/Core/WallOutlineGeometry.js +431 -0
- package/Source/Core/WebGLConstants.js +614 -0
- package/Source/Core/WebMercatorProjection.js +152 -0
- package/Source/Core/WebMercatorTilingScheme.js +291 -0
- package/Source/Core/WindingOrder.js +36 -0
- package/Source/Core/WireframeIndexGenerator.js +238 -0
- package/Source/Core/addAllToArray.js +40 -0
- package/Source/Core/appendForwardSlash.js +10 -0
- package/Source/Core/arrayRemoveDuplicates.js +129 -0
- package/Source/Core/barycentricCoordinates.js +109 -0
- package/Source/Core/binarySearch.js +67 -0
- package/Source/Core/buildModuleUrl.js +153 -0
- package/Source/Core/clone.js +30 -0
- package/Source/Core/combine.js +79 -0
- package/Source/Core/createGuid.js +22 -0
- package/Source/Core/createWorldBathymetryAsync.js +45 -0
- package/Source/Core/createWorldTerrainAsync.js +50 -0
- package/Source/Core/decodeGoogleEarthEnterpriseData.js +93 -0
- package/Source/Core/decodeVectorPolylinePositions.js +51 -0
- package/Source/Core/defaultValue.js +29 -0
- package/Source/Core/defer.js +44 -0
- package/Source/Core/defined.d.ts +11 -0
- package/Source/Core/defined.js +17 -0
- package/Source/Core/deprecationWarning.js +53 -0
- package/Source/Core/destroyObject.js +53 -0
- package/Source/Core/formatError.js +30 -0
- package/Source/Core/getAbsoluteUri.js +46 -0
- package/Source/Core/getBaseUri.js +47 -0
- package/Source/Core/getExtensionFromUri.js +38 -0
- package/Source/Core/getFilenameFromUri.js +32 -0
- package/Source/Core/getImageFromTypedArray.js +24 -0
- package/Source/Core/getImagePixels.js +44 -0
- package/Source/Core/getJsonFromTypedArray.js +21 -0
- package/Source/Core/getMagic.js +14 -0
- package/Source/Core/getStringFromTypedArray.js +165 -0
- package/Source/Core/getTimestamp.js +26 -0
- package/Source/Core/isBitSet.js +7 -0
- package/Source/Core/isBlobUri.js +22 -0
- package/Source/Core/isCrossOriginUrl.js +30 -0
- package/Source/Core/isDataUri.js +22 -0
- package/Source/Core/isLeapYear.js +23 -0
- package/Source/Core/loadAndExecuteScript.js +27 -0
- package/Source/Core/loadImageFromTypedArray.js +66 -0
- package/Source/Core/loadKTX2.js +104 -0
- package/Source/Core/mergeSort.js +111 -0
- package/Source/Core/objectToQuery.js +57 -0
- package/Source/Core/oneTimeWarning.js +51 -0
- package/Source/Core/parseResponseHeaders.js +37 -0
- package/Source/Core/pointInsideTriangle.js +39 -0
- package/Source/Core/queryToObject.js +60 -0
- package/Source/Core/resizeImageToNextPowerOfTwo.js +31 -0
- package/Source/Core/sampleTerrain.js +291 -0
- package/Source/Core/sampleTerrainMostDetailed.js +132 -0
- package/Source/Core/scaleToGeodeticSurface.js +147 -0
- package/Source/Core/srgbToLinear.js +32 -0
- package/Source/Core/subdivideArray.js +35 -0
- package/Source/Core/webGLConstantToGlslType.js +25 -0
- package/Source/Core/wrapFunction.js +26 -0
- package/Source/Core/writeTextToCanvas.js +219 -0
- package/Source/DataSources/BillboardGraphics.js +419 -0
- package/Source/DataSources/BillboardVisualizer.js +351 -0
- package/Source/DataSources/BoundingSphereState.js +26 -0
- package/Source/DataSources/BoxGeometryUpdater.js +326 -0
- package/Source/DataSources/BoxGraphics.js +208 -0
- package/Source/DataSources/CallbackPositionProperty.js +172 -0
- package/Source/DataSources/CallbackProperty.js +117 -0
- package/Source/DataSources/Cesium3DTilesetGraphics.js +111 -0
- package/Source/DataSources/Cesium3DTilesetVisualizer.js +261 -0
- package/Source/DataSources/CheckerboardMaterialProperty.js +157 -0
- package/Source/DataSources/ColorMaterialProperty.js +112 -0
- package/Source/DataSources/CompositeEntityCollection.js +591 -0
- package/Source/DataSources/CompositeMaterialProperty.js +128 -0
- package/Source/DataSources/CompositePositionProperty.js +153 -0
- package/Source/DataSources/CompositeProperty.js +154 -0
- package/Source/DataSources/ConstantPositionProperty.js +151 -0
- package/Source/DataSources/ConstantProperty.js +116 -0
- package/Source/DataSources/CorridorGeometryUpdater.js +409 -0
- package/Source/DataSources/CorridorGraphics.js +316 -0
- package/Source/DataSources/CustomDataSource.js +173 -0
- package/Source/DataSources/CylinderGeometryUpdater.js +375 -0
- package/Source/DataSources/CylinderGraphics.js +258 -0
- package/Source/DataSources/CzmlDataSource.js +5142 -0
- package/Source/DataSources/DataSource.js +121 -0
- package/Source/DataSources/DataSourceClock.js +164 -0
- package/Source/DataSources/DataSourceCollection.js +335 -0
- package/Source/DataSources/DataSourceDisplay.js +543 -0
- package/Source/DataSources/DynamicGeometryBatch.js +56 -0
- package/Source/DataSources/DynamicGeometryUpdater.js +270 -0
- package/Source/DataSources/EllipseGeometryUpdater.js +434 -0
- package/Source/DataSources/EllipseGraphics.js +343 -0
- package/Source/DataSources/EllipsoidGeometryUpdater.js +710 -0
- package/Source/DataSources/EllipsoidGraphics.js +312 -0
- package/Source/DataSources/Entity.js +789 -0
- package/Source/DataSources/EntityCluster.js +1022 -0
- package/Source/DataSources/EntityCollection.js +439 -0
- package/Source/DataSources/EntityView.js +476 -0
- package/Source/DataSources/GeoJsonDataSource.js +1064 -0
- package/Source/DataSources/GeometryUpdater.js +538 -0
- package/Source/DataSources/GeometryUpdaterSet.js +114 -0
- package/Source/DataSources/GeometryVisualizer.js +549 -0
- package/Source/DataSources/GpxDataSource.js +1018 -0
- package/Source/DataSources/GridMaterialProperty.js +204 -0
- package/Source/DataSources/GroundGeometryUpdater.js +234 -0
- package/Source/DataSources/ImageMaterialProperty.js +173 -0
- package/Source/DataSources/KmlCamera.js +13 -0
- package/Source/DataSources/KmlDataSource.js +4249 -0
- package/Source/DataSources/KmlLookAt.js +12 -0
- package/Source/DataSources/KmlTour.js +165 -0
- package/Source/DataSources/KmlTourFlyTo.js +109 -0
- package/Source/DataSources/KmlTourWait.js +52 -0
- package/Source/DataSources/LabelGraphics.js +401 -0
- package/Source/DataSources/LabelVisualizer.js +359 -0
- package/Source/DataSources/MaterialProperty.js +111 -0
- package/Source/DataSources/ModelGraphics.js +456 -0
- package/Source/DataSources/ModelVisualizer.js +560 -0
- package/Source/DataSources/NodeTransformationProperty.js +150 -0
- package/Source/DataSources/PathGraphics.js +161 -0
- package/Source/DataSources/PathVisualizer.js +823 -0
- package/Source/DataSources/PlaneGeometryUpdater.js +385 -0
- package/Source/DataSources/PlaneGraphics.js +208 -0
- package/Source/DataSources/PointGraphics.js +223 -0
- package/Source/DataSources/PointVisualizer.js +438 -0
- package/Source/DataSources/PolygonGeometryUpdater.js +591 -0
- package/Source/DataSources/PolygonGraphics.js +383 -0
- package/Source/DataSources/PolylineArrowMaterialProperty.js +110 -0
- package/Source/DataSources/PolylineDashMaterialProperty.js +174 -0
- package/Source/DataSources/PolylineGeometryUpdater.js +878 -0
- package/Source/DataSources/PolylineGlowMaterialProperty.js +152 -0
- package/Source/DataSources/PolylineGraphics.js +241 -0
- package/Source/DataSources/PolylineOutlineMaterialProperty.js +158 -0
- package/Source/DataSources/PolylineVisualizer.js +409 -0
- package/Source/DataSources/PolylineVolumeGeometryUpdater.js +306 -0
- package/Source/DataSources/PolylineVolumeGraphics.js +235 -0
- package/Source/DataSources/PositionProperty.js +131 -0
- package/Source/DataSources/PositionPropertyArray.js +192 -0
- package/Source/DataSources/Property.js +137 -0
- package/Source/DataSources/PropertyArray.js +147 -0
- package/Source/DataSources/PropertyBag.js +275 -0
- package/Source/DataSources/RectangleGeometryUpdater.js +427 -0
- package/Source/DataSources/RectangleGraphics.js +317 -0
- package/Source/DataSources/ReferenceProperty.js +371 -0
- package/Source/DataSources/Rotation.js +155 -0
- package/Source/DataSources/SampledPositionProperty.js +330 -0
- package/Source/DataSources/SampledProperty.js +855 -0
- package/Source/DataSources/ScaledPositionProperty.js +103 -0
- package/Source/DataSources/StaticGeometryColorBatch.js +570 -0
- package/Source/DataSources/StaticGeometryPerMaterialBatch.js +488 -0
- package/Source/DataSources/StaticGroundGeometryColorBatch.js +394 -0
- package/Source/DataSources/StaticGroundGeometryPerMaterialBatch.js +456 -0
- package/Source/DataSources/StaticGroundPolylinePerMaterialBatch.js +434 -0
- package/Source/DataSources/StaticOutlineGeometryBatch.js +465 -0
- package/Source/DataSources/StripeMaterialProperty.js +193 -0
- package/Source/DataSources/StripeOrientation.js +19 -0
- package/Source/DataSources/TerrainOffsetProperty.js +243 -0
- package/Source/DataSources/TimeIntervalCollectionPositionProperty.js +155 -0
- package/Source/DataSources/TimeIntervalCollectionProperty.js +136 -0
- package/Source/DataSources/VelocityOrientationProperty.js +158 -0
- package/Source/DataSources/VelocityVectorProperty.js +213 -0
- package/Source/DataSources/Visualizer.js +61 -0
- package/Source/DataSources/WallGeometryUpdater.js +275 -0
- package/Source/DataSources/WallGraphics.js +236 -0
- package/Source/DataSources/createMaterialPropertyDescriptor.js +35 -0
- package/Source/DataSources/createPropertyDescriptor.js +71 -0
- package/Source/DataSources/createRawPropertyDescriptor.js +13 -0
- package/Source/DataSources/exportKml.js +1517 -0
- package/Source/DataSources/getElement.js +26 -0
- package/Source/DataSources/heightReferenceOnEntityPropertyChanged.js +47 -0
- package/Source/Renderer/AutomaticUniforms.js +1857 -0
- package/Source/Renderer/Buffer.js +452 -0
- package/Source/Renderer/BufferUsage.js +21 -0
- package/Source/Renderer/ClearCommand.js +102 -0
- package/Source/Renderer/ComputeCommand.js +119 -0
- package/Source/Renderer/ComputeEngine.js +135 -0
- package/Source/Renderer/Context.js +1752 -0
- package/Source/Renderer/ContextLimits.js +299 -0
- package/Source/Renderer/CubeMap.js +686 -0
- package/Source/Renderer/CubeMapFace.js +415 -0
- package/Source/Renderer/DrawCommand.js +644 -0
- package/Source/Renderer/Framebuffer.js +447 -0
- package/Source/Renderer/FramebufferManager.js +489 -0
- package/Source/Renderer/MipmapHint.js +19 -0
- package/Source/Renderer/MultisampleFramebuffer.js +136 -0
- package/Source/Renderer/Pass.js +29 -0
- package/Source/Renderer/PassState.js +57 -0
- package/Source/Renderer/PixelDatatype.js +121 -0
- package/Source/Renderer/RenderState.js +967 -0
- package/Source/Renderer/Renderbuffer.js +105 -0
- package/Source/Renderer/RenderbufferFormat.js +42 -0
- package/Source/Renderer/Sampler.js +116 -0
- package/Source/Renderer/ShaderBuilder.js +597 -0
- package/Source/Renderer/ShaderCache.js +287 -0
- package/Source/Renderer/ShaderDestination.js +51 -0
- package/Source/Renderer/ShaderFunction.js +66 -0
- package/Source/Renderer/ShaderProgram.js +619 -0
- package/Source/Renderer/ShaderSource.js +524 -0
- package/Source/Renderer/ShaderStruct.js +55 -0
- package/Source/Renderer/SharedContext.js +186 -0
- package/Source/Renderer/Sync.js +104 -0
- package/Source/Renderer/Texture.js +1126 -0
- package/Source/Renderer/Texture3D.js +578 -0
- package/Source/Renderer/TextureAtlas.js +833 -0
- package/Source/Renderer/TextureCache.js +81 -0
- package/Source/Renderer/TextureMagnificationFilter.js +41 -0
- package/Source/Renderer/TextureMinificationFilter.js +94 -0
- package/Source/Renderer/TextureWrap.js +19 -0
- package/Source/Renderer/UniformState.js +1948 -0
- package/Source/Renderer/VertexArray.js +869 -0
- package/Source/Renderer/VertexArrayFacade.js +509 -0
- package/Source/Renderer/createUniform.js +422 -0
- package/Source/Renderer/createUniformArray.js +638 -0
- package/Source/Renderer/demodernizeShader.js +84 -0
- package/Source/Renderer/freezeRenderState.js +30 -0
- package/Source/Renderer/loadCubeMap.js +88 -0
- package/Source/Scene/AlphaMode.js +33 -0
- package/Source/Scene/Appearance.js +204 -0
- package/Source/Scene/ArcGisBaseMapType.js +12 -0
- package/Source/Scene/ArcGisMapServerImageryProvider.js +875 -0
- package/Source/Scene/ArcGisMapService.js +80 -0
- package/Source/Scene/Atmosphere.js +149 -0
- package/Source/Scene/AttributeType.js +200 -0
- package/Source/Scene/AutoExposure.js +386 -0
- package/Source/Scene/Axis.js +116 -0
- package/Source/Scene/Azure2DImageryProvider.js +393 -0
- package/Source/Scene/B3dmParser.js +173 -0
- package/Source/Scene/BatchTable.js +636 -0
- package/Source/Scene/BatchTableHierarchy.js +504 -0
- package/Source/Scene/BatchTexture.js +574 -0
- package/Source/Scene/Billboard.js +1601 -0
- package/Source/Scene/BillboardCollection.js +2396 -0
- package/Source/Scene/BillboardLoadState.js +44 -0
- package/Source/Scene/BillboardTexture.js +397 -0
- package/Source/Scene/BingMapsImageryProvider.js +769 -0
- package/Source/Scene/BingMapsStyle.js +93 -0
- package/Source/Scene/BlendEquation.js +53 -0
- package/Source/Scene/BlendFunction.js +129 -0
- package/Source/Scene/BlendOption.js +28 -0
- package/Source/Scene/BlendingState.js +73 -0
- package/Source/Scene/BoundingVolumeSemantics.js +169 -0
- package/Source/Scene/BoxEmitter.js +74 -0
- package/Source/Scene/BrdfLutGenerator.js +75 -0
- package/Source/Scene/BufferLoader.js +141 -0
- package/Source/Scene/Camera.js +3978 -0
- package/Source/Scene/CameraEventAggregator.js +619 -0
- package/Source/Scene/CameraEventType.js +47 -0
- package/Source/Scene/CameraFlightPath.js +576 -0
- package/Source/Scene/Cesium3DContentGroup.js +44 -0
- package/Source/Scene/Cesium3DTile.js +2475 -0
- package/Source/Scene/Cesium3DTileBatchTable.js +1132 -0
- package/Source/Scene/Cesium3DTileColorBlendMode.js +52 -0
- package/Source/Scene/Cesium3DTileContent.js +411 -0
- package/Source/Scene/Cesium3DTileContentFactory.js +118 -0
- package/Source/Scene/Cesium3DTileContentState.js +12 -0
- package/Source/Scene/Cesium3DTileContentType.js +179 -0
- package/Source/Scene/Cesium3DTileFeature.js +444 -0
- package/Source/Scene/Cesium3DTileFeatureTable.js +131 -0
- package/Source/Scene/Cesium3DTileOptimizationHint.js +13 -0
- package/Source/Scene/Cesium3DTileOptimizations.js +115 -0
- package/Source/Scene/Cesium3DTilePass.js +79 -0
- package/Source/Scene/Cesium3DTilePassState.js +52 -0
- package/Source/Scene/Cesium3DTilePointFeature.js +856 -0
- package/Source/Scene/Cesium3DTileRefine.js +29 -0
- package/Source/Scene/Cesium3DTileStyle.js +1475 -0
- package/Source/Scene/Cesium3DTileStyleEngine.js +78 -0
- package/Source/Scene/Cesium3DTilesVoxelProvider.js +760 -0
- package/Source/Scene/Cesium3DTileset.js +3932 -0
- package/Source/Scene/Cesium3DTilesetBaseTraversal.js +291 -0
- package/Source/Scene/Cesium3DTilesetCache.js +80 -0
- package/Source/Scene/Cesium3DTilesetHeatmap.js +165 -0
- package/Source/Scene/Cesium3DTilesetMetadata.js +199 -0
- package/Source/Scene/Cesium3DTilesetMostDetailedTraversal.js +131 -0
- package/Source/Scene/Cesium3DTilesetSkipTraversal.js +420 -0
- package/Source/Scene/Cesium3DTilesetStatistics.js +195 -0
- package/Source/Scene/Cesium3DTilesetTraversal.js +323 -0
- package/Source/Scene/CircleEmitter.js +61 -0
- package/Source/Scene/ClassificationPrimitive.js +1387 -0
- package/Source/Scene/ClassificationType.js +35 -0
- package/Source/Scene/ClippingPlane.js +184 -0
- package/Source/Scene/ClippingPlaneCollection.js +764 -0
- package/Source/Scene/ClippingPolygon.js +300 -0
- package/Source/Scene/ClippingPolygonCollection.js +965 -0
- package/Source/Scene/CloudCollection.js +1041 -0
- package/Source/Scene/CloudType.js +33 -0
- package/Source/Scene/ColorBlendMode.js +33 -0
- package/Source/Scene/Composite3DTileContent.js +403 -0
- package/Source/Scene/ConditionsExpression.js +219 -0
- package/Source/Scene/ConeEmitter.js +61 -0
- package/Source/Scene/ContentMetadata.js +184 -0
- package/Source/Scene/CreditDisplay.js +654 -0
- package/Source/Scene/CullFace.js +33 -0
- package/Source/Scene/CumulusCloud.js +347 -0
- package/Source/Scene/DebugAppearance.js +266 -0
- package/Source/Scene/DebugCameraPrimitive.js +257 -0
- package/Source/Scene/DebugInspector.js +151 -0
- package/Source/Scene/DebugModelMatrixPrimitive.js +220 -0
- package/Source/Scene/DepthFunction.js +73 -0
- package/Source/Scene/DepthPlane.js +238 -0
- package/Source/Scene/DerivedCommand.js +708 -0
- package/Source/Scene/DeviceOrientationCameraController.js +120 -0
- package/Source/Scene/DirectionalLight.js +49 -0
- package/Source/Scene/DiscardEmptyTileImagePolicy.js +54 -0
- package/Source/Scene/DiscardMissingTileImagePolicy.js +148 -0
- package/Source/Scene/DracoLoader.js +99 -0
- package/Source/Scene/DynamicAtmosphereLightingType.js +56 -0
- package/Source/Scene/DynamicEnvironmentMapManager.js +1022 -0
- package/Source/Scene/EdgeFramebuffer.js +245 -0
- package/Source/Scene/EllipsoidPrimitive.js +496 -0
- package/Source/Scene/EllipsoidSurfaceAppearance.js +278 -0
- package/Source/Scene/Empty3DTileContent.js +164 -0
- package/Source/Scene/Expression.js +2233 -0
- package/Source/Scene/ExpressionNodeType.js +25 -0
- package/Source/Scene/Fog.js +166 -0
- package/Source/Scene/FrameRateMonitor.js +375 -0
- package/Source/Scene/FrameState.js +477 -0
- package/Source/Scene/FrustumCommands.js +29 -0
- package/Source/Scene/GaussianSplat3DTileContent.js +826 -0
- package/Source/Scene/GaussianSplatPrimitive.js +1065 -0
- package/Source/Scene/GaussianSplatRenderResources.js +81 -0
- package/Source/Scene/GaussianSplatSorter.js +73 -0
- package/Source/Scene/GaussianSplatTextureGenerator.js +64 -0
- package/Source/Scene/Geometry3DTileContent.js +534 -0
- package/Source/Scene/GetFeatureInfoFormat.js +396 -0
- package/Source/Scene/Globe.js +1135 -0
- package/Source/Scene/GlobeDepth.js +407 -0
- package/Source/Scene/GlobeSurfaceShaderSet.js +485 -0
- package/Source/Scene/GlobeSurfaceTile.js +967 -0
- package/Source/Scene/GlobeSurfaceTileProvider.js +2910 -0
- package/Source/Scene/GlobeTranslucency.js +239 -0
- package/Source/Scene/GlobeTranslucencyFramebuffer.js +201 -0
- package/Source/Scene/GlobeTranslucencyState.js +1102 -0
- package/Source/Scene/GltfBufferViewLoader.js +242 -0
- package/Source/Scene/GltfDracoLoader.js +293 -0
- package/Source/Scene/GltfImageLoader.js +320 -0
- package/Source/Scene/GltfIndexBufferLoader.js +421 -0
- package/Source/Scene/GltfJsonLoader.js +314 -0
- package/Source/Scene/GltfLoader.js +2989 -0
- package/Source/Scene/GltfLoaderUtil.js +184 -0
- package/Source/Scene/GltfPipeline/ForEach.js +424 -0
- package/Source/Scene/GltfPipeline/addBuffer.js +30 -0
- package/Source/Scene/GltfPipeline/addDefaults.js +208 -0
- package/Source/Scene/GltfPipeline/addExtensionsRequired.js +24 -0
- package/Source/Scene/GltfPipeline/addExtensionsUsed.js +22 -0
- package/Source/Scene/GltfPipeline/addPipelineExtras.js +36 -0
- package/Source/Scene/GltfPipeline/addToArray.js +25 -0
- package/Source/Scene/GltfPipeline/findAccessorMinMax.js +71 -0
- package/Source/Scene/GltfPipeline/forEachTextureInMaterial.js +155 -0
- package/Source/Scene/GltfPipeline/getAccessorByteStride.js +29 -0
- package/Source/Scene/GltfPipeline/getComponentReader.js +147 -0
- package/Source/Scene/GltfPipeline/moveTechniqueRenderStates.js +135 -0
- package/Source/Scene/GltfPipeline/moveTechniquesToExtension.js +145 -0
- package/Source/Scene/GltfPipeline/numberOfComponentsForType.js +29 -0
- package/Source/Scene/GltfPipeline/parseGlb.js +118 -0
- package/Source/Scene/GltfPipeline/readAccessorPacked.js +54 -0
- package/Source/Scene/GltfPipeline/removeExtension.js +64 -0
- package/Source/Scene/GltfPipeline/removeExtensionsRequired.js +24 -0
- package/Source/Scene/GltfPipeline/removeExtensionsUsed.js +26 -0
- package/Source/Scene/GltfPipeline/removePipelineExtras.js +42 -0
- package/Source/Scene/GltfPipeline/removeUnusedElements.js +906 -0
- package/Source/Scene/GltfPipeline/updateAccessorComponentTypes.js +53 -0
- package/Source/Scene/GltfPipeline/updateVersion.js +1148 -0
- package/Source/Scene/GltfPipeline/usesExtension.js +18 -0
- package/Source/Scene/GltfSpzLoader.js +224 -0
- package/Source/Scene/GltfStructuralMetadataLoader.js +505 -0
- package/Source/Scene/GltfTextureLoader.js +399 -0
- package/Source/Scene/GltfVertexBufferLoader.js +634 -0
- package/Source/Scene/Google2DImageryProvider.js +621 -0
- package/Source/Scene/GoogleEarthEnterpriseImageryProvider.js +548 -0
- package/Source/Scene/GoogleEarthEnterpriseMapsProvider.js +589 -0
- package/Source/Scene/GridImageryProvider.js +322 -0
- package/Source/Scene/GroundPolylinePrimitive.js +890 -0
- package/Source/Scene/GroundPrimitive.js +1000 -0
- package/Source/Scene/GroupMetadata.js +203 -0
- package/Source/Scene/HeightReference.js +85 -0
- package/Source/Scene/HorizontalOrigin.js +41 -0
- package/Source/Scene/I3SDataProvider.js +860 -0
- package/Source/Scene/I3SDecoder.js +133 -0
- package/Source/Scene/I3SFeature.js +61 -0
- package/Source/Scene/I3SField.js +360 -0
- package/Source/Scene/I3SGeometry.js +477 -0
- package/Source/Scene/I3SLayer.js +460 -0
- package/Source/Scene/I3SNode.js +927 -0
- package/Source/Scene/I3SStatistics.js +94 -0
- package/Source/Scene/I3SSublayer.js +175 -0
- package/Source/Scene/I3SSymbology.js +336 -0
- package/Source/Scene/I3dmParser.js +140 -0
- package/Source/Scene/ITwinData.js +283 -0
- package/Source/Scene/ImageBasedLighting.js +463 -0
- package/Source/Scene/Imagery.js +120 -0
- package/Source/Scene/ImageryLayer.js +1747 -0
- package/Source/Scene/ImageryLayerCollection.js +645 -0
- package/Source/Scene/ImageryLayerFeatureInfo.js +111 -0
- package/Source/Scene/ImageryProvider.js +267 -0
- package/Source/Scene/ImageryState.js +14 -0
- package/Source/Scene/Implicit3DTileContent.js +1206 -0
- package/Source/Scene/ImplicitAvailabilityBitstream.js +134 -0
- package/Source/Scene/ImplicitMetadataView.js +178 -0
- package/Source/Scene/ImplicitSubdivisionScheme.js +48 -0
- package/Source/Scene/ImplicitSubtree.js +1161 -0
- package/Source/Scene/ImplicitSubtreeCache.js +127 -0
- package/Source/Scene/ImplicitSubtreeMetadata.js +191 -0
- package/Source/Scene/ImplicitTileCoordinates.js +647 -0
- package/Source/Scene/ImplicitTileset.js +269 -0
- package/Source/Scene/InstanceAttributeSemantic.js +79 -0
- package/Source/Scene/InvertClassification.js +381 -0
- package/Source/Scene/IonImageryProvider.js +346 -0
- package/Source/Scene/IonImageryProviderFactory.js +194 -0
- package/Source/Scene/IonWorldImageryStyle.js +33 -0
- package/Source/Scene/JobScheduler.js +199 -0
- package/Source/Scene/JobType.js +10 -0
- package/Source/Scene/JsonMetadataTable.js +114 -0
- package/Source/Scene/KeyframeNode.js +61 -0
- package/Source/Scene/Label.js +1618 -0
- package/Source/Scene/LabelCollection.js +1032 -0
- package/Source/Scene/LabelStyle.js +33 -0
- package/Source/Scene/Light.js +34 -0
- package/Source/Scene/MapMode2D.js +23 -0
- package/Source/Scene/MapboxImageryProvider.js +332 -0
- package/Source/Scene/MapboxStyleImageryProvider.js +342 -0
- package/Source/Scene/Material.js +1929 -0
- package/Source/Scene/MaterialAppearance.js +328 -0
- package/Source/Scene/Megatexture.js +550 -0
- package/Source/Scene/MetadataClass.js +202 -0
- package/Source/Scene/MetadataClassProperty.js +1191 -0
- package/Source/Scene/MetadataComponentType.js +469 -0
- package/Source/Scene/MetadataEntity.js +425 -0
- package/Source/Scene/MetadataEnum.js +219 -0
- package/Source/Scene/MetadataEnumValue.js +131 -0
- package/Source/Scene/MetadataPicking.js +396 -0
- package/Source/Scene/MetadataSchema.js +202 -0
- package/Source/Scene/MetadataSchemaLoader.js +135 -0
- package/Source/Scene/MetadataSemantic.js +153 -0
- package/Source/Scene/MetadataTable.js +357 -0
- package/Source/Scene/MetadataTableProperty.js +840 -0
- package/Source/Scene/MetadataType.js +220 -0
- package/Source/Scene/Model/AlphaPipelineStage.js +51 -0
- package/Source/Scene/Model/AtmospherePipelineStage.js +64 -0
- package/Source/Scene/Model/B3dmLoader.js +368 -0
- package/Source/Scene/Model/BatchTexturePipelineStage.js +71 -0
- package/Source/Scene/Model/CPUStylingPipelineStage.js +77 -0
- package/Source/Scene/Model/CartesianRectangle.js +108 -0
- package/Source/Scene/Model/ClassificationModelDrawCommand.js +534 -0
- package/Source/Scene/Model/ClassificationPipelineStage.js +132 -0
- package/Source/Scene/Model/CustomShader.js +469 -0
- package/Source/Scene/Model/CustomShaderMode.js +40 -0
- package/Source/Scene/Model/CustomShaderPipelineStage.js +667 -0
- package/Source/Scene/Model/CustomShaderTranslucencyMode.js +35 -0
- package/Source/Scene/Model/DequantizationPipelineStage.js +178 -0
- package/Source/Scene/Model/EdgeDetectionPipelineStage.js +42 -0
- package/Source/Scene/Model/EdgeVisibilityPipelineStage.js +800 -0
- package/Source/Scene/Model/Extensions/Gpm/AnchorPointDirect.js +61 -0
- package/Source/Scene/Model/Extensions/Gpm/AnchorPointIndirect.js +77 -0
- package/Source/Scene/Model/Extensions/Gpm/CorrelationGroup.js +81 -0
- package/Source/Scene/Model/Extensions/Gpm/GltfGpmLoader.js +248 -0
- package/Source/Scene/Model/Extensions/Gpm/GltfGpmLocal.js +179 -0
- package/Source/Scene/Model/Extensions/Gpm/GltfMeshPrimitiveGpmLoader.js +543 -0
- package/Source/Scene/Model/Extensions/Gpm/MeshPrimitiveGpmLocal.js +28 -0
- package/Source/Scene/Model/Extensions/Gpm/PpeMetadata.js +79 -0
- package/Source/Scene/Model/Extensions/Gpm/PpeSource.js +75 -0
- package/Source/Scene/Model/Extensions/Gpm/PpeTexture.js +127 -0
- package/Source/Scene/Model/Extensions/Gpm/Spdcf.js +103 -0
- package/Source/Scene/Model/Extensions/Gpm/StorageType.js +30 -0
- package/Source/Scene/Model/FeatureIdPipelineStage.js +523 -0
- package/Source/Scene/Model/GeoJsonLoader.js +697 -0
- package/Source/Scene/Model/GeometryPipelineStage.js +529 -0
- package/Source/Scene/Model/I3dmLoader.js +883 -0
- package/Source/Scene/Model/ImageBasedLightingPipelineStage.js +168 -0
- package/Source/Scene/Model/ImageryConfiguration.js +26 -0
- package/Source/Scene/Model/ImageryCoverage.js +488 -0
- package/Source/Scene/Model/ImageryFlags.js +31 -0
- package/Source/Scene/Model/ImageryInput.js +60 -0
- package/Source/Scene/Model/ImageryPipelineStage.js +1046 -0
- package/Source/Scene/Model/InstancingPipelineStage.js +1056 -0
- package/Source/Scene/Model/LightingModel.js +30 -0
- package/Source/Scene/Model/LightingPipelineStage.js +73 -0
- package/Source/Scene/Model/MappedPositions.js +84 -0
- package/Source/Scene/Model/MaterialPipelineStage.js +869 -0
- package/Source/Scene/Model/MetadataPickingPipelineStage.js +96 -0
- package/Source/Scene/Model/MetadataPipelineStage.js +657 -0
- package/Source/Scene/Model/Model.js +3340 -0
- package/Source/Scene/Model/Model3DTileContent.js +551 -0
- package/Source/Scene/Model/ModelAlphaOptions.js +26 -0
- package/Source/Scene/Model/ModelAnimation.js +421 -0
- package/Source/Scene/Model/ModelAnimationChannel.js +294 -0
- package/Source/Scene/Model/ModelAnimationCollection.js +553 -0
- package/Source/Scene/Model/ModelArticulation.js +214 -0
- package/Source/Scene/Model/ModelArticulationStage.js +261 -0
- package/Source/Scene/Model/ModelClippingPlanesPipelineStage.js +126 -0
- package/Source/Scene/Model/ModelClippingPolygonsPipelineStage.js +98 -0
- package/Source/Scene/Model/ModelColorPipelineStage.js +98 -0
- package/Source/Scene/Model/ModelDrawCommand.js +922 -0
- package/Source/Scene/Model/ModelDrawCommands.js +218 -0
- package/Source/Scene/Model/ModelFeature.js +229 -0
- package/Source/Scene/Model/ModelFeatureTable.js +316 -0
- package/Source/Scene/Model/ModelImagery.js +410 -0
- package/Source/Scene/Model/ModelImageryMapping.js +489 -0
- package/Source/Scene/Model/ModelLightingOptions.js +29 -0
- package/Source/Scene/Model/ModelMatrixUpdateStage.js +120 -0
- package/Source/Scene/Model/ModelNode.js +125 -0
- package/Source/Scene/Model/ModelPrimitiveImagery.js +972 -0
- package/Source/Scene/Model/ModelReader.js +810 -0
- package/Source/Scene/Model/ModelRenderResources.js +119 -0
- package/Source/Scene/Model/ModelRuntimeNode.js +648 -0
- package/Source/Scene/Model/ModelRuntimePrimitive.js +380 -0
- package/Source/Scene/Model/ModelSceneGraph.js +1098 -0
- package/Source/Scene/Model/ModelSilhouettePipelineStage.js +109 -0
- package/Source/Scene/Model/ModelSkin.js +180 -0
- package/Source/Scene/Model/ModelSplitterPipelineStage.js +65 -0
- package/Source/Scene/Model/ModelStatistics.js +225 -0
- package/Source/Scene/Model/ModelType.js +94 -0
- package/Source/Scene/Model/ModelUtility.js +395 -0
- package/Source/Scene/Model/MorphTargetsPipelineStage.js +249 -0
- package/Source/Scene/Model/NodeRenderResources.js +170 -0
- package/Source/Scene/Model/NodeStatisticsPipelineStage.js +75 -0
- package/Source/Scene/Model/PickingPipelineStage.js +218 -0
- package/Source/Scene/Model/PntsLoader.js +716 -0
- package/Source/Scene/Model/PointCloudStylingPipelineStage.js +392 -0
- package/Source/Scene/Model/PrimitiveOutlineGenerator.js +689 -0
- package/Source/Scene/Model/PrimitiveOutlinePipelineStage.js +99 -0
- package/Source/Scene/Model/PrimitiveRenderResources.js +297 -0
- package/Source/Scene/Model/PrimitiveStatisticsPipelineStage.js +253 -0
- package/Source/Scene/Model/SceneMode2DPipelineStage.js +301 -0
- package/Source/Scene/Model/SelectedFeatureIdPipelineStage.js +180 -0
- package/Source/Scene/Model/SkinningPipelineStage.js +118 -0
- package/Source/Scene/Model/StyleCommandsNeeded.js +29 -0
- package/Source/Scene/Model/TextureManager.js +244 -0
- package/Source/Scene/Model/TextureUniform.js +71 -0
- package/Source/Scene/Model/TilesetPipelineStage.js +73 -0
- package/Source/Scene/Model/UniformType.js +124 -0
- package/Source/Scene/Model/VaryingType.js +61 -0
- package/Source/Scene/Model/VerticalExaggerationPipelineStage.js +58 -0
- package/Source/Scene/Model/WireframePipelineStage.js +118 -0
- package/Source/Scene/Model/pickModel.js +425 -0
- package/Source/Scene/ModelAnimationLoop.js +33 -0
- package/Source/Scene/ModelAnimationState.js +9 -0
- package/Source/Scene/ModelComponents.js +1662 -0
- package/Source/Scene/Moon.js +175 -0
- package/Source/Scene/Multiple3DTileContent.js +722 -0
- package/Source/Scene/NeverTileDiscardPolicy.js +28 -0
- package/Source/Scene/OIT.js +946 -0
- package/Source/Scene/OpenStreetMapImageryProvider.js +128 -0
- package/Source/Scene/OrderedGroundPrimitiveCollection.js +218 -0
- package/Source/Scene/Particle.js +149 -0
- package/Source/Scene/ParticleBurst.js +51 -0
- package/Source/Scene/ParticleEmitter.js +36 -0
- package/Source/Scene/ParticleSystem.js +885 -0
- package/Source/Scene/PerInstanceColorAppearance.js +296 -0
- package/Source/Scene/PerformanceDisplay.js +120 -0
- package/Source/Scene/PickDepth.js +125 -0
- package/Source/Scene/PickDepthFramebuffer.js +79 -0
- package/Source/Scene/PickFramebuffer.js +255 -0
- package/Source/Scene/PickedMetadataInfo.js +57 -0
- package/Source/Scene/Picking.js +1683 -0
- package/Source/Scene/PntsParser.js +547 -0
- package/Source/Scene/PointCloud.js +1412 -0
- package/Source/Scene/PointCloudEyeDomeLighting.js +284 -0
- package/Source/Scene/PointCloudShading.js +104 -0
- package/Source/Scene/PointPrimitive.js +690 -0
- package/Source/Scene/PointPrimitiveCollection.js +1223 -0
- package/Source/Scene/Polyline.js +431 -0
- package/Source/Scene/PolylineCollection.js +1950 -0
- package/Source/Scene/PolylineColorAppearance.js +220 -0
- package/Source/Scene/PolylineMaterialAppearance.js +231 -0
- package/Source/Scene/PostProcessStage.js +1000 -0
- package/Source/Scene/PostProcessStageCollection.js +900 -0
- package/Source/Scene/PostProcessStageComposite.js +359 -0
- package/Source/Scene/PostProcessStageLibrary.js +826 -0
- package/Source/Scene/PostProcessStageSampleMode.js +22 -0
- package/Source/Scene/PostProcessStageTextureCache.js +454 -0
- package/Source/Scene/Primitive.js +2504 -0
- package/Source/Scene/PrimitiveCollection.js +532 -0
- package/Source/Scene/PrimitiveLoadPlan.js +303 -0
- package/Source/Scene/PrimitivePipeline.js +854 -0
- package/Source/Scene/PrimitiveState.js +136 -0
- package/Source/Scene/PropertyAttribute.js +160 -0
- package/Source/Scene/PropertyAttributeProperty.js +177 -0
- package/Source/Scene/PropertyTable.js +536 -0
- package/Source/Scene/PropertyTexture.js +162 -0
- package/Source/Scene/PropertyTextureProperty.js +304 -0
- package/Source/Scene/QuadtreeOccluders.js +30 -0
- package/Source/Scene/QuadtreePrimitive.js +1575 -0
- package/Source/Scene/QuadtreeTile.js +729 -0
- package/Source/Scene/QuadtreeTileLoadState.js +39 -0
- package/Source/Scene/QuadtreeTileProvider.js +212 -0
- package/Source/Scene/ResourceCache.js +824 -0
- package/Source/Scene/ResourceCacheKey.js +601 -0
- package/Source/Scene/ResourceCacheStatistics.js +149 -0
- package/Source/Scene/ResourceLoader.js +127 -0
- package/Source/Scene/ResourceLoaderState.js +56 -0
- package/Source/Scene/SDFSettings.js +39 -0
- package/Source/Scene/Scene.js +5280 -0
- package/Source/Scene/SceneFramebuffer.js +106 -0
- package/Source/Scene/SceneMode.js +56 -0
- package/Source/Scene/SceneTransforms.js +463 -0
- package/Source/Scene/SceneTransitioner.js +1111 -0
- package/Source/Scene/ScreenSpaceCameraController.js +3098 -0
- package/Source/Scene/SensorVolumePortionToDisplay.js +69 -0
- package/Source/Scene/ShadowMap.js +1957 -0
- package/Source/Scene/ShadowMapShader.js +395 -0
- package/Source/Scene/ShadowMode.js +78 -0
- package/Source/Scene/ShadowVolumeAppearance.js +936 -0
- package/Source/Scene/SingleTileImageryProvider.js +380 -0
- package/Source/Scene/SkyAtmosphere.js +400 -0
- package/Source/Scene/SkyBox.js +289 -0
- package/Source/Scene/SpatialNode.js +377 -0
- package/Source/Scene/SpecularEnvironmentCubeMap.js +240 -0
- package/Source/Scene/SphereEmitter.js +65 -0
- package/Source/Scene/SplitDirection.js +34 -0
- package/Source/Scene/Splitter.js +49 -0
- package/Source/Scene/StencilConstants.js +37 -0
- package/Source/Scene/StencilFunction.js +73 -0
- package/Source/Scene/StencilOperation.js +73 -0
- package/Source/Scene/StructuralMetadata.js +243 -0
- package/Source/Scene/StyleExpression.js +86 -0
- package/Source/Scene/Sun.js +363 -0
- package/Source/Scene/SunLight.js +31 -0
- package/Source/Scene/SunPostProcess.js +288 -0
- package/Source/Scene/SupportedImageFormats.js +18 -0
- package/Source/Scene/Terrain.js +245 -0
- package/Source/Scene/TerrainFillMesh.js +2222 -0
- package/Source/Scene/TerrainState.js +13 -0
- package/Source/Scene/TileBoundingRegion.js +489 -0
- package/Source/Scene/TileBoundingS2Cell.js +699 -0
- package/Source/Scene/TileBoundingSphere.js +167 -0
- package/Source/Scene/TileBoundingVolume.js +68 -0
- package/Source/Scene/TileCoordinatesImageryProvider.js +269 -0
- package/Source/Scene/TileDiscardPolicy.js +34 -0
- package/Source/Scene/TileImagery.js +126 -0
- package/Source/Scene/TileMapServiceImageryProvider.js +442 -0
- package/Source/Scene/TileMetadata.js +184 -0
- package/Source/Scene/TileOrientedBoundingBox.js +219 -0
- package/Source/Scene/TileReplacementQueue.js +119 -0
- package/Source/Scene/TileSelectionResult.js +80 -0
- package/Source/Scene/TileState.js +10 -0
- package/Source/Scene/Tileset3DTileContent.js +182 -0
- package/Source/Scene/TilesetMetadata.js +186 -0
- package/Source/Scene/TimeDynamicImagery.js +308 -0
- package/Source/Scene/TimeDynamicPointCloud.js +802 -0
- package/Source/Scene/Tonemapper.js +64 -0
- package/Source/Scene/TranslucentTileClassification.js +514 -0
- package/Source/Scene/TweenCollection.js +585 -0
- package/Source/Scene/UrlTemplateImageryProvider.js +989 -0
- package/Source/Scene/Vector3DTileBatch.js +37 -0
- package/Source/Scene/Vector3DTileClampedPolylines.js +783 -0
- package/Source/Scene/Vector3DTileContent.js +770 -0
- package/Source/Scene/Vector3DTileGeometry.js +497 -0
- package/Source/Scene/Vector3DTilePoints.js +548 -0
- package/Source/Scene/Vector3DTilePolygons.js +479 -0
- package/Source/Scene/Vector3DTilePolylines.js +679 -0
- package/Source/Scene/Vector3DTilePrimitive.js +1276 -0
- package/Source/Scene/VertexAttributeSemantic.js +305 -0
- package/Source/Scene/VerticalOrigin.js +49 -0
- package/Source/Scene/View.js +465 -0
- package/Source/Scene/ViewportQuad.js +182 -0
- package/Source/Scene/ViewshedShadowMap.js +1953 -0
- package/Source/Scene/VoxelBoundsCollection.js +494 -0
- package/Source/Scene/VoxelBoxShape.js +595 -0
- package/Source/Scene/VoxelCell.js +274 -0
- package/Source/Scene/VoxelContent.js +231 -0
- package/Source/Scene/VoxelCylinderShape.js +868 -0
- package/Source/Scene/VoxelEllipsoidShape.js +1174 -0
- package/Source/Scene/VoxelMetadataOrder.js +24 -0
- package/Source/Scene/VoxelPrimitive.js +2169 -0
- package/Source/Scene/VoxelProvider.js +234 -0
- package/Source/Scene/VoxelRenderResources.js +259 -0
- package/Source/Scene/VoxelShape.js +179 -0
- package/Source/Scene/VoxelShapeType.js +105 -0
- package/Source/Scene/VoxelTraversal.js +1264 -0
- package/Source/Scene/WebMapServiceImageryProvider.js +649 -0
- package/Source/Scene/WebMapTileServiceImageryProvider.js +575 -0
- package/Source/Scene/buildVoxelDrawCommands.js +177 -0
- package/Source/Scene/computeFlyToLocationForRectangle.js +74 -0
- package/Source/Scene/createBillboardPointCallback.js +70 -0
- package/Source/Scene/createElevationBandMaterial.js +580 -0
- package/Source/Scene/createGooglePhotorealistic3DTileset.js +116 -0
- package/Source/Scene/createOsmBuildingsAsync.js +79 -0
- package/Source/Scene/createTangentSpaceDebugPrimitive.js +114 -0
- package/Source/Scene/createWorldImageryAsync.js +39 -0
- package/Source/Scene/findContentMetadata.js +51 -0
- package/Source/Scene/findGroupMetadata.js +39 -0
- package/Source/Scene/findTileMetadata.js +53 -0
- package/Source/Scene/getBinaryAccessor.js +56 -0
- package/Source/Scene/getClipAndStyleCode.js +34 -0
- package/Source/Scene/getClippingFunction.js +154 -0
- package/Source/Scene/getMeshPrimitives.js +72 -0
- package/Source/Scene/getMetadataClassProperty.js +43 -0
- package/Source/Scene/getMetadataProperty.js +48 -0
- package/Source/Scene/hasExtension.js +19 -0
- package/Source/Scene/parseBatchTable.js +448 -0
- package/Source/Scene/parseFeatureMetadataLegacy.js +139 -0
- package/Source/Scene/parseStructuralMetadata.js +102 -0
- package/Source/Scene/preprocess3DTileContent.js +102 -0
- package/Source/Scene/processVoxelProperties.js +398 -0
- package/Source/Shaders/AdjustTranslucentFS.glsl +27 -0
- package/Source/Shaders/AdjustTranslucentFS.js +29 -0
- package/Source/Shaders/Appearances/AllMaterialAppearanceFS.glsl +29 -0
- package/Source/Shaders/Appearances/AllMaterialAppearanceFS.js +31 -0
- package/Source/Shaders/Appearances/AllMaterialAppearanceVS.glsl +26 -0
- package/Source/Shaders/Appearances/AllMaterialAppearanceVS.js +28 -0
- package/Source/Shaders/Appearances/BasicMaterialAppearanceFS.glsl +23 -0
- package/Source/Shaders/Appearances/BasicMaterialAppearanceFS.js +25 -0
- package/Source/Shaders/Appearances/BasicMaterialAppearanceVS.glsl +17 -0
- package/Source/Shaders/Appearances/BasicMaterialAppearanceVS.js +19 -0
- package/Source/Shaders/Appearances/EllipsoidSurfaceAppearanceFS.glsl +33 -0
- package/Source/Shaders/Appearances/EllipsoidSurfaceAppearanceFS.js +35 -0
- package/Source/Shaders/Appearances/EllipsoidSurfaceAppearanceVS.glsl +19 -0
- package/Source/Shaders/Appearances/EllipsoidSurfaceAppearanceVS.js +21 -0
- package/Source/Shaders/Appearances/PerInstanceColorAppearanceFS.glsl +24 -0
- package/Source/Shaders/Appearances/PerInstanceColorAppearanceFS.js +26 -0
- package/Source/Shaders/Appearances/PerInstanceColorAppearanceVS.glsl +20 -0
- package/Source/Shaders/Appearances/PerInstanceColorAppearanceVS.js +22 -0
- package/Source/Shaders/Appearances/PerInstanceFlatColorAppearanceFS.glsl +6 -0
- package/Source/Shaders/Appearances/PerInstanceFlatColorAppearanceFS.js +8 -0
- package/Source/Shaders/Appearances/PerInstanceFlatColorAppearanceVS.glsl +15 -0
- package/Source/Shaders/Appearances/PerInstanceFlatColorAppearanceVS.js +17 -0
- package/Source/Shaders/Appearances/PolylineColorAppearanceVS.glsl +28 -0
- package/Source/Shaders/Appearances/PolylineColorAppearanceVS.js +30 -0
- package/Source/Shaders/Appearances/PolylineMaterialAppearanceVS.glsl +33 -0
- package/Source/Shaders/Appearances/PolylineMaterialAppearanceVS.js +35 -0
- package/Source/Shaders/Appearances/TexturedMaterialAppearanceFS.glsl +25 -0
- package/Source/Shaders/Appearances/TexturedMaterialAppearanceFS.js +27 -0
- package/Source/Shaders/Appearances/TexturedMaterialAppearanceVS.glsl +20 -0
- package/Source/Shaders/Appearances/TexturedMaterialAppearanceVS.js +22 -0
- package/Source/Shaders/AtmosphereCommon.glsl +187 -0
- package/Source/Shaders/AtmosphereCommon.js +189 -0
- package/Source/Shaders/BillboardCollectionFS.glsl +261 -0
- package/Source/Shaders/BillboardCollectionFS.js +262 -0
- package/Source/Shaders/BillboardCollectionVS.glsl +445 -0
- package/Source/Shaders/BillboardCollectionVS.js +447 -0
- package/Source/Shaders/BrdfLutGeneratorFS.glsl +100 -0
- package/Source/Shaders/BrdfLutGeneratorFS.js +102 -0
- package/Source/Shaders/Builtin/Constants/degreesPerRadian.glsl +16 -0
- package/Source/Shaders/Builtin/Constants/degreesPerRadian.js +18 -0
- package/Source/Shaders/Builtin/Constants/depthRange.glsl +14 -0
- package/Source/Shaders/Builtin/Constants/depthRange.js +16 -0
- package/Source/Shaders/Builtin/Constants/epsilon1.glsl +7 -0
- package/Source/Shaders/Builtin/Constants/epsilon1.js +9 -0
- package/Source/Shaders/Builtin/Constants/epsilon2.glsl +7 -0
- package/Source/Shaders/Builtin/Constants/epsilon2.js +9 -0
- package/Source/Shaders/Builtin/Constants/epsilon3.glsl +7 -0
- package/Source/Shaders/Builtin/Constants/epsilon3.js +9 -0
- package/Source/Shaders/Builtin/Constants/epsilon4.glsl +7 -0
- package/Source/Shaders/Builtin/Constants/epsilon4.js +9 -0
- package/Source/Shaders/Builtin/Constants/epsilon5.glsl +7 -0
- package/Source/Shaders/Builtin/Constants/epsilon5.js +9 -0
- package/Source/Shaders/Builtin/Constants/epsilon6.glsl +7 -0
- package/Source/Shaders/Builtin/Constants/epsilon6.js +9 -0
- package/Source/Shaders/Builtin/Constants/epsilon7.glsl +7 -0
- package/Source/Shaders/Builtin/Constants/epsilon7.js +9 -0
- package/Source/Shaders/Builtin/Constants/infinity.glsl +7 -0
- package/Source/Shaders/Builtin/Constants/infinity.js +9 -0
- package/Source/Shaders/Builtin/Constants/oneOverPi.glsl +16 -0
- package/Source/Shaders/Builtin/Constants/oneOverPi.js +18 -0
- package/Source/Shaders/Builtin/Constants/oneOverTwoPi.glsl +16 -0
- package/Source/Shaders/Builtin/Constants/oneOverTwoPi.js +18 -0
- package/Source/Shaders/Builtin/Constants/passCesium3DTile.glsl +9 -0
- package/Source/Shaders/Builtin/Constants/passCesium3DTile.js +11 -0
- package/Source/Shaders/Builtin/Constants/passCesium3DTileClassification.glsl +9 -0
- package/Source/Shaders/Builtin/Constants/passCesium3DTileClassification.js +11 -0
- package/Source/Shaders/Builtin/Constants/passCesium3DTileClassificationIgnoreShow.glsl +9 -0
- package/Source/Shaders/Builtin/Constants/passCesium3DTileClassificationIgnoreShow.js +11 -0
- package/Source/Shaders/Builtin/Constants/passCesium3DTileEdges.glsl +10 -0
- package/Source/Shaders/Builtin/Constants/passCesium3DTileEdges.js +12 -0
- package/Source/Shaders/Builtin/Constants/passClassification.glsl +9 -0
- package/Source/Shaders/Builtin/Constants/passClassification.js +11 -0
- package/Source/Shaders/Builtin/Constants/passCompute.glsl +9 -0
- package/Source/Shaders/Builtin/Constants/passCompute.js +11 -0
- package/Source/Shaders/Builtin/Constants/passEnvironment.glsl +9 -0
- package/Source/Shaders/Builtin/Constants/passEnvironment.js +11 -0
- package/Source/Shaders/Builtin/Constants/passGaussianSplats.glsl +9 -0
- package/Source/Shaders/Builtin/Constants/passGaussianSplats.js +11 -0
- package/Source/Shaders/Builtin/Constants/passGlobe.glsl +9 -0
- package/Source/Shaders/Builtin/Constants/passGlobe.js +11 -0
- package/Source/Shaders/Builtin/Constants/passOpaque.glsl +9 -0
- package/Source/Shaders/Builtin/Constants/passOpaque.js +11 -0
- package/Source/Shaders/Builtin/Constants/passOverlay.glsl +9 -0
- package/Source/Shaders/Builtin/Constants/passOverlay.js +11 -0
- package/Source/Shaders/Builtin/Constants/passTerrainClassification.glsl +9 -0
- package/Source/Shaders/Builtin/Constants/passTerrainClassification.js +11 -0
- package/Source/Shaders/Builtin/Constants/passTranslucent.glsl +9 -0
- package/Source/Shaders/Builtin/Constants/passTranslucent.js +11 -0
- package/Source/Shaders/Builtin/Constants/passVoxels.glsl +9 -0
- package/Source/Shaders/Builtin/Constants/passVoxels.js +11 -0
- package/Source/Shaders/Builtin/Constants/pi.glsl +16 -0
- package/Source/Shaders/Builtin/Constants/pi.js +18 -0
- package/Source/Shaders/Builtin/Constants/piOverFour.glsl +16 -0
- package/Source/Shaders/Builtin/Constants/piOverFour.js +18 -0
- package/Source/Shaders/Builtin/Constants/piOverSix.glsl +16 -0
- package/Source/Shaders/Builtin/Constants/piOverSix.js +18 -0
- package/Source/Shaders/Builtin/Constants/piOverThree.glsl +16 -0
- package/Source/Shaders/Builtin/Constants/piOverThree.js +18 -0
- package/Source/Shaders/Builtin/Constants/piOverTwo.glsl +16 -0
- package/Source/Shaders/Builtin/Constants/piOverTwo.js +18 -0
- package/Source/Shaders/Builtin/Constants/radiansPerDegree.glsl +16 -0
- package/Source/Shaders/Builtin/Constants/radiansPerDegree.js +18 -0
- package/Source/Shaders/Builtin/Constants/sceneMode2D.glsl +11 -0
- package/Source/Shaders/Builtin/Constants/sceneMode2D.js +13 -0
- package/Source/Shaders/Builtin/Constants/sceneMode3D.glsl +11 -0
- package/Source/Shaders/Builtin/Constants/sceneMode3D.js +13 -0
- package/Source/Shaders/Builtin/Constants/sceneModeColumbusView.glsl +11 -0
- package/Source/Shaders/Builtin/Constants/sceneModeColumbusView.js +13 -0
- package/Source/Shaders/Builtin/Constants/sceneModeMorphing.glsl +11 -0
- package/Source/Shaders/Builtin/Constants/sceneModeMorphing.js +13 -0
- package/Source/Shaders/Builtin/Constants/solarRadius.glsl +13 -0
- package/Source/Shaders/Builtin/Constants/solarRadius.js +15 -0
- package/Source/Shaders/Builtin/Constants/threePiOver2.glsl +16 -0
- package/Source/Shaders/Builtin/Constants/threePiOver2.js +18 -0
- package/Source/Shaders/Builtin/Constants/twoPi.glsl +16 -0
- package/Source/Shaders/Builtin/Constants/twoPi.js +18 -0
- package/Source/Shaders/Builtin/Constants/webMercatorMaxLatitude.glsl +16 -0
- package/Source/Shaders/Builtin/Constants/webMercatorMaxLatitude.js +18 -0
- package/Source/Shaders/Builtin/CzmBuiltins.js +280 -0
- package/Source/Shaders/Builtin/Functions/HSBToRGB.glsl +24 -0
- package/Source/Shaders/Builtin/Functions/HSBToRGB.js +26 -0
- package/Source/Shaders/Builtin/Functions/HSLToRGB.glsl +31 -0
- package/Source/Shaders/Builtin/Functions/HSLToRGB.js +33 -0
- package/Source/Shaders/Builtin/Functions/RGBToHSB.glsl +27 -0
- package/Source/Shaders/Builtin/Functions/RGBToHSB.js +29 -0
- package/Source/Shaders/Builtin/Functions/RGBToHSL.glsl +34 -0
- package/Source/Shaders/Builtin/Functions/RGBToHSL.js +36 -0
- package/Source/Shaders/Builtin/Functions/RGBToXYZ.glsl +30 -0
- package/Source/Shaders/Builtin/Functions/RGBToXYZ.js +32 -0
- package/Source/Shaders/Builtin/Functions/XYZToRGB.glsl +30 -0
- package/Source/Shaders/Builtin/Functions/XYZToRGB.js +32 -0
- package/Source/Shaders/Builtin/Functions/acesTonemapping.glsl +16 -0
- package/Source/Shaders/Builtin/Functions/acesTonemapping.js +18 -0
- package/Source/Shaders/Builtin/Functions/alphaWeight.glsl +11 -0
- package/Source/Shaders/Builtin/Functions/alphaWeight.js +13 -0
- package/Source/Shaders/Builtin/Functions/antialias.glsl +39 -0
- package/Source/Shaders/Builtin/Functions/antialias.js +41 -0
- package/Source/Shaders/Builtin/Functions/applyHSBShift.glsl +32 -0
- package/Source/Shaders/Builtin/Functions/applyHSBShift.js +34 -0
- package/Source/Shaders/Builtin/Functions/approximateSphericalCoordinates.glsl +18 -0
- package/Source/Shaders/Builtin/Functions/approximateSphericalCoordinates.js +20 -0
- package/Source/Shaders/Builtin/Functions/approximateTanh.glsl +10 -0
- package/Source/Shaders/Builtin/Functions/approximateTanh.js +12 -0
- package/Source/Shaders/Builtin/Functions/backFacing.glsl +13 -0
- package/Source/Shaders/Builtin/Functions/backFacing.js +15 -0
- package/Source/Shaders/Builtin/Functions/branchFreeTernary.glsl +71 -0
- package/Source/Shaders/Builtin/Functions/branchFreeTernary.js +73 -0
- package/Source/Shaders/Builtin/Functions/cascadeColor.glsl +8 -0
- package/Source/Shaders/Builtin/Functions/cascadeColor.js +10 -0
- package/Source/Shaders/Builtin/Functions/cascadeDistance.glsl +7 -0
- package/Source/Shaders/Builtin/Functions/cascadeDistance.js +9 -0
- package/Source/Shaders/Builtin/Functions/cascadeMatrix.glsl +10 -0
- package/Source/Shaders/Builtin/Functions/cascadeMatrix.js +12 -0
- package/Source/Shaders/Builtin/Functions/cascadeWeights.glsl +10 -0
- package/Source/Shaders/Builtin/Functions/cascadeWeights.js +12 -0
- package/Source/Shaders/Builtin/Functions/clipPolygons.glsl +37 -0
- package/Source/Shaders/Builtin/Functions/clipPolygons.js +39 -0
- package/Source/Shaders/Builtin/Functions/columbusViewMorph.glsl +12 -0
- package/Source/Shaders/Builtin/Functions/columbusViewMorph.js +14 -0
- package/Source/Shaders/Builtin/Functions/computeAtmosphereColor.glsl +88 -0
- package/Source/Shaders/Builtin/Functions/computeAtmosphereColor.js +90 -0
- package/Source/Shaders/Builtin/Functions/computeGroundAtmosphereScattering.glsl +30 -0
- package/Source/Shaders/Builtin/Functions/computeGroundAtmosphereScattering.js +32 -0
- package/Source/Shaders/Builtin/Functions/computePosition.glsl +22 -0
- package/Source/Shaders/Builtin/Functions/computePosition.js +24 -0
- package/Source/Shaders/Builtin/Functions/computeScattering.glsl +149 -0
- package/Source/Shaders/Builtin/Functions/computeScattering.js +151 -0
- package/Source/Shaders/Builtin/Functions/cosineAndSine.glsl +211 -0
- package/Source/Shaders/Builtin/Functions/cosineAndSine.js +213 -0
- package/Source/Shaders/Builtin/Functions/decompressTextureCoordinates.glsl +17 -0
- package/Source/Shaders/Builtin/Functions/decompressTextureCoordinates.js +19 -0
- package/Source/Shaders/Builtin/Functions/depthClamp.glsl +47 -0
- package/Source/Shaders/Builtin/Functions/depthClamp.js +49 -0
- package/Source/Shaders/Builtin/Functions/eastNorthUpToEyeCoordinates.glsl +33 -0
- package/Source/Shaders/Builtin/Functions/eastNorthUpToEyeCoordinates.js +35 -0
- package/Source/Shaders/Builtin/Functions/ellipsoidContainsPoint.glsl +12 -0
- package/Source/Shaders/Builtin/Functions/ellipsoidContainsPoint.js +14 -0
- package/Source/Shaders/Builtin/Functions/ellipsoidTextureCoordinates.glsl +10 -0
- package/Source/Shaders/Builtin/Functions/ellipsoidTextureCoordinates.js +12 -0
- package/Source/Shaders/Builtin/Functions/equalsEpsilon.glsl +36 -0
- package/Source/Shaders/Builtin/Functions/equalsEpsilon.js +38 -0
- package/Source/Shaders/Builtin/Functions/eyeOffset.glsl +20 -0
- package/Source/Shaders/Builtin/Functions/eyeOffset.js +22 -0
- package/Source/Shaders/Builtin/Functions/eyeToWindowCoordinates.glsl +32 -0
- package/Source/Shaders/Builtin/Functions/eyeToWindowCoordinates.js +34 -0
- package/Source/Shaders/Builtin/Functions/fastApproximateAtan.glsl +55 -0
- package/Source/Shaders/Builtin/Functions/fastApproximateAtan.js +57 -0
- package/Source/Shaders/Builtin/Functions/fog.glsl +38 -0
- package/Source/Shaders/Builtin/Functions/fog.js +40 -0
- package/Source/Shaders/Builtin/Functions/gammaCorrect.glsl +22 -0
- package/Source/Shaders/Builtin/Functions/gammaCorrect.js +24 -0
- package/Source/Shaders/Builtin/Functions/geodeticSurfaceNormal.glsl +16 -0
- package/Source/Shaders/Builtin/Functions/geodeticSurfaceNormal.js +18 -0
- package/Source/Shaders/Builtin/Functions/getDefaultMaterial.glsl +27 -0
- package/Source/Shaders/Builtin/Functions/getDefaultMaterial.js +29 -0
- package/Source/Shaders/Builtin/Functions/getDynamicAtmosphereLightDirection.glsl +22 -0
- package/Source/Shaders/Builtin/Functions/getDynamicAtmosphereLightDirection.js +24 -0
- package/Source/Shaders/Builtin/Functions/getLambertDiffuse.glsl +22 -0
- package/Source/Shaders/Builtin/Functions/getLambertDiffuse.js +24 -0
- package/Source/Shaders/Builtin/Functions/getSpecular.glsl +29 -0
- package/Source/Shaders/Builtin/Functions/getSpecular.js +31 -0
- package/Source/Shaders/Builtin/Functions/getWaterNoise.glsl +37 -0
- package/Source/Shaders/Builtin/Functions/getWaterNoise.js +39 -0
- package/Source/Shaders/Builtin/Functions/hue.glsl +30 -0
- package/Source/Shaders/Builtin/Functions/hue.js +32 -0
- package/Source/Shaders/Builtin/Functions/inverseGamma.glsl +12 -0
- package/Source/Shaders/Builtin/Functions/inverseGamma.js +14 -0
- package/Source/Shaders/Builtin/Functions/isEmpty.glsl +19 -0
- package/Source/Shaders/Builtin/Functions/isEmpty.js +21 -0
- package/Source/Shaders/Builtin/Functions/isFull.glsl +19 -0
- package/Source/Shaders/Builtin/Functions/isFull.js +21 -0
- package/Source/Shaders/Builtin/Functions/latitudeToWebMercatorFraction.glsl +21 -0
- package/Source/Shaders/Builtin/Functions/latitudeToWebMercatorFraction.js +23 -0
- package/Source/Shaders/Builtin/Functions/lineDistance.glsl +14 -0
- package/Source/Shaders/Builtin/Functions/lineDistance.js +16 -0
- package/Source/Shaders/Builtin/Functions/linearToSrgb.glsl +16 -0
- package/Source/Shaders/Builtin/Functions/linearToSrgb.js +18 -0
- package/Source/Shaders/Builtin/Functions/luminance.glsl +20 -0
- package/Source/Shaders/Builtin/Functions/luminance.js +22 -0
- package/Source/Shaders/Builtin/Functions/maximumComponent.glsl +21 -0
- package/Source/Shaders/Builtin/Functions/maximumComponent.js +23 -0
- package/Source/Shaders/Builtin/Functions/metersPerPixel.glsl +61 -0
- package/Source/Shaders/Builtin/Functions/metersPerPixel.js +63 -0
- package/Source/Shaders/Builtin/Functions/modelToWindowCoordinates.glsl +38 -0
- package/Source/Shaders/Builtin/Functions/modelToWindowCoordinates.js +40 -0
- package/Source/Shaders/Builtin/Functions/multiplyWithColorBalance.glsl +18 -0
- package/Source/Shaders/Builtin/Functions/multiplyWithColorBalance.js +20 -0
- package/Source/Shaders/Builtin/Functions/nearFarScalar.glsl +26 -0
- package/Source/Shaders/Builtin/Functions/nearFarScalar.js +28 -0
- package/Source/Shaders/Builtin/Functions/octDecode.glsl +83 -0
- package/Source/Shaders/Builtin/Functions/octDecode.js +85 -0
- package/Source/Shaders/Builtin/Functions/packDepth.glsl +18 -0
- package/Source/Shaders/Builtin/Functions/packDepth.js +20 -0
- package/Source/Shaders/Builtin/Functions/pbrLighting.glsl +164 -0
- package/Source/Shaders/Builtin/Functions/pbrLighting.js +166 -0
- package/Source/Shaders/Builtin/Functions/pbrNeutralTonemapping.glsl +23 -0
- package/Source/Shaders/Builtin/Functions/pbrNeutralTonemapping.js +25 -0
- package/Source/Shaders/Builtin/Functions/phong.glsl +63 -0
- package/Source/Shaders/Builtin/Functions/phong.js +65 -0
- package/Source/Shaders/Builtin/Functions/planeDistance.glsl +28 -0
- package/Source/Shaders/Builtin/Functions/planeDistance.js +30 -0
- package/Source/Shaders/Builtin/Functions/pointAlongRay.glsl +19 -0
- package/Source/Shaders/Builtin/Functions/pointAlongRay.js +21 -0
- package/Source/Shaders/Builtin/Functions/rayEllipsoidIntersectionInterval.glsl +83 -0
- package/Source/Shaders/Builtin/Functions/rayEllipsoidIntersectionInterval.js +85 -0
- package/Source/Shaders/Builtin/Functions/raySphereIntersectionInterval.glsl +36 -0
- package/Source/Shaders/Builtin/Functions/raySphereIntersectionInterval.js +38 -0
- package/Source/Shaders/Builtin/Functions/readDepth.glsl +4 -0
- package/Source/Shaders/Builtin/Functions/readDepth.js +6 -0
- package/Source/Shaders/Builtin/Functions/readNonPerspective.glsl +31 -0
- package/Source/Shaders/Builtin/Functions/readNonPerspective.js +33 -0
- package/Source/Shaders/Builtin/Functions/reverseLogDepth.glsl +11 -0
- package/Source/Shaders/Builtin/Functions/reverseLogDepth.js +13 -0
- package/Source/Shaders/Builtin/Functions/round.glsl +22 -0
- package/Source/Shaders/Builtin/Functions/round.js +24 -0
- package/Source/Shaders/Builtin/Functions/saturation.glsl +22 -0
- package/Source/Shaders/Builtin/Functions/saturation.js +24 -0
- package/Source/Shaders/Builtin/Functions/shadowDepthCompare.glsl +24 -0
- package/Source/Shaders/Builtin/Functions/shadowDepthCompare.js +26 -0
- package/Source/Shaders/Builtin/Functions/shadowVisibility.glsl +66 -0
- package/Source/Shaders/Builtin/Functions/shadowVisibility.js +68 -0
- package/Source/Shaders/Builtin/Functions/signNotZero.glsl +29 -0
- package/Source/Shaders/Builtin/Functions/signNotZero.js +31 -0
- package/Source/Shaders/Builtin/Functions/sphericalHarmonics.glsl +44 -0
- package/Source/Shaders/Builtin/Functions/sphericalHarmonics.js +46 -0
- package/Source/Shaders/Builtin/Functions/srgbToLinear.glsl +16 -0
- package/Source/Shaders/Builtin/Functions/srgbToLinear.js +18 -0
- package/Source/Shaders/Builtin/Functions/tangentToEyeSpaceMatrix.glsl +25 -0
- package/Source/Shaders/Builtin/Functions/tangentToEyeSpaceMatrix.js +27 -0
- package/Source/Shaders/Builtin/Functions/textureCube.glsl +36 -0
- package/Source/Shaders/Builtin/Functions/textureCube.js +37 -0
- package/Source/Shaders/Builtin/Functions/transformPlane.glsl +15 -0
- package/Source/Shaders/Builtin/Functions/transformPlane.js +17 -0
- package/Source/Shaders/Builtin/Functions/translateRelativeToEye.glsl +45 -0
- package/Source/Shaders/Builtin/Functions/translateRelativeToEye.js +47 -0
- package/Source/Shaders/Builtin/Functions/translucentPhong.glsl +27 -0
- package/Source/Shaders/Builtin/Functions/translucentPhong.js +29 -0
- package/Source/Shaders/Builtin/Functions/transpose.glsl +45 -0
- package/Source/Shaders/Builtin/Functions/transpose.js +47 -0
- package/Source/Shaders/Builtin/Functions/unpackClippingExtents.glsl +14 -0
- package/Source/Shaders/Builtin/Functions/unpackClippingExtents.js +15 -0
- package/Source/Shaders/Builtin/Functions/unpackDepth.glsl +16 -0
- package/Source/Shaders/Builtin/Functions/unpackDepth.js +18 -0
- package/Source/Shaders/Builtin/Functions/unpackFloat.glsl +24 -0
- package/Source/Shaders/Builtin/Functions/unpackFloat.js +26 -0
- package/Source/Shaders/Builtin/Functions/unpackUint.glsl +31 -0
- package/Source/Shaders/Builtin/Functions/unpackUint.js +33 -0
- package/Source/Shaders/Builtin/Functions/valueTransform.glsl +38 -0
- package/Source/Shaders/Builtin/Functions/valueTransform.js +40 -0
- package/Source/Shaders/Builtin/Functions/vertexLogDepth.glsl +64 -0
- package/Source/Shaders/Builtin/Functions/vertexLogDepth.js +66 -0
- package/Source/Shaders/Builtin/Functions/windowToEyeCoordinates.glsl +110 -0
- package/Source/Shaders/Builtin/Functions/windowToEyeCoordinates.js +112 -0
- package/Source/Shaders/Builtin/Functions/writeDepthClamp.glsl +24 -0
- package/Source/Shaders/Builtin/Functions/writeDepthClamp.js +26 -0
- package/Source/Shaders/Builtin/Functions/writeLogDepth.glsl +79 -0
- package/Source/Shaders/Builtin/Functions/writeLogDepth.js +81 -0
- package/Source/Shaders/Builtin/Functions/writeNonPerspective.glsl +32 -0
- package/Source/Shaders/Builtin/Functions/writeNonPerspective.js +34 -0
- package/Source/Shaders/Builtin/Structs/depthRangeStruct.glsl +9 -0
- package/Source/Shaders/Builtin/Structs/depthRangeStruct.js +11 -0
- package/Source/Shaders/Builtin/Structs/material.glsl +22 -0
- package/Source/Shaders/Builtin/Structs/material.js +24 -0
- package/Source/Shaders/Builtin/Structs/materialInput.glsl +30 -0
- package/Source/Shaders/Builtin/Structs/materialInput.js +32 -0
- package/Source/Shaders/Builtin/Structs/modelMaterial.glsl +45 -0
- package/Source/Shaders/Builtin/Structs/modelMaterial.js +47 -0
- package/Source/Shaders/Builtin/Structs/modelVertexOutput.glsl +16 -0
- package/Source/Shaders/Builtin/Structs/modelVertexOutput.js +18 -0
- package/Source/Shaders/Builtin/Structs/ray.glsl +11 -0
- package/Source/Shaders/Builtin/Structs/ray.js +13 -0
- package/Source/Shaders/Builtin/Structs/raySegment.glsl +27 -0
- package/Source/Shaders/Builtin/Structs/raySegment.js +29 -0
- package/Source/Shaders/Builtin/Structs/shadowParameters.glsl +15 -0
- package/Source/Shaders/Builtin/Structs/shadowParameters.js +17 -0
- package/Source/Shaders/CloudCollectionFS.glsl +263 -0
- package/Source/Shaders/CloudCollectionFS.js +265 -0
- package/Source/Shaders/CloudCollectionVS.glsl +48 -0
- package/Source/Shaders/CloudCollectionVS.js +50 -0
- package/Source/Shaders/CloudNoiseFS.glsl +92 -0
- package/Source/Shaders/CloudNoiseFS.js +94 -0
- package/Source/Shaders/CloudNoiseVS.glsl +18 -0
- package/Source/Shaders/CloudNoiseVS.js +20 -0
- package/Source/Shaders/CompareAndPackTranslucentDepth.glsl +12 -0
- package/Source/Shaders/CompareAndPackTranslucentDepth.js +14 -0
- package/Source/Shaders/CompositeOITFS.glsl +31 -0
- package/Source/Shaders/CompositeOITFS.js +33 -0
- package/Source/Shaders/ComputeIrradianceFS.glsl +103 -0
- package/Source/Shaders/ComputeIrradianceFS.js +105 -0
- package/Source/Shaders/ComputeRadianceMapFS.glsl +107 -0
- package/Source/Shaders/ComputeRadianceMapFS.js +109 -0
- package/Source/Shaders/ConvolveSpecularMapFS.glsl +70 -0
- package/Source/Shaders/ConvolveSpecularMapFS.js +72 -0
- package/Source/Shaders/ConvolveSpecularMapVS.glsl +24 -0
- package/Source/Shaders/ConvolveSpecularMapVS.js +26 -0
- package/Source/Shaders/DepthPlaneFS.glsl +36 -0
- package/Source/Shaders/DepthPlaneFS.js +38 -0
- package/Source/Shaders/DepthPlaneVS.glsl +11 -0
- package/Source/Shaders/DepthPlaneVS.js +13 -0
- package/Source/Shaders/EllipsoidFS.glsl +104 -0
- package/Source/Shaders/EllipsoidFS.js +106 -0
- package/Source/Shaders/EllipsoidVS.glsl +28 -0
- package/Source/Shaders/EllipsoidVS.js +30 -0
- package/Source/Shaders/FXAA3_11.glsl +650 -0
- package/Source/Shaders/FXAA3_11.js +680 -0
- package/Source/Shaders/GlobeFS.glsl +692 -0
- package/Source/Shaders/GlobeFS.js +694 -0
- package/Source/Shaders/GlobeVS.glsl +286 -0
- package/Source/Shaders/GlobeVS.js +288 -0
- package/Source/Shaders/GroundAtmosphere.glsl +18 -0
- package/Source/Shaders/GroundAtmosphere.js +20 -0
- package/Source/Shaders/Materials/AspectRampMaterial.glsl +11 -0
- package/Source/Shaders/Materials/AspectRampMaterial.js +13 -0
- package/Source/Shaders/Materials/BumpMapMaterial.glsl +29 -0
- package/Source/Shaders/Materials/BumpMapMaterial.js +31 -0
- package/Source/Shaders/Materials/CheckerboardMaterial.glsl +29 -0
- package/Source/Shaders/Materials/CheckerboardMaterial.js +31 -0
- package/Source/Shaders/Materials/DotMaterial.glsl +18 -0
- package/Source/Shaders/Materials/DotMaterial.js +20 -0
- package/Source/Shaders/Materials/ElevationBandMaterial.glsl +74 -0
- package/Source/Shaders/Materials/ElevationBandMaterial.js +76 -0
- package/Source/Shaders/Materials/ElevationContourMaterial.glsl +26 -0
- package/Source/Shaders/Materials/ElevationContourMaterial.js +28 -0
- package/Source/Shaders/Materials/ElevationRampMaterial.glsl +14 -0
- package/Source/Shaders/Materials/ElevationRampMaterial.js +16 -0
- package/Source/Shaders/Materials/FadeMaterial.glsl +37 -0
- package/Source/Shaders/Materials/FadeMaterial.js +39 -0
- package/Source/Shaders/Materials/GridMaterial.glsl +57 -0
- package/Source/Shaders/Materials/GridMaterial.js +59 -0
- package/Source/Shaders/Materials/NormalMapMaterial.glsl +19 -0
- package/Source/Shaders/Materials/NormalMapMaterial.js +21 -0
- package/Source/Shaders/Materials/PolylineArrowMaterial.glsl +63 -0
- package/Source/Shaders/Materials/PolylineArrowMaterial.js +65 -0
- package/Source/Shaders/Materials/PolylineDashMaterial.glsl +39 -0
- package/Source/Shaders/Materials/PolylineDashMaterial.js +41 -0
- package/Source/Shaders/Materials/PolylineGlowMaterial.glsl +25 -0
- package/Source/Shaders/Materials/PolylineGlowMaterial.js +27 -0
- package/Source/Shaders/Materials/PolylineOutlineMaterial.glsl +29 -0
- package/Source/Shaders/Materials/PolylineOutlineMaterial.js +31 -0
- package/Source/Shaders/Materials/RimLightingMaterial.glsl +21 -0
- package/Source/Shaders/Materials/RimLightingMaterial.js +23 -0
- package/Source/Shaders/Materials/SlopeRampMaterial.glsl +11 -0
- package/Source/Shaders/Materials/SlopeRampMaterial.js +13 -0
- package/Source/Shaders/Materials/StripeMaterial.glsl +24 -0
- package/Source/Shaders/Materials/StripeMaterial.js +26 -0
- package/Source/Shaders/Materials/Water.glsl +58 -0
- package/Source/Shaders/Materials/Water.js +60 -0
- package/Source/Shaders/Materials/WaterMaskMaterial.glsl +15 -0
- package/Source/Shaders/Materials/WaterMaskMaterial.js +17 -0
- package/Source/Shaders/Model/AtmosphereStageFS.glsl +108 -0
- package/Source/Shaders/Model/AtmosphereStageFS.js +110 -0
- package/Source/Shaders/Model/AtmosphereStageVS.glsl +12 -0
- package/Source/Shaders/Model/AtmosphereStageVS.js +14 -0
- package/Source/Shaders/Model/CPUStylingStageFS.glsl +49 -0
- package/Source/Shaders/Model/CPUStylingStageFS.js +51 -0
- package/Source/Shaders/Model/CPUStylingStageVS.glsl +30 -0
- package/Source/Shaders/Model/CPUStylingStageVS.js +32 -0
- package/Source/Shaders/Model/CustomShaderStageFS.glsl +18 -0
- package/Source/Shaders/Model/CustomShaderStageFS.js +20 -0
- package/Source/Shaders/Model/CustomShaderStageVS.glsl +19 -0
- package/Source/Shaders/Model/CustomShaderStageVS.js +21 -0
- package/Source/Shaders/Model/EdgeDetectionStageFS.glsl +58 -0
- package/Source/Shaders/Model/EdgeDetectionStageFS.js +60 -0
- package/Source/Shaders/Model/EdgeVisibilityStageFS.glsl +83 -0
- package/Source/Shaders/Model/EdgeVisibilityStageFS.js +85 -0
- package/Source/Shaders/Model/FeatureIdStageFS.glsl +4 -0
- package/Source/Shaders/Model/FeatureIdStageFS.js +6 -0
- package/Source/Shaders/Model/FeatureIdStageVS.glsl +6 -0
- package/Source/Shaders/Model/FeatureIdStageVS.js +8 -0
- package/Source/Shaders/Model/GeometryStageFS.glsl +25 -0
- package/Source/Shaders/Model/GeometryStageFS.js +27 -0
- package/Source/Shaders/Model/GeometryStageVS.glsl +42 -0
- package/Source/Shaders/Model/GeometryStageVS.js +44 -0
- package/Source/Shaders/Model/ImageBasedLightingStageFS.glsl +101 -0
- package/Source/Shaders/Model/ImageBasedLightingStageFS.js +103 -0
- package/Source/Shaders/Model/InstancingStageCommon.glsl +67 -0
- package/Source/Shaders/Model/InstancingStageCommon.js +69 -0
- package/Source/Shaders/Model/InstancingStageVS.glsl +18 -0
- package/Source/Shaders/Model/InstancingStageVS.js +20 -0
- package/Source/Shaders/Model/LegacyInstancingStageVS.glsl +20 -0
- package/Source/Shaders/Model/LegacyInstancingStageVS.js +22 -0
- package/Source/Shaders/Model/LightingStageFS.glsl +120 -0
- package/Source/Shaders/Model/LightingStageFS.js +122 -0
- package/Source/Shaders/Model/MaterialStageFS.glsl +497 -0
- package/Source/Shaders/Model/MaterialStageFS.js +499 -0
- package/Source/Shaders/Model/MetadataStageFS.glsl +9 -0
- package/Source/Shaders/Model/MetadataStageFS.js +11 -0
- package/Source/Shaders/Model/MetadataStageVS.glsl +10 -0
- package/Source/Shaders/Model/MetadataStageVS.js +12 -0
- package/Source/Shaders/Model/ModelClippingPlanesStageFS.glsl +88 -0
- package/Source/Shaders/Model/ModelClippingPlanesStageFS.js +90 -0
- package/Source/Shaders/Model/ModelClippingPolygonsStageFS.glsl +6 -0
- package/Source/Shaders/Model/ModelClippingPolygonsStageFS.js +8 -0
- package/Source/Shaders/Model/ModelClippingPolygonsStageVS.glsl +27 -0
- package/Source/Shaders/Model/ModelClippingPolygonsStageVS.js +29 -0
- package/Source/Shaders/Model/ModelColorStageFS.glsl +7 -0
- package/Source/Shaders/Model/ModelColorStageFS.js +9 -0
- package/Source/Shaders/Model/ModelFS.glsl +133 -0
- package/Source/Shaders/Model/ModelFS.js +135 -0
- package/Source/Shaders/Model/ModelSilhouetteStageFS.glsl +5 -0
- package/Source/Shaders/Model/ModelSilhouetteStageFS.js +6 -0
- package/Source/Shaders/Model/ModelSilhouetteStageVS.glsl +10 -0
- package/Source/Shaders/Model/ModelSilhouetteStageVS.js +12 -0
- package/Source/Shaders/Model/ModelSplitterStageFS.glsl +9 -0
- package/Source/Shaders/Model/ModelSplitterStageFS.js +11 -0
- package/Source/Shaders/Model/ModelVS.glsl +161 -0
- package/Source/Shaders/Model/ModelVS.js +163 -0
- package/Source/Shaders/Model/MorphTargetsStageVS.glsl +15 -0
- package/Source/Shaders/Model/MorphTargetsStageVS.js +16 -0
- package/Source/Shaders/Model/PointCloudStylingStageVS.glsl +45 -0
- package/Source/Shaders/Model/PointCloudStylingStageVS.js +47 -0
- package/Source/Shaders/Model/PrimitiveOutlineStageFS.glsl +15 -0
- package/Source/Shaders/Model/PrimitiveOutlineStageFS.js +17 -0
- package/Source/Shaders/Model/PrimitiveOutlineStageVS.glsl +3 -0
- package/Source/Shaders/Model/PrimitiveOutlineStageVS.js +5 -0
- package/Source/Shaders/Model/SelectedFeatureIdStageCommon.glsl +51 -0
- package/Source/Shaders/Model/SelectedFeatureIdStageCommon.js +53 -0
- package/Source/Shaders/Model/SkinningStageVS.glsl +18 -0
- package/Source/Shaders/Model/SkinningStageVS.js +19 -0
- package/Source/Shaders/Model/VerticalExaggerationStageVS.glsl +39 -0
- package/Source/Shaders/Model/VerticalExaggerationStageVS.js +41 -0
- package/Source/Shaders/PointPrimitiveCollectionFS.glsl +47 -0
- package/Source/Shaders/PointPrimitiveCollectionFS.js +49 -0
- package/Source/Shaders/PointPrimitiveCollectionVS.glsl +185 -0
- package/Source/Shaders/PointPrimitiveCollectionVS.js +187 -0
- package/Source/Shaders/PolygonSignedDistanceFS.glsl +100 -0
- package/Source/Shaders/PolygonSignedDistanceFS.js +101 -0
- package/Source/Shaders/PolylineCommon.glsl +176 -0
- package/Source/Shaders/PolylineCommon.js +178 -0
- package/Source/Shaders/PolylineFS.glsl +25 -0
- package/Source/Shaders/PolylineFS.js +27 -0
- package/Source/Shaders/PolylineShadowVolumeFS.glsl +86 -0
- package/Source/Shaders/PolylineShadowVolumeFS.js +88 -0
- package/Source/Shaders/PolylineShadowVolumeMorphFS.glsl +45 -0
- package/Source/Shaders/PolylineShadowVolumeMorphFS.js +47 -0
- package/Source/Shaders/PolylineShadowVolumeMorphVS.glsl +177 -0
- package/Source/Shaders/PolylineShadowVolumeMorphVS.js +179 -0
- package/Source/Shaders/PolylineShadowVolumeVS.glsl +168 -0
- package/Source/Shaders/PolylineShadowVolumeVS.js +170 -0
- package/Source/Shaders/PolylineVS.glsl +103 -0
- package/Source/Shaders/PolylineVS.js +105 -0
- package/Source/Shaders/PostProcessStages/AcesTonemappingStage.glsl +25 -0
- package/Source/Shaders/PostProcessStages/AcesTonemappingStage.js +27 -0
- package/Source/Shaders/PostProcessStages/AdditiveBlend.glsl +17 -0
- package/Source/Shaders/PostProcessStages/AdditiveBlend.js +19 -0
- package/Source/Shaders/PostProcessStages/AmbientOcclusionGenerate.glsl +144 -0
- package/Source/Shaders/PostProcessStages/AmbientOcclusionGenerate.js +146 -0
- package/Source/Shaders/PostProcessStages/AmbientOcclusionModulate.glsl +11 -0
- package/Source/Shaders/PostProcessStages/AmbientOcclusionModulate.js +13 -0
- package/Source/Shaders/PostProcessStages/BlackAndWhite.glsl +19 -0
- package/Source/Shaders/PostProcessStages/BlackAndWhite.js +21 -0
- package/Source/Shaders/PostProcessStages/BloomComposite.glsl +20 -0
- package/Source/Shaders/PostProcessStages/BloomComposite.js +22 -0
- package/Source/Shaders/PostProcessStages/BrightPass.glsl +30 -0
- package/Source/Shaders/PostProcessStages/BrightPass.js +32 -0
- package/Source/Shaders/PostProcessStages/Brightness.glsl +11 -0
- package/Source/Shaders/PostProcessStages/Brightness.js +13 -0
- package/Source/Shaders/PostProcessStages/CompositeTranslucentClassification.glsl +31 -0
- package/Source/Shaders/PostProcessStages/CompositeTranslucentClassification.js +33 -0
- package/Source/Shaders/PostProcessStages/ContrastBias.glsl +17 -0
- package/Source/Shaders/PostProcessStages/ContrastBias.js +19 -0
- package/Source/Shaders/PostProcessStages/DepthOfField.glsl +39 -0
- package/Source/Shaders/PostProcessStages/DepthOfField.js +41 -0
- package/Source/Shaders/PostProcessStages/DepthView.glsl +9 -0
- package/Source/Shaders/PostProcessStages/DepthView.js +11 -0
- package/Source/Shaders/PostProcessStages/DepthViewPacked.glsl +14 -0
- package/Source/Shaders/PostProcessStages/DepthViewPacked.js +16 -0
- package/Source/Shaders/PostProcessStages/EdgeDetection.glsl +60 -0
- package/Source/Shaders/PostProcessStages/EdgeDetection.js +62 -0
- package/Source/Shaders/PostProcessStages/FXAA.glsl +21 -0
- package/Source/Shaders/PostProcessStages/FXAA.js +23 -0
- package/Source/Shaders/PostProcessStages/FilmicTonemapping.glsl +40 -0
- package/Source/Shaders/PostProcessStages/FilmicTonemapping.js +42 -0
- package/Source/Shaders/PostProcessStages/GaussianBlur1D.glsl +47 -0
- package/Source/Shaders/PostProcessStages/GaussianBlur1D.js +49 -0
- package/Source/Shaders/PostProcessStages/LensFlare.glsl +153 -0
- package/Source/Shaders/PostProcessStages/LensFlare.js +155 -0
- package/Source/Shaders/PostProcessStages/ModifiedReinhardTonemapping.glsl +28 -0
- package/Source/Shaders/PostProcessStages/ModifiedReinhardTonemapping.js +30 -0
- package/Source/Shaders/PostProcessStages/NightVision.glsl +16 -0
- package/Source/Shaders/PostProcessStages/NightVision.js +18 -0
- package/Source/Shaders/PostProcessStages/PassThrough.glsl +8 -0
- package/Source/Shaders/PostProcessStages/PassThrough.js +10 -0
- package/Source/Shaders/PostProcessStages/PassThroughDepth.glsl +8 -0
- package/Source/Shaders/PostProcessStages/PassThroughDepth.js +10 -0
- package/Source/Shaders/PostProcessStages/PbrNeutralTonemapping.glsl +25 -0
- package/Source/Shaders/PostProcessStages/PbrNeutralTonemapping.js +27 -0
- package/Source/Shaders/PostProcessStages/PointCloudEyeDomeLighting.glsl +61 -0
- package/Source/Shaders/PostProcessStages/PointCloudEyeDomeLighting.js +63 -0
- package/Source/Shaders/PostProcessStages/ReinhardTonemapping.glsl +27 -0
- package/Source/Shaders/PostProcessStages/ReinhardTonemapping.js +29 -0
- package/Source/Shaders/PostProcessStages/Silhouette.glsl +11 -0
- package/Source/Shaders/PostProcessStages/Silhouette.js +13 -0
- package/Source/Shaders/PrimitiveGaussianSplatFS.glsl +18 -0
- package/Source/Shaders/PrimitiveGaussianSplatFS.js +20 -0
- package/Source/Shaders/PrimitiveGaussianSplatVS.glsl +189 -0
- package/Source/Shaders/PrimitiveGaussianSplatVS.js +190 -0
- package/Source/Shaders/ReprojectWebMercatorFS.glsl +8 -0
- package/Source/Shaders/ReprojectWebMercatorFS.js +10 -0
- package/Source/Shaders/ReprojectWebMercatorVS.glsl +12 -0
- package/Source/Shaders/ReprojectWebMercatorVS.js +14 -0
- package/Source/Shaders/ShadowVolumeAppearanceFS.glsl +153 -0
- package/Source/Shaders/ShadowVolumeAppearanceFS.js +155 -0
- package/Source/Shaders/ShadowVolumeAppearanceVS.glsl +101 -0
- package/Source/Shaders/ShadowVolumeAppearanceVS.js +103 -0
- package/Source/Shaders/ShadowVolumeFS.glsl +13 -0
- package/Source/Shaders/ShadowVolumeFS.js +15 -0
- package/Source/Shaders/SkyAtmosphereCommon.glsl +81 -0
- package/Source/Shaders/SkyAtmosphereCommon.js +83 -0
- package/Source/Shaders/SkyAtmosphereFS.glsl +59 -0
- package/Source/Shaders/SkyAtmosphereFS.js +61 -0
- package/Source/Shaders/SkyAtmosphereVS.glsl +32 -0
- package/Source/Shaders/SkyAtmosphereVS.js +34 -0
- package/Source/Shaders/SkyBoxFS.glsl +9 -0
- package/Source/Shaders/SkyBoxFS.js +11 -0
- package/Source/Shaders/SkyBoxVS.glsl +9 -0
- package/Source/Shaders/SkyBoxVS.js +11 -0
- package/Source/Shaders/SunFS.glsl +9 -0
- package/Source/Shaders/SunFS.js +11 -0
- package/Source/Shaders/SunTextureFS.glsl +55 -0
- package/Source/Shaders/SunTextureFS.js +57 -0
- package/Source/Shaders/SunVS.glsl +28 -0
- package/Source/Shaders/SunVS.js +30 -0
- package/Source/Shaders/Vector3DTileClampedPolylinesFS.glsl +48 -0
- package/Source/Shaders/Vector3DTileClampedPolylinesFS.js +50 -0
- package/Source/Shaders/Vector3DTileClampedPolylinesVS.glsl +85 -0
- package/Source/Shaders/Vector3DTileClampedPolylinesVS.js +87 -0
- package/Source/Shaders/Vector3DTilePolylinesVS.glsl +22 -0
- package/Source/Shaders/Vector3DTilePolylinesVS.js +24 -0
- package/Source/Shaders/VectorTileVS.glsl +9 -0
- package/Source/Shaders/VectorTileVS.js +11 -0
- package/Source/Shaders/ViewportQuadFS.glsl +16 -0
- package/Source/Shaders/ViewportQuadFS.js +18 -0
- package/Source/Shaders/ViewportQuadVS.glsl +10 -0
- package/Source/Shaders/ViewportQuadVS.js +12 -0
- package/Source/Shaders/Voxels/IntersectBox.glsl +34 -0
- package/Source/Shaders/Voxels/IntersectBox.js +36 -0
- package/Source/Shaders/Voxels/IntersectCylinder.glsl +142 -0
- package/Source/Shaders/Voxels/IntersectCylinder.js +144 -0
- package/Source/Shaders/Voxels/IntersectDepth.glsl +27 -0
- package/Source/Shaders/Voxels/IntersectDepth.js +29 -0
- package/Source/Shaders/Voxels/IntersectEllipsoid.glsl +330 -0
- package/Source/Shaders/Voxels/IntersectEllipsoid.js +332 -0
- package/Source/Shaders/Voxels/IntersectLongitude.glsl +114 -0
- package/Source/Shaders/Voxels/IntersectLongitude.js +116 -0
- package/Source/Shaders/Voxels/IntersectPlane.glsl +80 -0
- package/Source/Shaders/Voxels/IntersectPlane.js +82 -0
- package/Source/Shaders/Voxels/Intersection.glsl +50 -0
- package/Source/Shaders/Voxels/Intersection.js +52 -0
- package/Source/Shaders/Voxels/IntersectionUtils.glsl +167 -0
- package/Source/Shaders/Voxels/IntersectionUtils.js +169 -0
- package/Source/Shaders/Voxels/Megatexture.glsl +123 -0
- package/Source/Shaders/Voxels/Megatexture.js +125 -0
- package/Source/Shaders/Voxels/Octree.glsl +257 -0
- package/Source/Shaders/Voxels/Octree.js +259 -0
- package/Source/Shaders/Voxels/VoxelFS.glsl +267 -0
- package/Source/Shaders/Voxels/VoxelFS.js +269 -0
- package/Source/Shaders/Voxels/VoxelUtils.glsl +12 -0
- package/Source/Shaders/Voxels/VoxelUtils.js +14 -0
- package/Source/Shaders/Voxels/VoxelVS.glsl +11 -0
- package/Source/Shaders/Voxels/VoxelVS.js +13 -0
- package/Source/Shaders/Voxels/convertLocalToBoxUv.glsl +30 -0
- package/Source/Shaders/Voxels/convertLocalToBoxUv.js +32 -0
- package/Source/Shaders/Voxels/convertLocalToCylinderUv.glsl +97 -0
- package/Source/Shaders/Voxels/convertLocalToCylinderUv.js +99 -0
- package/Source/Shaders/Voxels/convertLocalToEllipsoidUv.glsl +193 -0
- package/Source/Shaders/Voxels/convertLocalToEllipsoidUv.js +195 -0
- package/Source/ThirdParty/Workers/basis_transcoder.js +21 -0
- package/Source/ThirdParty/Workers/package.json +1 -0
- package/Source/ThirdParty/Workers/zip-web-worker.js +1 -0
- package/Source/ThirdParty/basis_transcoder.wasm +0 -0
- package/Source/ThirdParty/draco_decoder.wasm +0 -0
- package/Source/ThirdParty/google-earth-dbroot-parser.js +8337 -0
- package/Source/ThirdParty/wasm_splats_bg.wasm +0 -0
- package/Source/ThirdParty/zip-module.wasm +0 -0
- package/Source/Widget/CesiumWidget.css +119 -0
- package/Source/Widget/CesiumWidget.js +1606 -0
- package/Source/Widget/lighter.css +14 -0
- package/Source/Workers/combineGeometry.js +13 -0
- package/Source/Workers/createBoxGeometry.js +10 -0
- package/Source/Workers/createBoxOutlineGeometry.js +10 -0
- package/Source/Workers/createCircleGeometry.js +18 -0
- package/Source/Workers/createCircleOutlineGeometry.js +18 -0
- package/Source/Workers/createCoplanarPolygonGeometry.js +10 -0
- package/Source/Workers/createCoplanarPolygonOutlineGeometry.js +15 -0
- package/Source/Workers/createCorridorGeometry.js +12 -0
- package/Source/Workers/createCorridorOutlineGeometry.js +17 -0
- package/Source/Workers/createCylinderGeometry.js +10 -0
- package/Source/Workers/createCylinderOutlineGeometry.js +10 -0
- package/Source/Workers/createEllipseGeometry.js +14 -0
- package/Source/Workers/createEllipseOutlineGeometry.js +14 -0
- package/Source/Workers/createEllipsoidGeometry.js +10 -0
- package/Source/Workers/createEllipsoidOutlineGeometry.js +13 -0
- package/Source/Workers/createFrustumGeometry.js +10 -0
- package/Source/Workers/createFrustumOutlineGeometry.js +10 -0
- package/Source/Workers/createGeometry.js +78 -0
- package/Source/Workers/createGroundPolylineGeometry.js +16 -0
- package/Source/Workers/createPlaneGeometry.js +10 -0
- package/Source/Workers/createPlaneOutlineGeometry.js +10 -0
- package/Source/Workers/createPolygonGeometry.js +12 -0
- package/Source/Workers/createPolygonOutlineGeometry.js +12 -0
- package/Source/Workers/createPolylineGeometry.js +12 -0
- package/Source/Workers/createPolylineVolumeGeometry.js +17 -0
- package/Source/Workers/createPolylineVolumeOutlineGeometry.js +22 -0
- package/Source/Workers/createRectangleGeometry.js +14 -0
- package/Source/Workers/createRectangleOutlineGeometry.js +17 -0
- package/Source/Workers/createSimplePolylineGeometry.js +17 -0
- package/Source/Workers/createSphereGeometry.js +10 -0
- package/Source/Workers/createSphereOutlineGeometry.js +10 -0
- package/Source/Workers/createTaskProcessorWorker.js +113 -0
- package/Source/Workers/createVectorTileClampedPolylines.js +541 -0
- package/Source/Workers/createVectorTileGeometries.js +414 -0
- package/Source/Workers/createVectorTilePoints.js +81 -0
- package/Source/Workers/createVectorTilePolygons.js +412 -0
- package/Source/Workers/createVectorTilePolylines.js +210 -0
- package/Source/Workers/createVerticesFromCesium3DTilesTerrain.js +46 -0
- package/Source/Workers/createVerticesFromGoogleEarthEnterpriseBuffer.js +651 -0
- package/Source/Workers/createVerticesFromHeightmap.js +53 -0
- package/Source/Workers/createVerticesFromQuantizedTerrainMesh.js +549 -0
- package/Source/Workers/createWallGeometry.js +12 -0
- package/Source/Workers/createWallOutlineGeometry.js +12 -0
- package/Source/Workers/decodeDraco.js +383 -0
- package/Source/Workers/decodeGoogleEarthEnterprisePacket.js +268 -0
- package/Source/Workers/decodeI3S.js +1652 -0
- package/Source/Workers/gaussianSplatSorter.js +34 -0
- package/Source/Workers/gaussianSplatTextureGenerator.js +39 -0
- package/Source/Workers/incrementallyBuildTerrainPicker.js +108 -0
- package/Source/Workers/transcodeKTX2.js +308 -0
- package/Source/Workers/transferTypedArrayTest.js +16 -0
- package/Source/Workers/upsampleQuantizedTerrainMesh.js +681 -0
- package/Source/Workers/upsampleVerticesFromCesium3DTilesTerrain.js +55 -0
- package/index.d.ts +46026 -0
- package/index.js +1227 -0
- package/package.json +79 -0
|
@@ -0,0 +1,5142 @@
|
|
|
1
|
+
import ArcType from "../Core/ArcType.js";
|
|
2
|
+
import BoundingRectangle from "../Core/BoundingRectangle.js";
|
|
3
|
+
import Cartesian2 from "../Core/Cartesian2.js";
|
|
4
|
+
import Cartesian3 from "../Core/Cartesian3.js";
|
|
5
|
+
import Cartographic from "../Core/Cartographic.js";
|
|
6
|
+
import ClockRange from "../Core/ClockRange.js";
|
|
7
|
+
import ClockStep from "../Core/ClockStep.js";
|
|
8
|
+
import Color from "../Core/Color.js";
|
|
9
|
+
import CornerType from "../Core/CornerType.js";
|
|
10
|
+
import Credit from "../Core/Credit.js";
|
|
11
|
+
import createGuid from "../Core/createGuid.js";
|
|
12
|
+
import Frozen from "../Core/Frozen.js";
|
|
13
|
+
import defined from "../Core/defined.js";
|
|
14
|
+
import DeveloperError from "../Core/DeveloperError.js";
|
|
15
|
+
import DistanceDisplayCondition from "../Core/DistanceDisplayCondition.js";
|
|
16
|
+
import Ellipsoid from "../Core/Ellipsoid.js";
|
|
17
|
+
import Event from "../Core/Event.js";
|
|
18
|
+
import ExtrapolationType from "../Core/ExtrapolationType.js";
|
|
19
|
+
import getFilenameFromUri from "../Core/getFilenameFromUri.js";
|
|
20
|
+
import HermitePolynomialApproximation from "../Core/HermitePolynomialApproximation.js";
|
|
21
|
+
import Iso8601 from "../Core/Iso8601.js";
|
|
22
|
+
import JulianDate from "../Core/JulianDate.js";
|
|
23
|
+
import LagrangePolynomialApproximation from "../Core/LagrangePolynomialApproximation.js";
|
|
24
|
+
import LinearApproximation from "../Core/LinearApproximation.js";
|
|
25
|
+
import CesiumMath from "../Core/Math.js";
|
|
26
|
+
import NearFarScalar from "../Core/NearFarScalar.js";
|
|
27
|
+
import PolygonHierarchy from "../Core/PolygonHierarchy.js";
|
|
28
|
+
import Quaternion from "../Core/Quaternion.js";
|
|
29
|
+
import Rectangle from "../Core/Rectangle.js";
|
|
30
|
+
import ReferenceFrame from "../Core/ReferenceFrame.js";
|
|
31
|
+
import Resource from "../Core/Resource.js";
|
|
32
|
+
import RuntimeError from "../Core/RuntimeError.js";
|
|
33
|
+
import Spherical from "../Core/Spherical.js";
|
|
34
|
+
import TimeInterval from "../Core/TimeInterval.js";
|
|
35
|
+
import TimeIntervalCollection from "../Core/TimeIntervalCollection.js";
|
|
36
|
+
import ClassificationType from "../Scene/ClassificationType.js";
|
|
37
|
+
import ColorBlendMode from "../Scene/ColorBlendMode.js";
|
|
38
|
+
import HeightReference from "../Scene/HeightReference.js";
|
|
39
|
+
import HorizontalOrigin from "../Scene/HorizontalOrigin.js";
|
|
40
|
+
import LabelStyle from "../Scene/LabelStyle.js";
|
|
41
|
+
import ShadowMode from "../Scene/ShadowMode.js";
|
|
42
|
+
import VerticalOrigin from "../Scene/VerticalOrigin.js";
|
|
43
|
+
import Uri from "urijs";
|
|
44
|
+
import BillboardGraphics from "./BillboardGraphics.js";
|
|
45
|
+
import BoxGraphics from "./BoxGraphics.js";
|
|
46
|
+
import CallbackProperty from "./CallbackProperty.js";
|
|
47
|
+
import CheckerboardMaterialProperty from "./CheckerboardMaterialProperty.js";
|
|
48
|
+
import ColorMaterialProperty from "./ColorMaterialProperty.js";
|
|
49
|
+
import CompositeMaterialProperty from "./CompositeMaterialProperty.js";
|
|
50
|
+
import CompositePositionProperty from "./CompositePositionProperty.js";
|
|
51
|
+
import CompositeProperty from "./CompositeProperty.js";
|
|
52
|
+
import ConstantPositionProperty from "./ConstantPositionProperty.js";
|
|
53
|
+
import ConstantProperty from "./ConstantProperty.js";
|
|
54
|
+
import CorridorGraphics from "./CorridorGraphics.js";
|
|
55
|
+
import CylinderGraphics from "./CylinderGraphics.js";
|
|
56
|
+
import DataSource from "./DataSource.js";
|
|
57
|
+
import DataSourceClock from "./DataSourceClock.js";
|
|
58
|
+
import EllipseGraphics from "./EllipseGraphics.js";
|
|
59
|
+
import EllipsoidGraphics from "./EllipsoidGraphics.js";
|
|
60
|
+
import EntityCluster from "./EntityCluster.js";
|
|
61
|
+
import EntityCollection from "./EntityCollection.js";
|
|
62
|
+
import GridMaterialProperty from "./GridMaterialProperty.js";
|
|
63
|
+
import ImageMaterialProperty from "./ImageMaterialProperty.js";
|
|
64
|
+
import LabelGraphics from "./LabelGraphics.js";
|
|
65
|
+
import ModelGraphics from "./ModelGraphics.js";
|
|
66
|
+
import NodeTransformationProperty from "./NodeTransformationProperty.js";
|
|
67
|
+
import PathGraphics from "./PathGraphics.js";
|
|
68
|
+
import PointGraphics from "./PointGraphics.js";
|
|
69
|
+
import PolygonGraphics from "./PolygonGraphics.js";
|
|
70
|
+
import PolylineArrowMaterialProperty from "./PolylineArrowMaterialProperty.js";
|
|
71
|
+
import PolylineDashMaterialProperty from "./PolylineDashMaterialProperty.js";
|
|
72
|
+
import PolylineGlowMaterialProperty from "./PolylineGlowMaterialProperty.js";
|
|
73
|
+
import PolylineGraphics from "./PolylineGraphics.js";
|
|
74
|
+
import PolylineOutlineMaterialProperty from "./PolylineOutlineMaterialProperty.js";
|
|
75
|
+
import PolylineVolumeGraphics from "./PolylineVolumeGraphics.js";
|
|
76
|
+
import PositionPropertyArray from "./PositionPropertyArray.js";
|
|
77
|
+
import Property from "./Property.js";
|
|
78
|
+
import PropertyArray from "./PropertyArray.js";
|
|
79
|
+
import PropertyBag from "./PropertyBag.js";
|
|
80
|
+
import RectangleGraphics from "./RectangleGraphics.js";
|
|
81
|
+
import ReferenceProperty from "./ReferenceProperty.js";
|
|
82
|
+
import Rotation from "./Rotation.js";
|
|
83
|
+
import SampledPositionProperty from "./SampledPositionProperty.js";
|
|
84
|
+
import SampledProperty from "./SampledProperty.js";
|
|
85
|
+
import StripeMaterialProperty from "./StripeMaterialProperty.js";
|
|
86
|
+
import StripeOrientation from "./StripeOrientation.js";
|
|
87
|
+
import TimeIntervalCollectionPositionProperty from "./TimeIntervalCollectionPositionProperty.js";
|
|
88
|
+
import TimeIntervalCollectionProperty from "./TimeIntervalCollectionProperty.js";
|
|
89
|
+
import VelocityOrientationProperty from "./VelocityOrientationProperty.js";
|
|
90
|
+
import VelocityVectorProperty from "./VelocityVectorProperty.js";
|
|
91
|
+
import WallGraphics from "./WallGraphics.js";
|
|
92
|
+
import Cesium3DTilesetGraphics from "./Cesium3DTilesetGraphics.js";
|
|
93
|
+
import SensorVolumePortionToDisplay from "../Scene/SensorVolumePortionToDisplay.js";
|
|
94
|
+
|
|
95
|
+
// A marker type to distinguish CZML properties where we need to end up with a unit vector.
|
|
96
|
+
// The data is still loaded into Cartesian3 objects but they are normalized.
|
|
97
|
+
function UnitCartesian3() {}
|
|
98
|
+
UnitCartesian3.packedLength = Cartesian3.packedLength;
|
|
99
|
+
UnitCartesian3.unpack = Cartesian3.unpack;
|
|
100
|
+
UnitCartesian3.pack = Cartesian3.pack;
|
|
101
|
+
|
|
102
|
+
// As a side note, for the purposes of CZML, Quaternion always indicates a unit quaternion.
|
|
103
|
+
|
|
104
|
+
let currentId;
|
|
105
|
+
|
|
106
|
+
function createReferenceProperty(entityCollection, referenceString) {
|
|
107
|
+
if (referenceString[0] === "#") {
|
|
108
|
+
referenceString = currentId + referenceString;
|
|
109
|
+
}
|
|
110
|
+
return ReferenceProperty.fromString(entityCollection, referenceString);
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
function createSpecializedProperty(type, entityCollection, packetData) {
|
|
114
|
+
if (defined(packetData.reference)) {
|
|
115
|
+
return createReferenceProperty(entityCollection, packetData.reference);
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
if (defined(packetData.velocityReference)) {
|
|
119
|
+
const referenceProperty = createReferenceProperty(
|
|
120
|
+
entityCollection,
|
|
121
|
+
packetData.velocityReference,
|
|
122
|
+
);
|
|
123
|
+
switch (type) {
|
|
124
|
+
case Cartesian3:
|
|
125
|
+
case UnitCartesian3:
|
|
126
|
+
return new VelocityVectorProperty(
|
|
127
|
+
referenceProperty,
|
|
128
|
+
type === UnitCartesian3,
|
|
129
|
+
);
|
|
130
|
+
case Quaternion:
|
|
131
|
+
return new VelocityOrientationProperty(referenceProperty);
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
throw new RuntimeError(`${JSON.stringify(packetData)} is not valid CZML.`);
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
function createAdapterProperty(property, adapterFunction) {
|
|
139
|
+
return new CallbackProperty(function (time, result) {
|
|
140
|
+
return adapterFunction(property.getValue(time, result));
|
|
141
|
+
}, property.isConstant);
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
const scratchCartesian = new Cartesian3();
|
|
145
|
+
const scratchSpherical = new Spherical();
|
|
146
|
+
const scratchCartographic = new Cartographic();
|
|
147
|
+
const scratchTimeInterval = new TimeInterval();
|
|
148
|
+
const scratchQuaternion = new Quaternion();
|
|
149
|
+
|
|
150
|
+
function unwrapColorInterval(czmlInterval) {
|
|
151
|
+
let rgbaf = czmlInterval.rgbaf;
|
|
152
|
+
if (defined(rgbaf)) {
|
|
153
|
+
return rgbaf;
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
const rgba = czmlInterval.rgba;
|
|
157
|
+
if (!defined(rgba)) {
|
|
158
|
+
return undefined;
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
const length = rgba.length;
|
|
162
|
+
if (length === Color.packedLength) {
|
|
163
|
+
return [
|
|
164
|
+
Color.byteToFloat(rgba[0]),
|
|
165
|
+
Color.byteToFloat(rgba[1]),
|
|
166
|
+
Color.byteToFloat(rgba[2]),
|
|
167
|
+
Color.byteToFloat(rgba[3]),
|
|
168
|
+
];
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
rgbaf = new Array(length);
|
|
172
|
+
for (let i = 0; i < length; i += 5) {
|
|
173
|
+
rgbaf[i] = rgba[i];
|
|
174
|
+
rgbaf[i + 1] = Color.byteToFloat(rgba[i + 1]);
|
|
175
|
+
rgbaf[i + 2] = Color.byteToFloat(rgba[i + 2]);
|
|
176
|
+
rgbaf[i + 3] = Color.byteToFloat(rgba[i + 3]);
|
|
177
|
+
rgbaf[i + 4] = Color.byteToFloat(rgba[i + 4]);
|
|
178
|
+
}
|
|
179
|
+
return rgbaf;
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
function unwrapUriInterval(czmlInterval, sourceUri) {
|
|
183
|
+
const uri = czmlInterval.uri ?? czmlInterval;
|
|
184
|
+
if (defined(sourceUri)) {
|
|
185
|
+
return sourceUri.getDerivedResource({
|
|
186
|
+
url: uri,
|
|
187
|
+
});
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
return Resource.createIfNeeded(uri);
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
function unwrapRectangleInterval(czmlInterval) {
|
|
194
|
+
let wsen = czmlInterval.wsen;
|
|
195
|
+
if (defined(wsen)) {
|
|
196
|
+
return wsen;
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
const wsenDegrees = czmlInterval.wsenDegrees;
|
|
200
|
+
if (!defined(wsenDegrees)) {
|
|
201
|
+
return undefined;
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
const length = wsenDegrees.length;
|
|
205
|
+
if (length === Rectangle.packedLength) {
|
|
206
|
+
return [
|
|
207
|
+
CesiumMath.toRadians(wsenDegrees[0]),
|
|
208
|
+
CesiumMath.toRadians(wsenDegrees[1]),
|
|
209
|
+
CesiumMath.toRadians(wsenDegrees[2]),
|
|
210
|
+
CesiumMath.toRadians(wsenDegrees[3]),
|
|
211
|
+
];
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
wsen = new Array(length);
|
|
215
|
+
for (let i = 0; i < length; i += 5) {
|
|
216
|
+
wsen[i] = wsenDegrees[i];
|
|
217
|
+
wsen[i + 1] = CesiumMath.toRadians(wsenDegrees[i + 1]);
|
|
218
|
+
wsen[i + 2] = CesiumMath.toRadians(wsenDegrees[i + 2]);
|
|
219
|
+
wsen[i + 3] = CesiumMath.toRadians(wsenDegrees[i + 3]);
|
|
220
|
+
wsen[i + 4] = CesiumMath.toRadians(wsenDegrees[i + 4]);
|
|
221
|
+
}
|
|
222
|
+
return wsen;
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
function convertUnitSphericalToCartesian(unitSpherical) {
|
|
226
|
+
const length = unitSpherical.length;
|
|
227
|
+
scratchSpherical.magnitude = 1.0;
|
|
228
|
+
if (length === 2) {
|
|
229
|
+
scratchSpherical.clock = unitSpherical[0];
|
|
230
|
+
scratchSpherical.cone = unitSpherical[1];
|
|
231
|
+
Cartesian3.fromSpherical(scratchSpherical, scratchCartesian);
|
|
232
|
+
return [scratchCartesian.x, scratchCartesian.y, scratchCartesian.z];
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
const result = new Array((length / 3) * 4);
|
|
236
|
+
for (let i = 0, j = 0; i < length; i += 3, j += 4) {
|
|
237
|
+
result[j] = unitSpherical[i];
|
|
238
|
+
|
|
239
|
+
scratchSpherical.clock = unitSpherical[i + 1];
|
|
240
|
+
scratchSpherical.cone = unitSpherical[i + 2];
|
|
241
|
+
Cartesian3.fromSpherical(scratchSpherical, scratchCartesian);
|
|
242
|
+
|
|
243
|
+
result[j + 1] = scratchCartesian.x;
|
|
244
|
+
result[j + 2] = scratchCartesian.y;
|
|
245
|
+
result[j + 3] = scratchCartesian.z;
|
|
246
|
+
}
|
|
247
|
+
return result;
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
function convertSphericalToCartesian(spherical) {
|
|
251
|
+
const length = spherical.length;
|
|
252
|
+
if (length === 3) {
|
|
253
|
+
scratchSpherical.clock = spherical[0];
|
|
254
|
+
scratchSpherical.cone = spherical[1];
|
|
255
|
+
scratchSpherical.magnitude = spherical[2];
|
|
256
|
+
Cartesian3.fromSpherical(scratchSpherical, scratchCartesian);
|
|
257
|
+
return [scratchCartesian.x, scratchCartesian.y, scratchCartesian.z];
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
const result = new Array(length);
|
|
261
|
+
for (let i = 0; i < length; i += 4) {
|
|
262
|
+
result[i] = spherical[i];
|
|
263
|
+
|
|
264
|
+
scratchSpherical.clock = spherical[i + 1];
|
|
265
|
+
scratchSpherical.cone = spherical[i + 2];
|
|
266
|
+
scratchSpherical.magnitude = spherical[i + 3];
|
|
267
|
+
Cartesian3.fromSpherical(scratchSpherical, scratchCartesian);
|
|
268
|
+
|
|
269
|
+
result[i + 1] = scratchCartesian.x;
|
|
270
|
+
result[i + 2] = scratchCartesian.y;
|
|
271
|
+
result[i + 3] = scratchCartesian.z;
|
|
272
|
+
}
|
|
273
|
+
return result;
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
function convertCartographicRadiansToCartesian(cartographicRadians) {
|
|
277
|
+
const length = cartographicRadians.length;
|
|
278
|
+
if (length === 3) {
|
|
279
|
+
scratchCartographic.longitude = cartographicRadians[0];
|
|
280
|
+
scratchCartographic.latitude = cartographicRadians[1];
|
|
281
|
+
scratchCartographic.height = cartographicRadians[2];
|
|
282
|
+
Ellipsoid.default.cartographicToCartesian(
|
|
283
|
+
scratchCartographic,
|
|
284
|
+
scratchCartesian,
|
|
285
|
+
);
|
|
286
|
+
return [scratchCartesian.x, scratchCartesian.y, scratchCartesian.z];
|
|
287
|
+
}
|
|
288
|
+
|
|
289
|
+
const result = new Array(length);
|
|
290
|
+
for (let i = 0; i < length; i += 4) {
|
|
291
|
+
result[i] = cartographicRadians[i];
|
|
292
|
+
|
|
293
|
+
scratchCartographic.longitude = cartographicRadians[i + 1];
|
|
294
|
+
scratchCartographic.latitude = cartographicRadians[i + 2];
|
|
295
|
+
scratchCartographic.height = cartographicRadians[i + 3];
|
|
296
|
+
Ellipsoid.default.cartographicToCartesian(
|
|
297
|
+
scratchCartographic,
|
|
298
|
+
scratchCartesian,
|
|
299
|
+
);
|
|
300
|
+
|
|
301
|
+
result[i + 1] = scratchCartesian.x;
|
|
302
|
+
result[i + 2] = scratchCartesian.y;
|
|
303
|
+
result[i + 3] = scratchCartesian.z;
|
|
304
|
+
}
|
|
305
|
+
return result;
|
|
306
|
+
}
|
|
307
|
+
|
|
308
|
+
function convertCartographicDegreesToCartesian(cartographicDegrees) {
|
|
309
|
+
const length = cartographicDegrees.length;
|
|
310
|
+
if (length === 3) {
|
|
311
|
+
scratchCartographic.longitude = CesiumMath.toRadians(
|
|
312
|
+
cartographicDegrees[0],
|
|
313
|
+
);
|
|
314
|
+
scratchCartographic.latitude = CesiumMath.toRadians(cartographicDegrees[1]);
|
|
315
|
+
scratchCartographic.height = cartographicDegrees[2];
|
|
316
|
+
Ellipsoid.default.cartographicToCartesian(
|
|
317
|
+
scratchCartographic,
|
|
318
|
+
scratchCartesian,
|
|
319
|
+
);
|
|
320
|
+
return [scratchCartesian.x, scratchCartesian.y, scratchCartesian.z];
|
|
321
|
+
}
|
|
322
|
+
|
|
323
|
+
const result = new Array(length);
|
|
324
|
+
for (let i = 0; i < length; i += 4) {
|
|
325
|
+
result[i] = cartographicDegrees[i];
|
|
326
|
+
|
|
327
|
+
scratchCartographic.longitude = CesiumMath.toRadians(
|
|
328
|
+
cartographicDegrees[i + 1],
|
|
329
|
+
);
|
|
330
|
+
scratchCartographic.latitude = CesiumMath.toRadians(
|
|
331
|
+
cartographicDegrees[i + 2],
|
|
332
|
+
);
|
|
333
|
+
scratchCartographic.height = cartographicDegrees[i + 3];
|
|
334
|
+
Ellipsoid.default.cartographicToCartesian(
|
|
335
|
+
scratchCartographic,
|
|
336
|
+
scratchCartesian,
|
|
337
|
+
);
|
|
338
|
+
|
|
339
|
+
result[i + 1] = scratchCartesian.x;
|
|
340
|
+
result[i + 2] = scratchCartesian.y;
|
|
341
|
+
result[i + 3] = scratchCartesian.z;
|
|
342
|
+
}
|
|
343
|
+
return result;
|
|
344
|
+
}
|
|
345
|
+
|
|
346
|
+
function unwrapCartesianInterval(czmlInterval) {
|
|
347
|
+
const cartesian = czmlInterval.cartesian;
|
|
348
|
+
if (defined(cartesian)) {
|
|
349
|
+
return cartesian;
|
|
350
|
+
}
|
|
351
|
+
|
|
352
|
+
const cartesianVelocity = czmlInterval.cartesianVelocity;
|
|
353
|
+
if (defined(cartesianVelocity)) {
|
|
354
|
+
return cartesianVelocity;
|
|
355
|
+
}
|
|
356
|
+
|
|
357
|
+
const unitCartesian = czmlInterval.unitCartesian;
|
|
358
|
+
if (defined(unitCartesian)) {
|
|
359
|
+
return unitCartesian;
|
|
360
|
+
}
|
|
361
|
+
|
|
362
|
+
const unitSpherical = czmlInterval.unitSpherical;
|
|
363
|
+
if (defined(unitSpherical)) {
|
|
364
|
+
return convertUnitSphericalToCartesian(unitSpherical);
|
|
365
|
+
}
|
|
366
|
+
|
|
367
|
+
const spherical = czmlInterval.spherical;
|
|
368
|
+
if (defined(spherical)) {
|
|
369
|
+
return convertSphericalToCartesian(spherical);
|
|
370
|
+
}
|
|
371
|
+
|
|
372
|
+
const cartographicRadians = czmlInterval.cartographicRadians;
|
|
373
|
+
if (defined(cartographicRadians)) {
|
|
374
|
+
return convertCartographicRadiansToCartesian(cartographicRadians);
|
|
375
|
+
}
|
|
376
|
+
|
|
377
|
+
const cartographicDegrees = czmlInterval.cartographicDegrees;
|
|
378
|
+
if (defined(cartographicDegrees)) {
|
|
379
|
+
return convertCartographicDegreesToCartesian(cartographicDegrees);
|
|
380
|
+
}
|
|
381
|
+
|
|
382
|
+
throw new RuntimeError(
|
|
383
|
+
`${JSON.stringify(czmlInterval)} is not a valid CZML interval.`,
|
|
384
|
+
);
|
|
385
|
+
}
|
|
386
|
+
|
|
387
|
+
function normalizePackedCartesianArray(array, startingIndex) {
|
|
388
|
+
Cartesian3.unpack(array, startingIndex, scratchCartesian);
|
|
389
|
+
Cartesian3.normalize(scratchCartesian, scratchCartesian);
|
|
390
|
+
Cartesian3.pack(scratchCartesian, array, startingIndex);
|
|
391
|
+
}
|
|
392
|
+
|
|
393
|
+
function unwrapUnitCartesianInterval(czmlInterval) {
|
|
394
|
+
const cartesian = unwrapCartesianInterval(czmlInterval);
|
|
395
|
+
if (cartesian.length === 3) {
|
|
396
|
+
normalizePackedCartesianArray(cartesian, 0);
|
|
397
|
+
return cartesian;
|
|
398
|
+
}
|
|
399
|
+
|
|
400
|
+
for (let i = 1; i < cartesian.length; i += 4) {
|
|
401
|
+
normalizePackedCartesianArray(cartesian, i);
|
|
402
|
+
}
|
|
403
|
+
|
|
404
|
+
return cartesian;
|
|
405
|
+
}
|
|
406
|
+
|
|
407
|
+
function normalizePackedQuaternionArray(array, startingIndex) {
|
|
408
|
+
Quaternion.unpack(array, startingIndex, scratchQuaternion);
|
|
409
|
+
Quaternion.normalize(scratchQuaternion, scratchQuaternion);
|
|
410
|
+
Quaternion.pack(scratchQuaternion, array, startingIndex);
|
|
411
|
+
}
|
|
412
|
+
|
|
413
|
+
function unwrapQuaternionInterval(czmlInterval) {
|
|
414
|
+
const unitQuaternion = czmlInterval.unitQuaternion;
|
|
415
|
+
if (defined(unitQuaternion)) {
|
|
416
|
+
if (unitQuaternion.length === 4) {
|
|
417
|
+
normalizePackedQuaternionArray(unitQuaternion, 0);
|
|
418
|
+
return unitQuaternion;
|
|
419
|
+
}
|
|
420
|
+
|
|
421
|
+
for (let i = 1; i < unitQuaternion.length; i += 5) {
|
|
422
|
+
normalizePackedQuaternionArray(unitQuaternion, i);
|
|
423
|
+
}
|
|
424
|
+
}
|
|
425
|
+
return unitQuaternion;
|
|
426
|
+
}
|
|
427
|
+
|
|
428
|
+
function getPropertyType(czmlInterval) {
|
|
429
|
+
// The associations in this function need to be kept in sync with the
|
|
430
|
+
// associations in unwrapInterval.
|
|
431
|
+
|
|
432
|
+
// Intentionally omitted due to conficts in CZML property names:
|
|
433
|
+
// * Image (conflicts with Uri)
|
|
434
|
+
// * Rotation (conflicts with Number)
|
|
435
|
+
//
|
|
436
|
+
// cartesianVelocity is also omitted due to incomplete support for
|
|
437
|
+
// derivative information in CZML properties.
|
|
438
|
+
// (Currently cartesianVelocity is hacked directly into the position processing code)
|
|
439
|
+
if (typeof czmlInterval === "boolean") {
|
|
440
|
+
return Boolean;
|
|
441
|
+
} else if (typeof czmlInterval === "number") {
|
|
442
|
+
return Number;
|
|
443
|
+
} else if (typeof czmlInterval === "string") {
|
|
444
|
+
return String;
|
|
445
|
+
} else if (czmlInterval.hasOwnProperty("array")) {
|
|
446
|
+
return Array;
|
|
447
|
+
} else if (czmlInterval.hasOwnProperty("boolean")) {
|
|
448
|
+
return Boolean;
|
|
449
|
+
} else if (czmlInterval.hasOwnProperty("boundingRectangle")) {
|
|
450
|
+
return BoundingRectangle;
|
|
451
|
+
} else if (czmlInterval.hasOwnProperty("cartesian2")) {
|
|
452
|
+
return Cartesian2;
|
|
453
|
+
} else if (
|
|
454
|
+
czmlInterval.hasOwnProperty("cartesian") ||
|
|
455
|
+
czmlInterval.hasOwnProperty("spherical") ||
|
|
456
|
+
czmlInterval.hasOwnProperty("cartographicRadians") ||
|
|
457
|
+
czmlInterval.hasOwnProperty("cartographicDegrees")
|
|
458
|
+
) {
|
|
459
|
+
return Cartesian3;
|
|
460
|
+
} else if (
|
|
461
|
+
czmlInterval.hasOwnProperty("unitCartesian") ||
|
|
462
|
+
czmlInterval.hasOwnProperty("unitSpherical")
|
|
463
|
+
) {
|
|
464
|
+
return UnitCartesian3;
|
|
465
|
+
} else if (
|
|
466
|
+
czmlInterval.hasOwnProperty("rgba") ||
|
|
467
|
+
czmlInterval.hasOwnProperty("rgbaf")
|
|
468
|
+
) {
|
|
469
|
+
return Color;
|
|
470
|
+
} else if (czmlInterval.hasOwnProperty("arcType")) {
|
|
471
|
+
return ArcType;
|
|
472
|
+
} else if (czmlInterval.hasOwnProperty("classificationType")) {
|
|
473
|
+
return ClassificationType;
|
|
474
|
+
} else if (czmlInterval.hasOwnProperty("colorBlendMode")) {
|
|
475
|
+
return ColorBlendMode;
|
|
476
|
+
} else if (czmlInterval.hasOwnProperty("cornerType")) {
|
|
477
|
+
return CornerType;
|
|
478
|
+
} else if (czmlInterval.hasOwnProperty("heightReference")) {
|
|
479
|
+
return HeightReference;
|
|
480
|
+
} else if (czmlInterval.hasOwnProperty("horizontalOrigin")) {
|
|
481
|
+
return HorizontalOrigin;
|
|
482
|
+
} else if (czmlInterval.hasOwnProperty("date")) {
|
|
483
|
+
return JulianDate;
|
|
484
|
+
} else if (czmlInterval.hasOwnProperty("labelStyle")) {
|
|
485
|
+
return LabelStyle;
|
|
486
|
+
} else if (czmlInterval.hasOwnProperty("number")) {
|
|
487
|
+
return Number;
|
|
488
|
+
} else if (czmlInterval.hasOwnProperty("nearFarScalar")) {
|
|
489
|
+
return NearFarScalar;
|
|
490
|
+
} else if (czmlInterval.hasOwnProperty("distanceDisplayCondition")) {
|
|
491
|
+
return DistanceDisplayCondition;
|
|
492
|
+
} else if (
|
|
493
|
+
czmlInterval.hasOwnProperty("object") ||
|
|
494
|
+
czmlInterval.hasOwnProperty("value")
|
|
495
|
+
) {
|
|
496
|
+
return Object;
|
|
497
|
+
} else if (czmlInterval.hasOwnProperty("unitQuaternion")) {
|
|
498
|
+
return Quaternion;
|
|
499
|
+
} else if (czmlInterval.hasOwnProperty("shadowMode")) {
|
|
500
|
+
return ShadowMode;
|
|
501
|
+
} else if (czmlInterval.hasOwnProperty("string")) {
|
|
502
|
+
return String;
|
|
503
|
+
} else if (czmlInterval.hasOwnProperty("stripeOrientation")) {
|
|
504
|
+
return StripeOrientation;
|
|
505
|
+
} else if (
|
|
506
|
+
czmlInterval.hasOwnProperty("wsen") ||
|
|
507
|
+
czmlInterval.hasOwnProperty("wsenDegrees")
|
|
508
|
+
) {
|
|
509
|
+
return Rectangle;
|
|
510
|
+
} else if (czmlInterval.hasOwnProperty("uri")) {
|
|
511
|
+
return Uri;
|
|
512
|
+
} else if (czmlInterval.hasOwnProperty("verticalOrigin")) {
|
|
513
|
+
return VerticalOrigin;
|
|
514
|
+
}
|
|
515
|
+
// fallback case
|
|
516
|
+
return Object;
|
|
517
|
+
}
|
|
518
|
+
|
|
519
|
+
function unwrapInterval(type, czmlInterval, sourceUri) {
|
|
520
|
+
// The associations in this function need to be kept in sync with the
|
|
521
|
+
// associations in getPropertyType
|
|
522
|
+
switch (type) {
|
|
523
|
+
case ArcType:
|
|
524
|
+
return ArcType[czmlInterval.arcType ?? czmlInterval];
|
|
525
|
+
case Array:
|
|
526
|
+
return czmlInterval.array;
|
|
527
|
+
case Boolean:
|
|
528
|
+
return czmlInterval["boolean"] ?? czmlInterval;
|
|
529
|
+
case BoundingRectangle:
|
|
530
|
+
return czmlInterval.boundingRectangle;
|
|
531
|
+
case Cartesian2:
|
|
532
|
+
return czmlInterval.cartesian2;
|
|
533
|
+
case Cartesian3:
|
|
534
|
+
return unwrapCartesianInterval(czmlInterval);
|
|
535
|
+
case UnitCartesian3:
|
|
536
|
+
return unwrapUnitCartesianInterval(czmlInterval);
|
|
537
|
+
case Color:
|
|
538
|
+
return unwrapColorInterval(czmlInterval);
|
|
539
|
+
case ClassificationType:
|
|
540
|
+
return ClassificationType[
|
|
541
|
+
czmlInterval.classificationType ?? czmlInterval
|
|
542
|
+
];
|
|
543
|
+
case ColorBlendMode:
|
|
544
|
+
return ColorBlendMode[czmlInterval.colorBlendMode ?? czmlInterval];
|
|
545
|
+
case CornerType:
|
|
546
|
+
return CornerType[czmlInterval.cornerType ?? czmlInterval];
|
|
547
|
+
case HeightReference:
|
|
548
|
+
return HeightReference[czmlInterval.heightReference ?? czmlInterval];
|
|
549
|
+
case HorizontalOrigin:
|
|
550
|
+
return HorizontalOrigin[czmlInterval.horizontalOrigin ?? czmlInterval];
|
|
551
|
+
case Image:
|
|
552
|
+
return unwrapUriInterval(czmlInterval, sourceUri);
|
|
553
|
+
case JulianDate:
|
|
554
|
+
return JulianDate.fromIso8601(czmlInterval.date ?? czmlInterval);
|
|
555
|
+
case LabelStyle:
|
|
556
|
+
return LabelStyle[czmlInterval.labelStyle ?? czmlInterval];
|
|
557
|
+
case Number:
|
|
558
|
+
return czmlInterval.number ?? czmlInterval;
|
|
559
|
+
case NearFarScalar:
|
|
560
|
+
return czmlInterval.nearFarScalar;
|
|
561
|
+
case DistanceDisplayCondition:
|
|
562
|
+
return czmlInterval.distanceDisplayCondition;
|
|
563
|
+
case Object:
|
|
564
|
+
return czmlInterval.object ?? czmlInterval.value ?? czmlInterval;
|
|
565
|
+
case Quaternion:
|
|
566
|
+
return unwrapQuaternionInterval(czmlInterval);
|
|
567
|
+
case Rotation:
|
|
568
|
+
return czmlInterval.number ?? czmlInterval;
|
|
569
|
+
case SensorVolumePortionToDisplay:
|
|
570
|
+
return SensorVolumePortionToDisplay[
|
|
571
|
+
czmlInterval.portionToDisplay ?? czmlInterval
|
|
572
|
+
];
|
|
573
|
+
case ShadowMode:
|
|
574
|
+
return ShadowMode[
|
|
575
|
+
czmlInterval.shadowMode ?? czmlInterval.shadows ?? czmlInterval
|
|
576
|
+
];
|
|
577
|
+
case String:
|
|
578
|
+
return czmlInterval.string ?? czmlInterval;
|
|
579
|
+
case StripeOrientation:
|
|
580
|
+
return StripeOrientation[czmlInterval.stripeOrientation ?? czmlInterval];
|
|
581
|
+
case Rectangle:
|
|
582
|
+
return unwrapRectangleInterval(czmlInterval);
|
|
583
|
+
case Uri:
|
|
584
|
+
return unwrapUriInterval(czmlInterval, sourceUri);
|
|
585
|
+
case VerticalOrigin:
|
|
586
|
+
return VerticalOrigin[czmlInterval.verticalOrigin ?? czmlInterval];
|
|
587
|
+
default:
|
|
588
|
+
throw new RuntimeError(`Unknown CzmlDataSource interval type: ${type}`);
|
|
589
|
+
}
|
|
590
|
+
}
|
|
591
|
+
|
|
592
|
+
const interpolators = {
|
|
593
|
+
HERMITE: HermitePolynomialApproximation,
|
|
594
|
+
LAGRANGE: LagrangePolynomialApproximation,
|
|
595
|
+
LINEAR: LinearApproximation,
|
|
596
|
+
};
|
|
597
|
+
|
|
598
|
+
function updateInterpolationSettings(packetData, property) {
|
|
599
|
+
const interpolationAlgorithm = packetData.interpolationAlgorithm;
|
|
600
|
+
const interpolationDegree = packetData.interpolationDegree;
|
|
601
|
+
if (defined(interpolationAlgorithm) || defined(interpolationDegree)) {
|
|
602
|
+
property.setInterpolationOptions({
|
|
603
|
+
interpolationAlgorithm: interpolators[interpolationAlgorithm],
|
|
604
|
+
interpolationDegree: interpolationDegree,
|
|
605
|
+
});
|
|
606
|
+
}
|
|
607
|
+
|
|
608
|
+
const forwardExtrapolationType = packetData.forwardExtrapolationType;
|
|
609
|
+
if (defined(forwardExtrapolationType)) {
|
|
610
|
+
property.forwardExtrapolationType =
|
|
611
|
+
ExtrapolationType[forwardExtrapolationType];
|
|
612
|
+
}
|
|
613
|
+
|
|
614
|
+
const forwardExtrapolationDuration = packetData.forwardExtrapolationDuration;
|
|
615
|
+
if (defined(forwardExtrapolationDuration)) {
|
|
616
|
+
property.forwardExtrapolationDuration = forwardExtrapolationDuration;
|
|
617
|
+
}
|
|
618
|
+
|
|
619
|
+
const backwardExtrapolationType = packetData.backwardExtrapolationType;
|
|
620
|
+
if (defined(backwardExtrapolationType)) {
|
|
621
|
+
property.backwardExtrapolationType =
|
|
622
|
+
ExtrapolationType[backwardExtrapolationType];
|
|
623
|
+
}
|
|
624
|
+
|
|
625
|
+
const backwardExtrapolationDuration =
|
|
626
|
+
packetData.backwardExtrapolationDuration;
|
|
627
|
+
if (defined(backwardExtrapolationDuration)) {
|
|
628
|
+
property.backwardExtrapolationDuration = backwardExtrapolationDuration;
|
|
629
|
+
}
|
|
630
|
+
}
|
|
631
|
+
|
|
632
|
+
const iso8601Scratch = {
|
|
633
|
+
iso8601: undefined,
|
|
634
|
+
};
|
|
635
|
+
|
|
636
|
+
function intervalFromString(intervalString) {
|
|
637
|
+
if (!defined(intervalString)) {
|
|
638
|
+
return undefined;
|
|
639
|
+
}
|
|
640
|
+
iso8601Scratch.iso8601 = intervalString;
|
|
641
|
+
return TimeInterval.fromIso8601(iso8601Scratch);
|
|
642
|
+
}
|
|
643
|
+
|
|
644
|
+
function wrapPropertyInInfiniteInterval(property) {
|
|
645
|
+
const interval = Iso8601.MAXIMUM_INTERVAL.clone();
|
|
646
|
+
interval.data = property;
|
|
647
|
+
return interval;
|
|
648
|
+
}
|
|
649
|
+
|
|
650
|
+
function convertPropertyToComposite(property) {
|
|
651
|
+
// Create the composite and add the old property, wrapped in an infinite interval.
|
|
652
|
+
const composite = new CompositeProperty();
|
|
653
|
+
composite.intervals.addInterval(wrapPropertyInInfiniteInterval(property));
|
|
654
|
+
return composite;
|
|
655
|
+
}
|
|
656
|
+
|
|
657
|
+
function convertPositionPropertyToComposite(property) {
|
|
658
|
+
// Create the composite and add the old property, wrapped in an infinite interval.
|
|
659
|
+
const composite = new CompositePositionProperty(property.referenceFrame);
|
|
660
|
+
composite.intervals.addInterval(wrapPropertyInInfiniteInterval(property));
|
|
661
|
+
return composite;
|
|
662
|
+
}
|
|
663
|
+
|
|
664
|
+
function processProperty(
|
|
665
|
+
type,
|
|
666
|
+
object,
|
|
667
|
+
propertyName,
|
|
668
|
+
packetData,
|
|
669
|
+
constrainedInterval,
|
|
670
|
+
sourceUri,
|
|
671
|
+
entityCollection,
|
|
672
|
+
) {
|
|
673
|
+
let combinedInterval = intervalFromString(packetData.interval);
|
|
674
|
+
if (defined(constrainedInterval)) {
|
|
675
|
+
if (defined(combinedInterval)) {
|
|
676
|
+
combinedInterval = TimeInterval.intersect(
|
|
677
|
+
combinedInterval,
|
|
678
|
+
constrainedInterval,
|
|
679
|
+
scratchTimeInterval,
|
|
680
|
+
);
|
|
681
|
+
} else {
|
|
682
|
+
combinedInterval = constrainedInterval;
|
|
683
|
+
}
|
|
684
|
+
}
|
|
685
|
+
|
|
686
|
+
let packedLength;
|
|
687
|
+
let unwrappedInterval;
|
|
688
|
+
let unwrappedIntervalLength;
|
|
689
|
+
|
|
690
|
+
// CZML properties can be defined in many ways. Most ways represent a structure for
|
|
691
|
+
// encoding a single value (number, string, cartesian, etc.) Regardless of the value type,
|
|
692
|
+
// if it encodes a single value it will get loaded into a ConstantProperty eventually.
|
|
693
|
+
// Alternatively, there are ways of defining a property that require specialized
|
|
694
|
+
// client-side representation. Currently, these are ReferenceProperty,
|
|
695
|
+
// and client-side velocity computation properties such as VelocityVectorProperty.
|
|
696
|
+
const isValue =
|
|
697
|
+
!defined(packetData.reference) && !defined(packetData.velocityReference);
|
|
698
|
+
const hasInterval =
|
|
699
|
+
defined(combinedInterval) &&
|
|
700
|
+
!combinedInterval.equals(Iso8601.MAXIMUM_INTERVAL);
|
|
701
|
+
|
|
702
|
+
if (packetData.delete === true) {
|
|
703
|
+
// If deleting this property for all time, we can simply set to undefined and return.
|
|
704
|
+
if (!hasInterval) {
|
|
705
|
+
object[propertyName] = undefined;
|
|
706
|
+
return;
|
|
707
|
+
}
|
|
708
|
+
|
|
709
|
+
// Deleting depends on the type of property we have.
|
|
710
|
+
return removePropertyData(object[propertyName], combinedInterval);
|
|
711
|
+
}
|
|
712
|
+
|
|
713
|
+
let isSampled = false;
|
|
714
|
+
|
|
715
|
+
if (isValue) {
|
|
716
|
+
unwrappedInterval = unwrapInterval(type, packetData, sourceUri);
|
|
717
|
+
if (!defined(unwrappedInterval)) {
|
|
718
|
+
// not a known value type, bail
|
|
719
|
+
return;
|
|
720
|
+
}
|
|
721
|
+
packedLength = type.packedLength ?? 1;
|
|
722
|
+
unwrappedIntervalLength = unwrappedInterval.length ?? 1;
|
|
723
|
+
isSampled =
|
|
724
|
+
!defined(packetData.array) &&
|
|
725
|
+
typeof unwrappedInterval !== "string" &&
|
|
726
|
+
unwrappedIntervalLength > packedLength &&
|
|
727
|
+
type !== Object;
|
|
728
|
+
}
|
|
729
|
+
|
|
730
|
+
// Rotation is a special case because it represents a native type (Number)
|
|
731
|
+
// and therefore does not need to be unpacked when loaded as a constant value.
|
|
732
|
+
const needsUnpacking = typeof type.unpack === "function" && type !== Rotation;
|
|
733
|
+
|
|
734
|
+
// Any time a constant value is assigned, it completely blows away anything else.
|
|
735
|
+
if (!isSampled && !hasInterval) {
|
|
736
|
+
if (isValue) {
|
|
737
|
+
object[propertyName] = new ConstantProperty(
|
|
738
|
+
needsUnpacking ? type.unpack(unwrappedInterval, 0) : unwrappedInterval,
|
|
739
|
+
);
|
|
740
|
+
} else {
|
|
741
|
+
object[propertyName] = createSpecializedProperty(
|
|
742
|
+
type,
|
|
743
|
+
entityCollection,
|
|
744
|
+
packetData,
|
|
745
|
+
);
|
|
746
|
+
}
|
|
747
|
+
return;
|
|
748
|
+
}
|
|
749
|
+
|
|
750
|
+
let property = object[propertyName];
|
|
751
|
+
|
|
752
|
+
let epoch;
|
|
753
|
+
const packetEpoch = packetData.epoch;
|
|
754
|
+
if (defined(packetEpoch)) {
|
|
755
|
+
epoch = JulianDate.fromIso8601(packetEpoch);
|
|
756
|
+
}
|
|
757
|
+
|
|
758
|
+
// Without an interval, any sampled value is infinite, meaning it completely
|
|
759
|
+
// replaces any non-sampled property that may exist.
|
|
760
|
+
if (isSampled && !hasInterval) {
|
|
761
|
+
if (!(property instanceof SampledProperty)) {
|
|
762
|
+
object[propertyName] = property = new SampledProperty(type);
|
|
763
|
+
}
|
|
764
|
+
property.addSamplesPackedArray(unwrappedInterval, epoch);
|
|
765
|
+
updateInterpolationSettings(packetData, property);
|
|
766
|
+
return;
|
|
767
|
+
}
|
|
768
|
+
|
|
769
|
+
let interval;
|
|
770
|
+
|
|
771
|
+
// A constant value with an interval is normally part of a TimeIntervalCollection,
|
|
772
|
+
// However, if the current property is not a time-interval collection, we need
|
|
773
|
+
// to turn it into a Composite, preserving the old data with the new interval.
|
|
774
|
+
if (!isSampled && hasInterval) {
|
|
775
|
+
// Create a new interval for the constant value.
|
|
776
|
+
combinedInterval = combinedInterval.clone();
|
|
777
|
+
if (isValue) {
|
|
778
|
+
combinedInterval.data = needsUnpacking
|
|
779
|
+
? type.unpack(unwrappedInterval, 0)
|
|
780
|
+
: unwrappedInterval;
|
|
781
|
+
} else {
|
|
782
|
+
combinedInterval.data = createSpecializedProperty(
|
|
783
|
+
type,
|
|
784
|
+
entityCollection,
|
|
785
|
+
packetData,
|
|
786
|
+
);
|
|
787
|
+
}
|
|
788
|
+
|
|
789
|
+
// If no property exists, simply use a new interval collection
|
|
790
|
+
if (!defined(property)) {
|
|
791
|
+
object[propertyName] = property = isValue
|
|
792
|
+
? new TimeIntervalCollectionProperty()
|
|
793
|
+
: new CompositeProperty();
|
|
794
|
+
}
|
|
795
|
+
|
|
796
|
+
if (isValue && property instanceof TimeIntervalCollectionProperty) {
|
|
797
|
+
// If we created a collection, or it already was one, use it.
|
|
798
|
+
property.intervals.addInterval(combinedInterval);
|
|
799
|
+
} else if (property instanceof CompositeProperty) {
|
|
800
|
+
// If the collection was already a CompositeProperty, use it.
|
|
801
|
+
if (isValue) {
|
|
802
|
+
combinedInterval.data = new ConstantProperty(combinedInterval.data);
|
|
803
|
+
}
|
|
804
|
+
property.intervals.addInterval(combinedInterval);
|
|
805
|
+
} else {
|
|
806
|
+
// Otherwise, create a CompositeProperty but preserve the existing data.
|
|
807
|
+
object[propertyName] = property = convertPropertyToComposite(property);
|
|
808
|
+
|
|
809
|
+
// Change the new data to a ConstantProperty and add it.
|
|
810
|
+
if (isValue) {
|
|
811
|
+
combinedInterval.data = new ConstantProperty(combinedInterval.data);
|
|
812
|
+
}
|
|
813
|
+
property.intervals.addInterval(combinedInterval);
|
|
814
|
+
}
|
|
815
|
+
|
|
816
|
+
return;
|
|
817
|
+
}
|
|
818
|
+
|
|
819
|
+
// isSampled && hasInterval
|
|
820
|
+
if (!defined(property)) {
|
|
821
|
+
object[propertyName] = property = new CompositeProperty();
|
|
822
|
+
}
|
|
823
|
+
|
|
824
|
+
// Create a CompositeProperty but preserve the existing data.
|
|
825
|
+
if (!(property instanceof CompositeProperty)) {
|
|
826
|
+
object[propertyName] = property = convertPropertyToComposite(property);
|
|
827
|
+
}
|
|
828
|
+
|
|
829
|
+
// Check if the interval already exists in the composite.
|
|
830
|
+
const intervals = property.intervals;
|
|
831
|
+
interval = intervals.findInterval(combinedInterval);
|
|
832
|
+
if (!defined(interval) || !(interval.data instanceof SampledProperty)) {
|
|
833
|
+
// If not, create a SampledProperty for it.
|
|
834
|
+
interval = combinedInterval.clone();
|
|
835
|
+
interval.data = new SampledProperty(type);
|
|
836
|
+
intervals.addInterval(interval);
|
|
837
|
+
}
|
|
838
|
+
interval.data.addSamplesPackedArray(unwrappedInterval, epoch);
|
|
839
|
+
updateInterpolationSettings(packetData, interval.data);
|
|
840
|
+
}
|
|
841
|
+
|
|
842
|
+
function removePropertyData(property, interval) {
|
|
843
|
+
if (property instanceof SampledProperty) {
|
|
844
|
+
property.removeSamples(interval);
|
|
845
|
+
return;
|
|
846
|
+
} else if (property instanceof TimeIntervalCollectionProperty) {
|
|
847
|
+
property.intervals.removeInterval(interval);
|
|
848
|
+
return;
|
|
849
|
+
} else if (property instanceof CompositeProperty) {
|
|
850
|
+
const intervals = property.intervals;
|
|
851
|
+
for (let i = 0; i < intervals.length; ++i) {
|
|
852
|
+
const intersection = TimeInterval.intersect(
|
|
853
|
+
intervals.get(i),
|
|
854
|
+
interval,
|
|
855
|
+
scratchTimeInterval,
|
|
856
|
+
);
|
|
857
|
+
if (!intersection.isEmpty) {
|
|
858
|
+
// remove data from the contained properties
|
|
859
|
+
removePropertyData(intersection.data, interval);
|
|
860
|
+
}
|
|
861
|
+
}
|
|
862
|
+
// remove the intervals from the composite
|
|
863
|
+
intervals.removeInterval(interval);
|
|
864
|
+
return;
|
|
865
|
+
}
|
|
866
|
+
}
|
|
867
|
+
|
|
868
|
+
function processPacketData(
|
|
869
|
+
type,
|
|
870
|
+
object,
|
|
871
|
+
propertyName,
|
|
872
|
+
packetData,
|
|
873
|
+
interval,
|
|
874
|
+
sourceUri,
|
|
875
|
+
entityCollection,
|
|
876
|
+
) {
|
|
877
|
+
if (!defined(packetData)) {
|
|
878
|
+
return;
|
|
879
|
+
}
|
|
880
|
+
|
|
881
|
+
if (Array.isArray(packetData)) {
|
|
882
|
+
for (let i = 0, len = packetData.length; i < len; ++i) {
|
|
883
|
+
processProperty(
|
|
884
|
+
type,
|
|
885
|
+
object,
|
|
886
|
+
propertyName,
|
|
887
|
+
packetData[i],
|
|
888
|
+
interval,
|
|
889
|
+
sourceUri,
|
|
890
|
+
entityCollection,
|
|
891
|
+
);
|
|
892
|
+
}
|
|
893
|
+
} else {
|
|
894
|
+
processProperty(
|
|
895
|
+
type,
|
|
896
|
+
object,
|
|
897
|
+
propertyName,
|
|
898
|
+
packetData,
|
|
899
|
+
interval,
|
|
900
|
+
sourceUri,
|
|
901
|
+
entityCollection,
|
|
902
|
+
);
|
|
903
|
+
}
|
|
904
|
+
}
|
|
905
|
+
|
|
906
|
+
function processPositionProperty(
|
|
907
|
+
object,
|
|
908
|
+
propertyName,
|
|
909
|
+
packetData,
|
|
910
|
+
constrainedInterval,
|
|
911
|
+
sourceUri,
|
|
912
|
+
entityCollection,
|
|
913
|
+
) {
|
|
914
|
+
let combinedInterval = intervalFromString(packetData.interval);
|
|
915
|
+
if (defined(constrainedInterval)) {
|
|
916
|
+
if (defined(combinedInterval)) {
|
|
917
|
+
combinedInterval = TimeInterval.intersect(
|
|
918
|
+
combinedInterval,
|
|
919
|
+
constrainedInterval,
|
|
920
|
+
scratchTimeInterval,
|
|
921
|
+
);
|
|
922
|
+
} else {
|
|
923
|
+
combinedInterval = constrainedInterval;
|
|
924
|
+
}
|
|
925
|
+
}
|
|
926
|
+
|
|
927
|
+
const numberOfDerivatives = defined(packetData.cartesianVelocity) ? 1 : 0;
|
|
928
|
+
const packedLength = Cartesian3.packedLength * (numberOfDerivatives + 1);
|
|
929
|
+
let unwrappedInterval;
|
|
930
|
+
let unwrappedIntervalLength;
|
|
931
|
+
const isValue = !defined(packetData.reference);
|
|
932
|
+
const hasInterval =
|
|
933
|
+
defined(combinedInterval) &&
|
|
934
|
+
!combinedInterval.equals(Iso8601.MAXIMUM_INTERVAL);
|
|
935
|
+
|
|
936
|
+
if (packetData.delete === true) {
|
|
937
|
+
// If deleting this property for all time, we can simply set to undefined and return.
|
|
938
|
+
if (!hasInterval) {
|
|
939
|
+
object[propertyName] = undefined;
|
|
940
|
+
return;
|
|
941
|
+
}
|
|
942
|
+
|
|
943
|
+
// Deleting depends on the type of property we have.
|
|
944
|
+
return removePositionPropertyData(object[propertyName], combinedInterval);
|
|
945
|
+
}
|
|
946
|
+
|
|
947
|
+
let referenceFrame;
|
|
948
|
+
let isSampled = false;
|
|
949
|
+
|
|
950
|
+
if (isValue) {
|
|
951
|
+
if (defined(packetData.referenceFrame)) {
|
|
952
|
+
referenceFrame = ReferenceFrame[packetData.referenceFrame];
|
|
953
|
+
}
|
|
954
|
+
referenceFrame = referenceFrame ?? ReferenceFrame.FIXED;
|
|
955
|
+
unwrappedInterval = unwrapCartesianInterval(packetData);
|
|
956
|
+
unwrappedIntervalLength = unwrappedInterval.length ?? 1;
|
|
957
|
+
isSampled = unwrappedIntervalLength > packedLength;
|
|
958
|
+
}
|
|
959
|
+
|
|
960
|
+
// Any time a constant value is assigned, it completely blows away anything else.
|
|
961
|
+
if (!isSampled && !hasInterval) {
|
|
962
|
+
if (isValue) {
|
|
963
|
+
object[propertyName] = new ConstantPositionProperty(
|
|
964
|
+
Cartesian3.unpack(unwrappedInterval),
|
|
965
|
+
referenceFrame,
|
|
966
|
+
);
|
|
967
|
+
} else {
|
|
968
|
+
object[propertyName] = createReferenceProperty(
|
|
969
|
+
entityCollection,
|
|
970
|
+
packetData.reference,
|
|
971
|
+
);
|
|
972
|
+
}
|
|
973
|
+
return;
|
|
974
|
+
}
|
|
975
|
+
|
|
976
|
+
let property = object[propertyName];
|
|
977
|
+
|
|
978
|
+
let epoch;
|
|
979
|
+
const packetEpoch = packetData.epoch;
|
|
980
|
+
if (defined(packetEpoch)) {
|
|
981
|
+
epoch = JulianDate.fromIso8601(packetEpoch);
|
|
982
|
+
}
|
|
983
|
+
|
|
984
|
+
// Without an interval, any sampled value is infinite, meaning it completely
|
|
985
|
+
// replaces any non-sampled property that may exist.
|
|
986
|
+
if (isSampled && !hasInterval) {
|
|
987
|
+
if (
|
|
988
|
+
!(property instanceof SampledPositionProperty) ||
|
|
989
|
+
(defined(referenceFrame) && property.referenceFrame !== referenceFrame)
|
|
990
|
+
) {
|
|
991
|
+
object[propertyName] = property = new SampledPositionProperty(
|
|
992
|
+
referenceFrame,
|
|
993
|
+
numberOfDerivatives,
|
|
994
|
+
);
|
|
995
|
+
}
|
|
996
|
+
property.addSamplesPackedArray(unwrappedInterval, epoch);
|
|
997
|
+
updateInterpolationSettings(packetData, property);
|
|
998
|
+
return;
|
|
999
|
+
}
|
|
1000
|
+
|
|
1001
|
+
let interval;
|
|
1002
|
+
|
|
1003
|
+
// A constant value with an interval is normally part of a TimeIntervalCollection,
|
|
1004
|
+
// However, if the current property is not a time-interval collection, we need
|
|
1005
|
+
// to turn it into a Composite, preserving the old data with the new interval.
|
|
1006
|
+
if (!isSampled && hasInterval) {
|
|
1007
|
+
// Create a new interval for the constant value.
|
|
1008
|
+
combinedInterval = combinedInterval.clone();
|
|
1009
|
+
if (isValue) {
|
|
1010
|
+
combinedInterval.data = Cartesian3.unpack(unwrappedInterval);
|
|
1011
|
+
} else {
|
|
1012
|
+
combinedInterval.data = createReferenceProperty(
|
|
1013
|
+
entityCollection,
|
|
1014
|
+
packetData.reference,
|
|
1015
|
+
);
|
|
1016
|
+
}
|
|
1017
|
+
|
|
1018
|
+
// If no property exists, simply use a new interval collection
|
|
1019
|
+
if (!defined(property)) {
|
|
1020
|
+
if (isValue) {
|
|
1021
|
+
property = new TimeIntervalCollectionPositionProperty(referenceFrame);
|
|
1022
|
+
} else {
|
|
1023
|
+
property = new CompositePositionProperty(referenceFrame);
|
|
1024
|
+
}
|
|
1025
|
+
object[propertyName] = property;
|
|
1026
|
+
}
|
|
1027
|
+
|
|
1028
|
+
if (
|
|
1029
|
+
isValue &&
|
|
1030
|
+
property instanceof TimeIntervalCollectionPositionProperty &&
|
|
1031
|
+
defined(referenceFrame) &&
|
|
1032
|
+
property.referenceFrame === referenceFrame
|
|
1033
|
+
) {
|
|
1034
|
+
// If we create a collection, or it already existed, use it.
|
|
1035
|
+
property.intervals.addInterval(combinedInterval);
|
|
1036
|
+
} else if (property instanceof CompositePositionProperty) {
|
|
1037
|
+
// If the collection was already a CompositePositionProperty, use it.
|
|
1038
|
+
if (isValue) {
|
|
1039
|
+
combinedInterval.data = new ConstantPositionProperty(
|
|
1040
|
+
combinedInterval.data,
|
|
1041
|
+
referenceFrame,
|
|
1042
|
+
);
|
|
1043
|
+
}
|
|
1044
|
+
property.intervals.addInterval(combinedInterval);
|
|
1045
|
+
} else {
|
|
1046
|
+
// Otherwise, create a CompositePositionProperty but preserve the existing data.
|
|
1047
|
+
object[propertyName] = property =
|
|
1048
|
+
convertPositionPropertyToComposite(property);
|
|
1049
|
+
|
|
1050
|
+
// Change the new data to a ConstantPositionProperty and add it.
|
|
1051
|
+
if (isValue) {
|
|
1052
|
+
combinedInterval.data = new ConstantPositionProperty(
|
|
1053
|
+
combinedInterval.data,
|
|
1054
|
+
referenceFrame,
|
|
1055
|
+
);
|
|
1056
|
+
}
|
|
1057
|
+
property.intervals.addInterval(combinedInterval);
|
|
1058
|
+
}
|
|
1059
|
+
|
|
1060
|
+
return;
|
|
1061
|
+
}
|
|
1062
|
+
|
|
1063
|
+
// isSampled && hasInterval
|
|
1064
|
+
if (!defined(property)) {
|
|
1065
|
+
object[propertyName] = property = new CompositePositionProperty(
|
|
1066
|
+
referenceFrame,
|
|
1067
|
+
);
|
|
1068
|
+
} else if (!(property instanceof CompositePositionProperty)) {
|
|
1069
|
+
// Create a CompositeProperty but preserve the existing data.
|
|
1070
|
+
object[propertyName] = property =
|
|
1071
|
+
convertPositionPropertyToComposite(property);
|
|
1072
|
+
}
|
|
1073
|
+
|
|
1074
|
+
// Check if the interval already exists in the composite.
|
|
1075
|
+
const intervals = property.intervals;
|
|
1076
|
+
interval = intervals.findInterval(combinedInterval);
|
|
1077
|
+
if (
|
|
1078
|
+
!defined(interval) ||
|
|
1079
|
+
!(interval.data instanceof SampledPositionProperty) ||
|
|
1080
|
+
(defined(referenceFrame) && interval.data.referenceFrame !== referenceFrame)
|
|
1081
|
+
) {
|
|
1082
|
+
// If not, create a SampledPositionProperty for it.
|
|
1083
|
+
interval = combinedInterval.clone();
|
|
1084
|
+
interval.data = new SampledPositionProperty(
|
|
1085
|
+
referenceFrame,
|
|
1086
|
+
numberOfDerivatives,
|
|
1087
|
+
);
|
|
1088
|
+
intervals.addInterval(interval);
|
|
1089
|
+
}
|
|
1090
|
+
interval.data.addSamplesPackedArray(unwrappedInterval, epoch);
|
|
1091
|
+
updateInterpolationSettings(packetData, interval.data);
|
|
1092
|
+
}
|
|
1093
|
+
|
|
1094
|
+
function removePositionPropertyData(property, interval) {
|
|
1095
|
+
if (property instanceof SampledPositionProperty) {
|
|
1096
|
+
property.removeSamples(interval);
|
|
1097
|
+
return;
|
|
1098
|
+
} else if (property instanceof TimeIntervalCollectionPositionProperty) {
|
|
1099
|
+
property.intervals.removeInterval(interval);
|
|
1100
|
+
return;
|
|
1101
|
+
} else if (property instanceof CompositePositionProperty) {
|
|
1102
|
+
const intervals = property.intervals;
|
|
1103
|
+
for (let i = 0; i < intervals.length; ++i) {
|
|
1104
|
+
const intersection = TimeInterval.intersect(
|
|
1105
|
+
intervals.get(i),
|
|
1106
|
+
interval,
|
|
1107
|
+
scratchTimeInterval,
|
|
1108
|
+
);
|
|
1109
|
+
if (!intersection.isEmpty) {
|
|
1110
|
+
// remove data from the contained properties
|
|
1111
|
+
removePositionPropertyData(intersection.data, interval);
|
|
1112
|
+
}
|
|
1113
|
+
}
|
|
1114
|
+
// remove the intervals from the composite
|
|
1115
|
+
intervals.removeInterval(interval);
|
|
1116
|
+
return;
|
|
1117
|
+
}
|
|
1118
|
+
}
|
|
1119
|
+
|
|
1120
|
+
function processPositionPacketData(
|
|
1121
|
+
object,
|
|
1122
|
+
propertyName,
|
|
1123
|
+
packetData,
|
|
1124
|
+
interval,
|
|
1125
|
+
sourceUri,
|
|
1126
|
+
entityCollection,
|
|
1127
|
+
) {
|
|
1128
|
+
if (!defined(packetData)) {
|
|
1129
|
+
return;
|
|
1130
|
+
}
|
|
1131
|
+
|
|
1132
|
+
if (Array.isArray(packetData)) {
|
|
1133
|
+
for (let i = 0, len = packetData.length; i < len; ++i) {
|
|
1134
|
+
processPositionProperty(
|
|
1135
|
+
object,
|
|
1136
|
+
propertyName,
|
|
1137
|
+
packetData[i],
|
|
1138
|
+
interval,
|
|
1139
|
+
sourceUri,
|
|
1140
|
+
entityCollection,
|
|
1141
|
+
);
|
|
1142
|
+
}
|
|
1143
|
+
} else {
|
|
1144
|
+
processPositionProperty(
|
|
1145
|
+
object,
|
|
1146
|
+
propertyName,
|
|
1147
|
+
packetData,
|
|
1148
|
+
interval,
|
|
1149
|
+
sourceUri,
|
|
1150
|
+
entityCollection,
|
|
1151
|
+
);
|
|
1152
|
+
}
|
|
1153
|
+
}
|
|
1154
|
+
|
|
1155
|
+
function processShapePacketData(
|
|
1156
|
+
object,
|
|
1157
|
+
propertyName,
|
|
1158
|
+
packetData,
|
|
1159
|
+
entityCollection,
|
|
1160
|
+
) {
|
|
1161
|
+
if (defined(packetData.references)) {
|
|
1162
|
+
processReferencesArrayPacketData(
|
|
1163
|
+
object,
|
|
1164
|
+
propertyName,
|
|
1165
|
+
packetData.references,
|
|
1166
|
+
packetData.interval,
|
|
1167
|
+
entityCollection,
|
|
1168
|
+
PropertyArray,
|
|
1169
|
+
CompositeProperty,
|
|
1170
|
+
);
|
|
1171
|
+
} else {
|
|
1172
|
+
if (defined(packetData.cartesian2)) {
|
|
1173
|
+
packetData.array = Cartesian2.unpackArray(packetData.cartesian2);
|
|
1174
|
+
} else if (defined(packetData.cartesian)) {
|
|
1175
|
+
// for backwards compatibility, also accept `cartesian`
|
|
1176
|
+
packetData.array = Cartesian2.unpackArray(packetData.cartesian);
|
|
1177
|
+
}
|
|
1178
|
+
|
|
1179
|
+
if (defined(packetData.array)) {
|
|
1180
|
+
processPacketData(
|
|
1181
|
+
Array,
|
|
1182
|
+
object,
|
|
1183
|
+
propertyName,
|
|
1184
|
+
packetData,
|
|
1185
|
+
undefined,
|
|
1186
|
+
undefined,
|
|
1187
|
+
entityCollection,
|
|
1188
|
+
);
|
|
1189
|
+
}
|
|
1190
|
+
}
|
|
1191
|
+
}
|
|
1192
|
+
|
|
1193
|
+
function processMaterialProperty(
|
|
1194
|
+
object,
|
|
1195
|
+
propertyName,
|
|
1196
|
+
packetData,
|
|
1197
|
+
constrainedInterval,
|
|
1198
|
+
sourceUri,
|
|
1199
|
+
entityCollection,
|
|
1200
|
+
) {
|
|
1201
|
+
let combinedInterval = intervalFromString(packetData.interval);
|
|
1202
|
+
if (defined(constrainedInterval)) {
|
|
1203
|
+
if (defined(combinedInterval)) {
|
|
1204
|
+
combinedInterval = TimeInterval.intersect(
|
|
1205
|
+
combinedInterval,
|
|
1206
|
+
constrainedInterval,
|
|
1207
|
+
scratchTimeInterval,
|
|
1208
|
+
);
|
|
1209
|
+
} else {
|
|
1210
|
+
combinedInterval = constrainedInterval;
|
|
1211
|
+
}
|
|
1212
|
+
}
|
|
1213
|
+
|
|
1214
|
+
let property = object[propertyName];
|
|
1215
|
+
let existingMaterial;
|
|
1216
|
+
let existingInterval;
|
|
1217
|
+
|
|
1218
|
+
if (defined(combinedInterval)) {
|
|
1219
|
+
if (!(property instanceof CompositeMaterialProperty)) {
|
|
1220
|
+
property = new CompositeMaterialProperty();
|
|
1221
|
+
object[propertyName] = property;
|
|
1222
|
+
}
|
|
1223
|
+
//See if we already have data at that interval.
|
|
1224
|
+
const thisIntervals = property.intervals;
|
|
1225
|
+
existingInterval = thisIntervals.findInterval({
|
|
1226
|
+
start: combinedInterval.start,
|
|
1227
|
+
stop: combinedInterval.stop,
|
|
1228
|
+
});
|
|
1229
|
+
if (defined(existingInterval)) {
|
|
1230
|
+
//We have an interval, but we need to make sure the
|
|
1231
|
+
//new data is the same type of material as the old data.
|
|
1232
|
+
existingMaterial = existingInterval.data;
|
|
1233
|
+
} else {
|
|
1234
|
+
//If not, create it.
|
|
1235
|
+
existingInterval = combinedInterval.clone();
|
|
1236
|
+
thisIntervals.addInterval(existingInterval);
|
|
1237
|
+
}
|
|
1238
|
+
} else {
|
|
1239
|
+
existingMaterial = property;
|
|
1240
|
+
}
|
|
1241
|
+
|
|
1242
|
+
let materialData;
|
|
1243
|
+
if (defined(packetData.solidColor)) {
|
|
1244
|
+
if (!(existingMaterial instanceof ColorMaterialProperty)) {
|
|
1245
|
+
existingMaterial = new ColorMaterialProperty();
|
|
1246
|
+
}
|
|
1247
|
+
materialData = packetData.solidColor;
|
|
1248
|
+
processPacketData(
|
|
1249
|
+
Color,
|
|
1250
|
+
existingMaterial,
|
|
1251
|
+
"color",
|
|
1252
|
+
materialData.color,
|
|
1253
|
+
undefined,
|
|
1254
|
+
undefined,
|
|
1255
|
+
entityCollection,
|
|
1256
|
+
);
|
|
1257
|
+
} else if (defined(packetData.grid)) {
|
|
1258
|
+
if (!(existingMaterial instanceof GridMaterialProperty)) {
|
|
1259
|
+
existingMaterial = new GridMaterialProperty();
|
|
1260
|
+
}
|
|
1261
|
+
materialData = packetData.grid;
|
|
1262
|
+
processPacketData(
|
|
1263
|
+
Color,
|
|
1264
|
+
existingMaterial,
|
|
1265
|
+
"color",
|
|
1266
|
+
materialData.color,
|
|
1267
|
+
undefined,
|
|
1268
|
+
sourceUri,
|
|
1269
|
+
entityCollection,
|
|
1270
|
+
);
|
|
1271
|
+
processPacketData(
|
|
1272
|
+
Number,
|
|
1273
|
+
existingMaterial,
|
|
1274
|
+
"cellAlpha",
|
|
1275
|
+
materialData.cellAlpha,
|
|
1276
|
+
undefined,
|
|
1277
|
+
sourceUri,
|
|
1278
|
+
entityCollection,
|
|
1279
|
+
);
|
|
1280
|
+
processPacketData(
|
|
1281
|
+
Cartesian2,
|
|
1282
|
+
existingMaterial,
|
|
1283
|
+
"lineCount",
|
|
1284
|
+
materialData.lineCount,
|
|
1285
|
+
undefined,
|
|
1286
|
+
sourceUri,
|
|
1287
|
+
entityCollection,
|
|
1288
|
+
);
|
|
1289
|
+
processPacketData(
|
|
1290
|
+
Cartesian2,
|
|
1291
|
+
existingMaterial,
|
|
1292
|
+
"lineThickness",
|
|
1293
|
+
materialData.lineThickness,
|
|
1294
|
+
undefined,
|
|
1295
|
+
sourceUri,
|
|
1296
|
+
entityCollection,
|
|
1297
|
+
);
|
|
1298
|
+
processPacketData(
|
|
1299
|
+
Cartesian2,
|
|
1300
|
+
existingMaterial,
|
|
1301
|
+
"lineOffset",
|
|
1302
|
+
materialData.lineOffset,
|
|
1303
|
+
undefined,
|
|
1304
|
+
sourceUri,
|
|
1305
|
+
entityCollection,
|
|
1306
|
+
);
|
|
1307
|
+
} else if (defined(packetData.image)) {
|
|
1308
|
+
if (!(existingMaterial instanceof ImageMaterialProperty)) {
|
|
1309
|
+
existingMaterial = new ImageMaterialProperty();
|
|
1310
|
+
}
|
|
1311
|
+
materialData = packetData.image;
|
|
1312
|
+
processPacketData(
|
|
1313
|
+
Image,
|
|
1314
|
+
existingMaterial,
|
|
1315
|
+
"image",
|
|
1316
|
+
materialData.image,
|
|
1317
|
+
undefined,
|
|
1318
|
+
sourceUri,
|
|
1319
|
+
entityCollection,
|
|
1320
|
+
);
|
|
1321
|
+
processPacketData(
|
|
1322
|
+
Cartesian2,
|
|
1323
|
+
existingMaterial,
|
|
1324
|
+
"repeat",
|
|
1325
|
+
materialData.repeat,
|
|
1326
|
+
undefined,
|
|
1327
|
+
sourceUri,
|
|
1328
|
+
entityCollection,
|
|
1329
|
+
);
|
|
1330
|
+
processPacketData(
|
|
1331
|
+
Color,
|
|
1332
|
+
existingMaterial,
|
|
1333
|
+
"color",
|
|
1334
|
+
materialData.color,
|
|
1335
|
+
undefined,
|
|
1336
|
+
sourceUri,
|
|
1337
|
+
entityCollection,
|
|
1338
|
+
);
|
|
1339
|
+
processPacketData(
|
|
1340
|
+
Boolean,
|
|
1341
|
+
existingMaterial,
|
|
1342
|
+
"transparent",
|
|
1343
|
+
materialData.transparent,
|
|
1344
|
+
undefined,
|
|
1345
|
+
sourceUri,
|
|
1346
|
+
entityCollection,
|
|
1347
|
+
);
|
|
1348
|
+
} else if (defined(packetData.stripe)) {
|
|
1349
|
+
if (!(existingMaterial instanceof StripeMaterialProperty)) {
|
|
1350
|
+
existingMaterial = new StripeMaterialProperty();
|
|
1351
|
+
}
|
|
1352
|
+
materialData = packetData.stripe;
|
|
1353
|
+
processPacketData(
|
|
1354
|
+
StripeOrientation,
|
|
1355
|
+
existingMaterial,
|
|
1356
|
+
"orientation",
|
|
1357
|
+
materialData.orientation,
|
|
1358
|
+
undefined,
|
|
1359
|
+
sourceUri,
|
|
1360
|
+
entityCollection,
|
|
1361
|
+
);
|
|
1362
|
+
processPacketData(
|
|
1363
|
+
Color,
|
|
1364
|
+
existingMaterial,
|
|
1365
|
+
"evenColor",
|
|
1366
|
+
materialData.evenColor,
|
|
1367
|
+
undefined,
|
|
1368
|
+
sourceUri,
|
|
1369
|
+
entityCollection,
|
|
1370
|
+
);
|
|
1371
|
+
processPacketData(
|
|
1372
|
+
Color,
|
|
1373
|
+
existingMaterial,
|
|
1374
|
+
"oddColor",
|
|
1375
|
+
materialData.oddColor,
|
|
1376
|
+
undefined,
|
|
1377
|
+
sourceUri,
|
|
1378
|
+
entityCollection,
|
|
1379
|
+
);
|
|
1380
|
+
processPacketData(
|
|
1381
|
+
Number,
|
|
1382
|
+
existingMaterial,
|
|
1383
|
+
"offset",
|
|
1384
|
+
materialData.offset,
|
|
1385
|
+
undefined,
|
|
1386
|
+
sourceUri,
|
|
1387
|
+
entityCollection,
|
|
1388
|
+
);
|
|
1389
|
+
processPacketData(
|
|
1390
|
+
Number,
|
|
1391
|
+
existingMaterial,
|
|
1392
|
+
"repeat",
|
|
1393
|
+
materialData.repeat,
|
|
1394
|
+
undefined,
|
|
1395
|
+
sourceUri,
|
|
1396
|
+
entityCollection,
|
|
1397
|
+
);
|
|
1398
|
+
} else if (defined(packetData.polylineOutline)) {
|
|
1399
|
+
if (!(existingMaterial instanceof PolylineOutlineMaterialProperty)) {
|
|
1400
|
+
existingMaterial = new PolylineOutlineMaterialProperty();
|
|
1401
|
+
}
|
|
1402
|
+
materialData = packetData.polylineOutline;
|
|
1403
|
+
processPacketData(
|
|
1404
|
+
Color,
|
|
1405
|
+
existingMaterial,
|
|
1406
|
+
"color",
|
|
1407
|
+
materialData.color,
|
|
1408
|
+
undefined,
|
|
1409
|
+
sourceUri,
|
|
1410
|
+
entityCollection,
|
|
1411
|
+
);
|
|
1412
|
+
processPacketData(
|
|
1413
|
+
Color,
|
|
1414
|
+
existingMaterial,
|
|
1415
|
+
"outlineColor",
|
|
1416
|
+
materialData.outlineColor,
|
|
1417
|
+
undefined,
|
|
1418
|
+
sourceUri,
|
|
1419
|
+
entityCollection,
|
|
1420
|
+
);
|
|
1421
|
+
processPacketData(
|
|
1422
|
+
Number,
|
|
1423
|
+
existingMaterial,
|
|
1424
|
+
"outlineWidth",
|
|
1425
|
+
materialData.outlineWidth,
|
|
1426
|
+
undefined,
|
|
1427
|
+
sourceUri,
|
|
1428
|
+
entityCollection,
|
|
1429
|
+
);
|
|
1430
|
+
} else if (defined(packetData.polylineGlow)) {
|
|
1431
|
+
if (!(existingMaterial instanceof PolylineGlowMaterialProperty)) {
|
|
1432
|
+
existingMaterial = new PolylineGlowMaterialProperty();
|
|
1433
|
+
}
|
|
1434
|
+
materialData = packetData.polylineGlow;
|
|
1435
|
+
processPacketData(
|
|
1436
|
+
Color,
|
|
1437
|
+
existingMaterial,
|
|
1438
|
+
"color",
|
|
1439
|
+
materialData.color,
|
|
1440
|
+
undefined,
|
|
1441
|
+
sourceUri,
|
|
1442
|
+
entityCollection,
|
|
1443
|
+
);
|
|
1444
|
+
processPacketData(
|
|
1445
|
+
Number,
|
|
1446
|
+
existingMaterial,
|
|
1447
|
+
"glowPower",
|
|
1448
|
+
materialData.glowPower,
|
|
1449
|
+
undefined,
|
|
1450
|
+
sourceUri,
|
|
1451
|
+
entityCollection,
|
|
1452
|
+
);
|
|
1453
|
+
processPacketData(
|
|
1454
|
+
Number,
|
|
1455
|
+
existingMaterial,
|
|
1456
|
+
"taperPower",
|
|
1457
|
+
materialData.taperPower,
|
|
1458
|
+
undefined,
|
|
1459
|
+
sourceUri,
|
|
1460
|
+
entityCollection,
|
|
1461
|
+
);
|
|
1462
|
+
} else if (defined(packetData.polylineArrow)) {
|
|
1463
|
+
if (!(existingMaterial instanceof PolylineArrowMaterialProperty)) {
|
|
1464
|
+
existingMaterial = new PolylineArrowMaterialProperty();
|
|
1465
|
+
}
|
|
1466
|
+
materialData = packetData.polylineArrow;
|
|
1467
|
+
processPacketData(
|
|
1468
|
+
Color,
|
|
1469
|
+
existingMaterial,
|
|
1470
|
+
"color",
|
|
1471
|
+
materialData.color,
|
|
1472
|
+
undefined,
|
|
1473
|
+
undefined,
|
|
1474
|
+
entityCollection,
|
|
1475
|
+
);
|
|
1476
|
+
} else if (defined(packetData.polylineDash)) {
|
|
1477
|
+
if (!(existingMaterial instanceof PolylineDashMaterialProperty)) {
|
|
1478
|
+
existingMaterial = new PolylineDashMaterialProperty();
|
|
1479
|
+
}
|
|
1480
|
+
materialData = packetData.polylineDash;
|
|
1481
|
+
processPacketData(
|
|
1482
|
+
Color,
|
|
1483
|
+
existingMaterial,
|
|
1484
|
+
"color",
|
|
1485
|
+
materialData.color,
|
|
1486
|
+
undefined,
|
|
1487
|
+
undefined,
|
|
1488
|
+
entityCollection,
|
|
1489
|
+
);
|
|
1490
|
+
processPacketData(
|
|
1491
|
+
Color,
|
|
1492
|
+
existingMaterial,
|
|
1493
|
+
"gapColor",
|
|
1494
|
+
materialData.gapColor,
|
|
1495
|
+
undefined,
|
|
1496
|
+
undefined,
|
|
1497
|
+
entityCollection,
|
|
1498
|
+
);
|
|
1499
|
+
processPacketData(
|
|
1500
|
+
Number,
|
|
1501
|
+
existingMaterial,
|
|
1502
|
+
"dashLength",
|
|
1503
|
+
materialData.dashLength,
|
|
1504
|
+
undefined,
|
|
1505
|
+
sourceUri,
|
|
1506
|
+
entityCollection,
|
|
1507
|
+
);
|
|
1508
|
+
processPacketData(
|
|
1509
|
+
Number,
|
|
1510
|
+
existingMaterial,
|
|
1511
|
+
"dashPattern",
|
|
1512
|
+
materialData.dashPattern,
|
|
1513
|
+
undefined,
|
|
1514
|
+
sourceUri,
|
|
1515
|
+
entityCollection,
|
|
1516
|
+
);
|
|
1517
|
+
} else if (defined(packetData.checkerboard)) {
|
|
1518
|
+
if (!(existingMaterial instanceof CheckerboardMaterialProperty)) {
|
|
1519
|
+
existingMaterial = new CheckerboardMaterialProperty();
|
|
1520
|
+
}
|
|
1521
|
+
materialData = packetData.checkerboard;
|
|
1522
|
+
processPacketData(
|
|
1523
|
+
Color,
|
|
1524
|
+
existingMaterial,
|
|
1525
|
+
"evenColor",
|
|
1526
|
+
materialData.evenColor,
|
|
1527
|
+
undefined,
|
|
1528
|
+
sourceUri,
|
|
1529
|
+
entityCollection,
|
|
1530
|
+
);
|
|
1531
|
+
processPacketData(
|
|
1532
|
+
Color,
|
|
1533
|
+
existingMaterial,
|
|
1534
|
+
"oddColor",
|
|
1535
|
+
materialData.oddColor,
|
|
1536
|
+
undefined,
|
|
1537
|
+
sourceUri,
|
|
1538
|
+
entityCollection,
|
|
1539
|
+
);
|
|
1540
|
+
processPacketData(
|
|
1541
|
+
Cartesian2,
|
|
1542
|
+
existingMaterial,
|
|
1543
|
+
"repeat",
|
|
1544
|
+
materialData.repeat,
|
|
1545
|
+
undefined,
|
|
1546
|
+
sourceUri,
|
|
1547
|
+
entityCollection,
|
|
1548
|
+
);
|
|
1549
|
+
}
|
|
1550
|
+
|
|
1551
|
+
if (defined(existingInterval)) {
|
|
1552
|
+
existingInterval.data = existingMaterial;
|
|
1553
|
+
} else {
|
|
1554
|
+
object[propertyName] = existingMaterial;
|
|
1555
|
+
}
|
|
1556
|
+
}
|
|
1557
|
+
|
|
1558
|
+
function processMaterialPacketData(
|
|
1559
|
+
object,
|
|
1560
|
+
propertyName,
|
|
1561
|
+
packetData,
|
|
1562
|
+
interval,
|
|
1563
|
+
sourceUri,
|
|
1564
|
+
entityCollection,
|
|
1565
|
+
) {
|
|
1566
|
+
if (!defined(packetData)) {
|
|
1567
|
+
return;
|
|
1568
|
+
}
|
|
1569
|
+
|
|
1570
|
+
if (Array.isArray(packetData)) {
|
|
1571
|
+
for (let i = 0, len = packetData.length; i < len; ++i) {
|
|
1572
|
+
processMaterialProperty(
|
|
1573
|
+
object,
|
|
1574
|
+
propertyName,
|
|
1575
|
+
packetData[i],
|
|
1576
|
+
interval,
|
|
1577
|
+
sourceUri,
|
|
1578
|
+
entityCollection,
|
|
1579
|
+
);
|
|
1580
|
+
}
|
|
1581
|
+
} else {
|
|
1582
|
+
processMaterialProperty(
|
|
1583
|
+
object,
|
|
1584
|
+
propertyName,
|
|
1585
|
+
packetData,
|
|
1586
|
+
interval,
|
|
1587
|
+
sourceUri,
|
|
1588
|
+
entityCollection,
|
|
1589
|
+
);
|
|
1590
|
+
}
|
|
1591
|
+
}
|
|
1592
|
+
|
|
1593
|
+
function processName(entity, packet, entityCollection, sourceUri) {
|
|
1594
|
+
const nameData = packet.name;
|
|
1595
|
+
if (defined(nameData)) {
|
|
1596
|
+
entity.name = packet.name;
|
|
1597
|
+
}
|
|
1598
|
+
}
|
|
1599
|
+
|
|
1600
|
+
function processDescription(entity, packet, entityCollection, sourceUri) {
|
|
1601
|
+
const descriptionData = packet.description;
|
|
1602
|
+
if (defined(descriptionData)) {
|
|
1603
|
+
processPacketData(
|
|
1604
|
+
String,
|
|
1605
|
+
entity,
|
|
1606
|
+
"description",
|
|
1607
|
+
descriptionData,
|
|
1608
|
+
undefined,
|
|
1609
|
+
sourceUri,
|
|
1610
|
+
entityCollection,
|
|
1611
|
+
);
|
|
1612
|
+
}
|
|
1613
|
+
}
|
|
1614
|
+
|
|
1615
|
+
function processPosition(entity, packet, entityCollection, sourceUri) {
|
|
1616
|
+
const positionData = packet.position;
|
|
1617
|
+
if (defined(positionData)) {
|
|
1618
|
+
processPositionPacketData(
|
|
1619
|
+
entity,
|
|
1620
|
+
"position",
|
|
1621
|
+
positionData,
|
|
1622
|
+
undefined,
|
|
1623
|
+
sourceUri,
|
|
1624
|
+
entityCollection,
|
|
1625
|
+
);
|
|
1626
|
+
}
|
|
1627
|
+
}
|
|
1628
|
+
|
|
1629
|
+
function processViewFrom(entity, packet, entityCollection, sourceUri) {
|
|
1630
|
+
const viewFromData = packet.viewFrom;
|
|
1631
|
+
if (defined(viewFromData)) {
|
|
1632
|
+
processPacketData(
|
|
1633
|
+
Cartesian3,
|
|
1634
|
+
entity,
|
|
1635
|
+
"viewFrom",
|
|
1636
|
+
viewFromData,
|
|
1637
|
+
undefined,
|
|
1638
|
+
sourceUri,
|
|
1639
|
+
entityCollection,
|
|
1640
|
+
);
|
|
1641
|
+
}
|
|
1642
|
+
}
|
|
1643
|
+
|
|
1644
|
+
function processOrientation(entity, packet, entityCollection, sourceUri) {
|
|
1645
|
+
const orientationData = packet.orientation;
|
|
1646
|
+
if (defined(orientationData)) {
|
|
1647
|
+
processPacketData(
|
|
1648
|
+
Quaternion,
|
|
1649
|
+
entity,
|
|
1650
|
+
"orientation",
|
|
1651
|
+
orientationData,
|
|
1652
|
+
undefined,
|
|
1653
|
+
sourceUri,
|
|
1654
|
+
entityCollection,
|
|
1655
|
+
);
|
|
1656
|
+
}
|
|
1657
|
+
}
|
|
1658
|
+
|
|
1659
|
+
function processProperties(entity, packet, entityCollection, sourceUri) {
|
|
1660
|
+
const propertiesData = packet.properties;
|
|
1661
|
+
if (defined(propertiesData)) {
|
|
1662
|
+
if (!defined(entity.properties)) {
|
|
1663
|
+
entity.properties = new PropertyBag();
|
|
1664
|
+
}
|
|
1665
|
+
|
|
1666
|
+
// We cannot simply call processPacketData(entity, 'properties', propertyData, undefined, sourceUri, entityCollection)
|
|
1667
|
+
// because each property of "properties" may vary separately.
|
|
1668
|
+
// The properties will be accessible as entity.properties.myprop.getValue(time).
|
|
1669
|
+
|
|
1670
|
+
for (const key in propertiesData) {
|
|
1671
|
+
if (propertiesData.hasOwnProperty(key)) {
|
|
1672
|
+
if (!entity.properties.hasProperty(key)) {
|
|
1673
|
+
entity.properties.addProperty(key);
|
|
1674
|
+
}
|
|
1675
|
+
|
|
1676
|
+
const propertyData = propertiesData[key];
|
|
1677
|
+
if (Array.isArray(propertyData)) {
|
|
1678
|
+
for (let i = 0, len = propertyData.length; i < len; ++i) {
|
|
1679
|
+
processProperty(
|
|
1680
|
+
getPropertyType(propertyData[i]),
|
|
1681
|
+
entity.properties,
|
|
1682
|
+
key,
|
|
1683
|
+
propertyData[i],
|
|
1684
|
+
undefined,
|
|
1685
|
+
sourceUri,
|
|
1686
|
+
entityCollection,
|
|
1687
|
+
);
|
|
1688
|
+
}
|
|
1689
|
+
} else {
|
|
1690
|
+
processProperty(
|
|
1691
|
+
getPropertyType(propertyData),
|
|
1692
|
+
entity.properties,
|
|
1693
|
+
key,
|
|
1694
|
+
propertyData,
|
|
1695
|
+
undefined,
|
|
1696
|
+
sourceUri,
|
|
1697
|
+
entityCollection,
|
|
1698
|
+
);
|
|
1699
|
+
}
|
|
1700
|
+
}
|
|
1701
|
+
}
|
|
1702
|
+
}
|
|
1703
|
+
}
|
|
1704
|
+
|
|
1705
|
+
function processReferencesArrayPacketData(
|
|
1706
|
+
object,
|
|
1707
|
+
propertyName,
|
|
1708
|
+
references,
|
|
1709
|
+
interval,
|
|
1710
|
+
entityCollection,
|
|
1711
|
+
PropertyArrayType,
|
|
1712
|
+
CompositePropertyArrayType,
|
|
1713
|
+
) {
|
|
1714
|
+
const properties = references.map(function (reference) {
|
|
1715
|
+
return createReferenceProperty(entityCollection, reference);
|
|
1716
|
+
});
|
|
1717
|
+
|
|
1718
|
+
if (defined(interval)) {
|
|
1719
|
+
interval = intervalFromString(interval);
|
|
1720
|
+
let property = object[propertyName];
|
|
1721
|
+
if (!(property instanceof CompositePropertyArrayType)) {
|
|
1722
|
+
// If the property was not already a CompositeProperty,
|
|
1723
|
+
// create a CompositeProperty but preserve the existing data.
|
|
1724
|
+
|
|
1725
|
+
// Create the composite and add the old property, wrapped in an infinite interval.
|
|
1726
|
+
const composite = new CompositePropertyArrayType();
|
|
1727
|
+
composite.intervals.addInterval(wrapPropertyInInfiniteInterval(property));
|
|
1728
|
+
|
|
1729
|
+
object[propertyName] = property = composite;
|
|
1730
|
+
}
|
|
1731
|
+
|
|
1732
|
+
interval.data = new PropertyArrayType(properties);
|
|
1733
|
+
property.intervals.addInterval(interval);
|
|
1734
|
+
} else {
|
|
1735
|
+
object[propertyName] = new PropertyArrayType(properties);
|
|
1736
|
+
}
|
|
1737
|
+
}
|
|
1738
|
+
|
|
1739
|
+
function processArrayPacketData(
|
|
1740
|
+
object,
|
|
1741
|
+
propertyName,
|
|
1742
|
+
packetData,
|
|
1743
|
+
entityCollection,
|
|
1744
|
+
) {
|
|
1745
|
+
const references = packetData.references;
|
|
1746
|
+
if (defined(references)) {
|
|
1747
|
+
processReferencesArrayPacketData(
|
|
1748
|
+
object,
|
|
1749
|
+
propertyName,
|
|
1750
|
+
references,
|
|
1751
|
+
packetData.interval,
|
|
1752
|
+
entityCollection,
|
|
1753
|
+
PropertyArray,
|
|
1754
|
+
CompositeProperty,
|
|
1755
|
+
);
|
|
1756
|
+
} else {
|
|
1757
|
+
processPacketData(
|
|
1758
|
+
Array,
|
|
1759
|
+
object,
|
|
1760
|
+
propertyName,
|
|
1761
|
+
packetData,
|
|
1762
|
+
undefined,
|
|
1763
|
+
undefined,
|
|
1764
|
+
entityCollection,
|
|
1765
|
+
);
|
|
1766
|
+
}
|
|
1767
|
+
}
|
|
1768
|
+
|
|
1769
|
+
function processArray(object, propertyName, packetData, entityCollection) {
|
|
1770
|
+
if (!defined(packetData)) {
|
|
1771
|
+
return;
|
|
1772
|
+
}
|
|
1773
|
+
|
|
1774
|
+
if (Array.isArray(packetData)) {
|
|
1775
|
+
for (let i = 0, length = packetData.length; i < length; ++i) {
|
|
1776
|
+
processArrayPacketData(
|
|
1777
|
+
object,
|
|
1778
|
+
propertyName,
|
|
1779
|
+
packetData[i],
|
|
1780
|
+
entityCollection,
|
|
1781
|
+
);
|
|
1782
|
+
}
|
|
1783
|
+
} else {
|
|
1784
|
+
processArrayPacketData(object, propertyName, packetData, entityCollection);
|
|
1785
|
+
}
|
|
1786
|
+
}
|
|
1787
|
+
|
|
1788
|
+
function processPositionArrayPacketData(
|
|
1789
|
+
object,
|
|
1790
|
+
propertyName,
|
|
1791
|
+
packetData,
|
|
1792
|
+
entityCollection,
|
|
1793
|
+
) {
|
|
1794
|
+
const references = packetData.references;
|
|
1795
|
+
if (defined(references)) {
|
|
1796
|
+
processReferencesArrayPacketData(
|
|
1797
|
+
object,
|
|
1798
|
+
propertyName,
|
|
1799
|
+
references,
|
|
1800
|
+
packetData.interval,
|
|
1801
|
+
entityCollection,
|
|
1802
|
+
PositionPropertyArray,
|
|
1803
|
+
CompositePositionProperty,
|
|
1804
|
+
);
|
|
1805
|
+
} else {
|
|
1806
|
+
if (defined(packetData.cartesian)) {
|
|
1807
|
+
packetData.array = Cartesian3.unpackArray(packetData.cartesian);
|
|
1808
|
+
} else if (defined(packetData.cartographicRadians)) {
|
|
1809
|
+
packetData.array = Cartesian3.fromRadiansArrayHeights(
|
|
1810
|
+
packetData.cartographicRadians,
|
|
1811
|
+
Ellipsoid.default,
|
|
1812
|
+
);
|
|
1813
|
+
} else if (defined(packetData.cartographicDegrees)) {
|
|
1814
|
+
packetData.array = Cartesian3.fromDegreesArrayHeights(
|
|
1815
|
+
packetData.cartographicDegrees,
|
|
1816
|
+
Ellipsoid.default,
|
|
1817
|
+
);
|
|
1818
|
+
}
|
|
1819
|
+
|
|
1820
|
+
if (defined(packetData.array)) {
|
|
1821
|
+
processPacketData(
|
|
1822
|
+
Array,
|
|
1823
|
+
object,
|
|
1824
|
+
propertyName,
|
|
1825
|
+
packetData,
|
|
1826
|
+
undefined,
|
|
1827
|
+
undefined,
|
|
1828
|
+
entityCollection,
|
|
1829
|
+
);
|
|
1830
|
+
}
|
|
1831
|
+
}
|
|
1832
|
+
}
|
|
1833
|
+
|
|
1834
|
+
function processPositionArray(
|
|
1835
|
+
object,
|
|
1836
|
+
propertyName,
|
|
1837
|
+
packetData,
|
|
1838
|
+
entityCollection,
|
|
1839
|
+
) {
|
|
1840
|
+
if (!defined(packetData)) {
|
|
1841
|
+
return;
|
|
1842
|
+
}
|
|
1843
|
+
|
|
1844
|
+
if (Array.isArray(packetData)) {
|
|
1845
|
+
for (let i = 0, length = packetData.length; i < length; ++i) {
|
|
1846
|
+
processPositionArrayPacketData(
|
|
1847
|
+
object,
|
|
1848
|
+
propertyName,
|
|
1849
|
+
packetData[i],
|
|
1850
|
+
entityCollection,
|
|
1851
|
+
);
|
|
1852
|
+
}
|
|
1853
|
+
} else {
|
|
1854
|
+
processPositionArrayPacketData(
|
|
1855
|
+
object,
|
|
1856
|
+
propertyName,
|
|
1857
|
+
packetData,
|
|
1858
|
+
entityCollection,
|
|
1859
|
+
);
|
|
1860
|
+
}
|
|
1861
|
+
}
|
|
1862
|
+
|
|
1863
|
+
function unpackCartesianArray(array) {
|
|
1864
|
+
return Cartesian3.unpackArray(array);
|
|
1865
|
+
}
|
|
1866
|
+
|
|
1867
|
+
function unpackCartographicRadiansArray(array) {
|
|
1868
|
+
return Cartesian3.fromRadiansArrayHeights(array, Ellipsoid.default);
|
|
1869
|
+
}
|
|
1870
|
+
|
|
1871
|
+
function unpackCartographicDegreesArray(array) {
|
|
1872
|
+
return Cartesian3.fromDegreesArrayHeights(array, Ellipsoid.default);
|
|
1873
|
+
}
|
|
1874
|
+
|
|
1875
|
+
function processPositionArrayOfArraysPacketData(
|
|
1876
|
+
object,
|
|
1877
|
+
propertyName,
|
|
1878
|
+
packetData,
|
|
1879
|
+
entityCollection,
|
|
1880
|
+
) {
|
|
1881
|
+
const references = packetData.references;
|
|
1882
|
+
if (defined(references)) {
|
|
1883
|
+
const properties = references.map(function (referenceArray) {
|
|
1884
|
+
const tempObj = {};
|
|
1885
|
+
processReferencesArrayPacketData(
|
|
1886
|
+
tempObj,
|
|
1887
|
+
"positions",
|
|
1888
|
+
referenceArray,
|
|
1889
|
+
packetData.interval,
|
|
1890
|
+
entityCollection,
|
|
1891
|
+
PositionPropertyArray,
|
|
1892
|
+
CompositePositionProperty,
|
|
1893
|
+
);
|
|
1894
|
+
return tempObj.positions;
|
|
1895
|
+
});
|
|
1896
|
+
object[propertyName] = new PositionPropertyArray(properties);
|
|
1897
|
+
} else {
|
|
1898
|
+
if (defined(packetData.cartesian)) {
|
|
1899
|
+
packetData.array = packetData.cartesian.map(unpackCartesianArray);
|
|
1900
|
+
} else if (defined(packetData.cartographicRadians)) {
|
|
1901
|
+
packetData.array = packetData.cartographicRadians.map(
|
|
1902
|
+
unpackCartographicRadiansArray,
|
|
1903
|
+
);
|
|
1904
|
+
} else if (defined(packetData.cartographicDegrees)) {
|
|
1905
|
+
packetData.array = packetData.cartographicDegrees.map(
|
|
1906
|
+
unpackCartographicDegreesArray,
|
|
1907
|
+
);
|
|
1908
|
+
}
|
|
1909
|
+
|
|
1910
|
+
if (defined(packetData.array)) {
|
|
1911
|
+
processPacketData(
|
|
1912
|
+
Array,
|
|
1913
|
+
object,
|
|
1914
|
+
propertyName,
|
|
1915
|
+
packetData,
|
|
1916
|
+
undefined,
|
|
1917
|
+
undefined,
|
|
1918
|
+
entityCollection,
|
|
1919
|
+
);
|
|
1920
|
+
}
|
|
1921
|
+
}
|
|
1922
|
+
}
|
|
1923
|
+
|
|
1924
|
+
function processPositionArrayOfArrays(
|
|
1925
|
+
object,
|
|
1926
|
+
propertyName,
|
|
1927
|
+
packetData,
|
|
1928
|
+
entityCollection,
|
|
1929
|
+
) {
|
|
1930
|
+
if (!defined(packetData)) {
|
|
1931
|
+
return;
|
|
1932
|
+
}
|
|
1933
|
+
|
|
1934
|
+
if (Array.isArray(packetData)) {
|
|
1935
|
+
for (let i = 0, length = packetData.length; i < length; ++i) {
|
|
1936
|
+
processPositionArrayOfArraysPacketData(
|
|
1937
|
+
object,
|
|
1938
|
+
propertyName,
|
|
1939
|
+
packetData[i],
|
|
1940
|
+
entityCollection,
|
|
1941
|
+
);
|
|
1942
|
+
}
|
|
1943
|
+
} else {
|
|
1944
|
+
processPositionArrayOfArraysPacketData(
|
|
1945
|
+
object,
|
|
1946
|
+
propertyName,
|
|
1947
|
+
packetData,
|
|
1948
|
+
entityCollection,
|
|
1949
|
+
);
|
|
1950
|
+
}
|
|
1951
|
+
}
|
|
1952
|
+
|
|
1953
|
+
function processShape(object, propertyName, packetData, entityCollection) {
|
|
1954
|
+
if (!defined(packetData)) {
|
|
1955
|
+
return;
|
|
1956
|
+
}
|
|
1957
|
+
|
|
1958
|
+
if (Array.isArray(packetData)) {
|
|
1959
|
+
for (let i = 0, length = packetData.length; i < length; i++) {
|
|
1960
|
+
processShapePacketData(
|
|
1961
|
+
object,
|
|
1962
|
+
propertyName,
|
|
1963
|
+
packetData[i],
|
|
1964
|
+
entityCollection,
|
|
1965
|
+
);
|
|
1966
|
+
}
|
|
1967
|
+
} else {
|
|
1968
|
+
processShapePacketData(object, propertyName, packetData, entityCollection);
|
|
1969
|
+
}
|
|
1970
|
+
}
|
|
1971
|
+
|
|
1972
|
+
function processAvailability(entity, packet, entityCollection, sourceUri) {
|
|
1973
|
+
const packetData = packet.availability;
|
|
1974
|
+
if (!defined(packetData)) {
|
|
1975
|
+
return;
|
|
1976
|
+
}
|
|
1977
|
+
|
|
1978
|
+
let intervals;
|
|
1979
|
+
if (Array.isArray(packetData)) {
|
|
1980
|
+
for (let i = 0, len = packetData.length; i < len; ++i) {
|
|
1981
|
+
if (!defined(intervals)) {
|
|
1982
|
+
intervals = new TimeIntervalCollection();
|
|
1983
|
+
}
|
|
1984
|
+
intervals.addInterval(intervalFromString(packetData[i]));
|
|
1985
|
+
}
|
|
1986
|
+
} else {
|
|
1987
|
+
intervals = new TimeIntervalCollection();
|
|
1988
|
+
intervals.addInterval(intervalFromString(packetData));
|
|
1989
|
+
}
|
|
1990
|
+
entity.availability = intervals;
|
|
1991
|
+
}
|
|
1992
|
+
|
|
1993
|
+
function processAlignedAxis(
|
|
1994
|
+
billboard,
|
|
1995
|
+
packetData,
|
|
1996
|
+
interval,
|
|
1997
|
+
sourceUri,
|
|
1998
|
+
entityCollection,
|
|
1999
|
+
) {
|
|
2000
|
+
if (!defined(packetData)) {
|
|
2001
|
+
return;
|
|
2002
|
+
}
|
|
2003
|
+
|
|
2004
|
+
processPacketData(
|
|
2005
|
+
UnitCartesian3,
|
|
2006
|
+
billboard,
|
|
2007
|
+
"alignedAxis",
|
|
2008
|
+
packetData,
|
|
2009
|
+
interval,
|
|
2010
|
+
sourceUri,
|
|
2011
|
+
entityCollection,
|
|
2012
|
+
);
|
|
2013
|
+
}
|
|
2014
|
+
|
|
2015
|
+
function processBillboard(entity, packet, entityCollection, sourceUri) {
|
|
2016
|
+
const billboardData = packet.billboard;
|
|
2017
|
+
if (!defined(billboardData)) {
|
|
2018
|
+
return;
|
|
2019
|
+
}
|
|
2020
|
+
|
|
2021
|
+
const interval = intervalFromString(billboardData.interval);
|
|
2022
|
+
let billboard = entity.billboard;
|
|
2023
|
+
if (!defined(billboard)) {
|
|
2024
|
+
entity.billboard = billboard = new BillboardGraphics();
|
|
2025
|
+
}
|
|
2026
|
+
|
|
2027
|
+
processPacketData(
|
|
2028
|
+
Boolean,
|
|
2029
|
+
billboard,
|
|
2030
|
+
"show",
|
|
2031
|
+
billboardData.show,
|
|
2032
|
+
interval,
|
|
2033
|
+
sourceUri,
|
|
2034
|
+
entityCollection,
|
|
2035
|
+
);
|
|
2036
|
+
processPacketData(
|
|
2037
|
+
Image,
|
|
2038
|
+
billboard,
|
|
2039
|
+
"image",
|
|
2040
|
+
billboardData.image,
|
|
2041
|
+
interval,
|
|
2042
|
+
sourceUri,
|
|
2043
|
+
entityCollection,
|
|
2044
|
+
);
|
|
2045
|
+
processPacketData(
|
|
2046
|
+
Number,
|
|
2047
|
+
billboard,
|
|
2048
|
+
"scale",
|
|
2049
|
+
billboardData.scale,
|
|
2050
|
+
interval,
|
|
2051
|
+
sourceUri,
|
|
2052
|
+
entityCollection,
|
|
2053
|
+
);
|
|
2054
|
+
processPacketData(
|
|
2055
|
+
Cartesian2,
|
|
2056
|
+
billboard,
|
|
2057
|
+
"pixelOffset",
|
|
2058
|
+
billboardData.pixelOffset,
|
|
2059
|
+
interval,
|
|
2060
|
+
sourceUri,
|
|
2061
|
+
entityCollection,
|
|
2062
|
+
);
|
|
2063
|
+
processPacketData(
|
|
2064
|
+
Cartesian3,
|
|
2065
|
+
billboard,
|
|
2066
|
+
"eyeOffset",
|
|
2067
|
+
billboardData.eyeOffset,
|
|
2068
|
+
interval,
|
|
2069
|
+
sourceUri,
|
|
2070
|
+
entityCollection,
|
|
2071
|
+
);
|
|
2072
|
+
processPacketData(
|
|
2073
|
+
HorizontalOrigin,
|
|
2074
|
+
billboard,
|
|
2075
|
+
"horizontalOrigin",
|
|
2076
|
+
billboardData.horizontalOrigin,
|
|
2077
|
+
interval,
|
|
2078
|
+
sourceUri,
|
|
2079
|
+
entityCollection,
|
|
2080
|
+
);
|
|
2081
|
+
processPacketData(
|
|
2082
|
+
VerticalOrigin,
|
|
2083
|
+
billboard,
|
|
2084
|
+
"verticalOrigin",
|
|
2085
|
+
billboardData.verticalOrigin,
|
|
2086
|
+
interval,
|
|
2087
|
+
sourceUri,
|
|
2088
|
+
entityCollection,
|
|
2089
|
+
);
|
|
2090
|
+
processPacketData(
|
|
2091
|
+
HeightReference,
|
|
2092
|
+
billboard,
|
|
2093
|
+
"heightReference",
|
|
2094
|
+
billboardData.heightReference,
|
|
2095
|
+
interval,
|
|
2096
|
+
sourceUri,
|
|
2097
|
+
entityCollection,
|
|
2098
|
+
);
|
|
2099
|
+
processPacketData(
|
|
2100
|
+
Color,
|
|
2101
|
+
billboard,
|
|
2102
|
+
"color",
|
|
2103
|
+
billboardData.color,
|
|
2104
|
+
interval,
|
|
2105
|
+
sourceUri,
|
|
2106
|
+
entityCollection,
|
|
2107
|
+
);
|
|
2108
|
+
processPacketData(
|
|
2109
|
+
Rotation,
|
|
2110
|
+
billboard,
|
|
2111
|
+
"rotation",
|
|
2112
|
+
billboardData.rotation,
|
|
2113
|
+
interval,
|
|
2114
|
+
sourceUri,
|
|
2115
|
+
entityCollection,
|
|
2116
|
+
);
|
|
2117
|
+
processAlignedAxis(
|
|
2118
|
+
billboard,
|
|
2119
|
+
billboardData.alignedAxis,
|
|
2120
|
+
interval,
|
|
2121
|
+
sourceUri,
|
|
2122
|
+
entityCollection,
|
|
2123
|
+
);
|
|
2124
|
+
processPacketData(
|
|
2125
|
+
Boolean,
|
|
2126
|
+
billboard,
|
|
2127
|
+
"sizeInMeters",
|
|
2128
|
+
billboardData.sizeInMeters,
|
|
2129
|
+
interval,
|
|
2130
|
+
sourceUri,
|
|
2131
|
+
entityCollection,
|
|
2132
|
+
);
|
|
2133
|
+
processPacketData(
|
|
2134
|
+
Number,
|
|
2135
|
+
billboard,
|
|
2136
|
+
"width",
|
|
2137
|
+
billboardData.width,
|
|
2138
|
+
interval,
|
|
2139
|
+
sourceUri,
|
|
2140
|
+
entityCollection,
|
|
2141
|
+
);
|
|
2142
|
+
processPacketData(
|
|
2143
|
+
Number,
|
|
2144
|
+
billboard,
|
|
2145
|
+
"height",
|
|
2146
|
+
billboardData.height,
|
|
2147
|
+
interval,
|
|
2148
|
+
sourceUri,
|
|
2149
|
+
entityCollection,
|
|
2150
|
+
);
|
|
2151
|
+
processPacketData(
|
|
2152
|
+
NearFarScalar,
|
|
2153
|
+
billboard,
|
|
2154
|
+
"scaleByDistance",
|
|
2155
|
+
billboardData.scaleByDistance,
|
|
2156
|
+
interval,
|
|
2157
|
+
sourceUri,
|
|
2158
|
+
entityCollection,
|
|
2159
|
+
);
|
|
2160
|
+
processPacketData(
|
|
2161
|
+
NearFarScalar,
|
|
2162
|
+
billboard,
|
|
2163
|
+
"translucencyByDistance",
|
|
2164
|
+
billboardData.translucencyByDistance,
|
|
2165
|
+
interval,
|
|
2166
|
+
sourceUri,
|
|
2167
|
+
entityCollection,
|
|
2168
|
+
);
|
|
2169
|
+
processPacketData(
|
|
2170
|
+
NearFarScalar,
|
|
2171
|
+
billboard,
|
|
2172
|
+
"pixelOffsetScaleByDistance",
|
|
2173
|
+
billboardData.pixelOffsetScaleByDistance,
|
|
2174
|
+
interval,
|
|
2175
|
+
sourceUri,
|
|
2176
|
+
entityCollection,
|
|
2177
|
+
);
|
|
2178
|
+
processPacketData(
|
|
2179
|
+
BoundingRectangle,
|
|
2180
|
+
billboard,
|
|
2181
|
+
"imageSubRegion",
|
|
2182
|
+
billboardData.imageSubRegion,
|
|
2183
|
+
interval,
|
|
2184
|
+
sourceUri,
|
|
2185
|
+
entityCollection,
|
|
2186
|
+
);
|
|
2187
|
+
processPacketData(
|
|
2188
|
+
DistanceDisplayCondition,
|
|
2189
|
+
billboard,
|
|
2190
|
+
"distanceDisplayCondition",
|
|
2191
|
+
billboardData.distanceDisplayCondition,
|
|
2192
|
+
interval,
|
|
2193
|
+
sourceUri,
|
|
2194
|
+
entityCollection,
|
|
2195
|
+
);
|
|
2196
|
+
processPacketData(
|
|
2197
|
+
Number,
|
|
2198
|
+
billboard,
|
|
2199
|
+
"disableDepthTestDistance",
|
|
2200
|
+
billboardData.disableDepthTestDistance,
|
|
2201
|
+
interval,
|
|
2202
|
+
sourceUri,
|
|
2203
|
+
entityCollection,
|
|
2204
|
+
);
|
|
2205
|
+
}
|
|
2206
|
+
|
|
2207
|
+
function processBox(entity, packet, entityCollection, sourceUri) {
|
|
2208
|
+
const boxData = packet.box;
|
|
2209
|
+
if (!defined(boxData)) {
|
|
2210
|
+
return;
|
|
2211
|
+
}
|
|
2212
|
+
|
|
2213
|
+
const interval = intervalFromString(boxData.interval);
|
|
2214
|
+
let box = entity.box;
|
|
2215
|
+
if (!defined(box)) {
|
|
2216
|
+
entity.box = box = new BoxGraphics();
|
|
2217
|
+
}
|
|
2218
|
+
|
|
2219
|
+
processPacketData(
|
|
2220
|
+
Boolean,
|
|
2221
|
+
box,
|
|
2222
|
+
"show",
|
|
2223
|
+
boxData.show,
|
|
2224
|
+
interval,
|
|
2225
|
+
sourceUri,
|
|
2226
|
+
entityCollection,
|
|
2227
|
+
);
|
|
2228
|
+
processPacketData(
|
|
2229
|
+
Cartesian3,
|
|
2230
|
+
box,
|
|
2231
|
+
"dimensions",
|
|
2232
|
+
boxData.dimensions,
|
|
2233
|
+
interval,
|
|
2234
|
+
sourceUri,
|
|
2235
|
+
entityCollection,
|
|
2236
|
+
);
|
|
2237
|
+
processPacketData(
|
|
2238
|
+
HeightReference,
|
|
2239
|
+
box,
|
|
2240
|
+
"heightReference",
|
|
2241
|
+
boxData.heightReference,
|
|
2242
|
+
interval,
|
|
2243
|
+
sourceUri,
|
|
2244
|
+
entityCollection,
|
|
2245
|
+
);
|
|
2246
|
+
processPacketData(
|
|
2247
|
+
Boolean,
|
|
2248
|
+
box,
|
|
2249
|
+
"fill",
|
|
2250
|
+
boxData.fill,
|
|
2251
|
+
interval,
|
|
2252
|
+
sourceUri,
|
|
2253
|
+
entityCollection,
|
|
2254
|
+
);
|
|
2255
|
+
processMaterialPacketData(
|
|
2256
|
+
box,
|
|
2257
|
+
"material",
|
|
2258
|
+
boxData.material,
|
|
2259
|
+
interval,
|
|
2260
|
+
sourceUri,
|
|
2261
|
+
entityCollection,
|
|
2262
|
+
);
|
|
2263
|
+
processPacketData(
|
|
2264
|
+
Boolean,
|
|
2265
|
+
box,
|
|
2266
|
+
"outline",
|
|
2267
|
+
boxData.outline,
|
|
2268
|
+
interval,
|
|
2269
|
+
sourceUri,
|
|
2270
|
+
entityCollection,
|
|
2271
|
+
);
|
|
2272
|
+
processPacketData(
|
|
2273
|
+
Color,
|
|
2274
|
+
box,
|
|
2275
|
+
"outlineColor",
|
|
2276
|
+
boxData.outlineColor,
|
|
2277
|
+
interval,
|
|
2278
|
+
sourceUri,
|
|
2279
|
+
entityCollection,
|
|
2280
|
+
);
|
|
2281
|
+
processPacketData(
|
|
2282
|
+
Number,
|
|
2283
|
+
box,
|
|
2284
|
+
"outlineWidth",
|
|
2285
|
+
boxData.outlineWidth,
|
|
2286
|
+
interval,
|
|
2287
|
+
sourceUri,
|
|
2288
|
+
entityCollection,
|
|
2289
|
+
);
|
|
2290
|
+
processPacketData(
|
|
2291
|
+
ShadowMode,
|
|
2292
|
+
box,
|
|
2293
|
+
"shadows",
|
|
2294
|
+
boxData.shadows,
|
|
2295
|
+
interval,
|
|
2296
|
+
sourceUri,
|
|
2297
|
+
entityCollection,
|
|
2298
|
+
);
|
|
2299
|
+
processPacketData(
|
|
2300
|
+
DistanceDisplayCondition,
|
|
2301
|
+
box,
|
|
2302
|
+
"distanceDisplayCondition",
|
|
2303
|
+
boxData.distanceDisplayCondition,
|
|
2304
|
+
interval,
|
|
2305
|
+
sourceUri,
|
|
2306
|
+
entityCollection,
|
|
2307
|
+
);
|
|
2308
|
+
}
|
|
2309
|
+
|
|
2310
|
+
function processCorridor(entity, packet, entityCollection, sourceUri) {
|
|
2311
|
+
const corridorData = packet.corridor;
|
|
2312
|
+
if (!defined(corridorData)) {
|
|
2313
|
+
return;
|
|
2314
|
+
}
|
|
2315
|
+
|
|
2316
|
+
const interval = intervalFromString(corridorData.interval);
|
|
2317
|
+
let corridor = entity.corridor;
|
|
2318
|
+
if (!defined(corridor)) {
|
|
2319
|
+
entity.corridor = corridor = new CorridorGraphics();
|
|
2320
|
+
}
|
|
2321
|
+
|
|
2322
|
+
processPacketData(
|
|
2323
|
+
Boolean,
|
|
2324
|
+
corridor,
|
|
2325
|
+
"show",
|
|
2326
|
+
corridorData.show,
|
|
2327
|
+
interval,
|
|
2328
|
+
sourceUri,
|
|
2329
|
+
entityCollection,
|
|
2330
|
+
);
|
|
2331
|
+
processPositionArray(
|
|
2332
|
+
corridor,
|
|
2333
|
+
"positions",
|
|
2334
|
+
corridorData.positions,
|
|
2335
|
+
entityCollection,
|
|
2336
|
+
);
|
|
2337
|
+
processPacketData(
|
|
2338
|
+
Number,
|
|
2339
|
+
corridor,
|
|
2340
|
+
"width",
|
|
2341
|
+
corridorData.width,
|
|
2342
|
+
interval,
|
|
2343
|
+
sourceUri,
|
|
2344
|
+
entityCollection,
|
|
2345
|
+
);
|
|
2346
|
+
processPacketData(
|
|
2347
|
+
Number,
|
|
2348
|
+
corridor,
|
|
2349
|
+
"height",
|
|
2350
|
+
corridorData.height,
|
|
2351
|
+
interval,
|
|
2352
|
+
sourceUri,
|
|
2353
|
+
entityCollection,
|
|
2354
|
+
);
|
|
2355
|
+
processPacketData(
|
|
2356
|
+
HeightReference,
|
|
2357
|
+
corridor,
|
|
2358
|
+
"heightReference",
|
|
2359
|
+
corridorData.heightReference,
|
|
2360
|
+
interval,
|
|
2361
|
+
sourceUri,
|
|
2362
|
+
entityCollection,
|
|
2363
|
+
);
|
|
2364
|
+
processPacketData(
|
|
2365
|
+
Number,
|
|
2366
|
+
corridor,
|
|
2367
|
+
"extrudedHeight",
|
|
2368
|
+
corridorData.extrudedHeight,
|
|
2369
|
+
interval,
|
|
2370
|
+
sourceUri,
|
|
2371
|
+
entityCollection,
|
|
2372
|
+
);
|
|
2373
|
+
processPacketData(
|
|
2374
|
+
HeightReference,
|
|
2375
|
+
corridor,
|
|
2376
|
+
"extrudedHeightReference",
|
|
2377
|
+
corridorData.extrudedHeightReference,
|
|
2378
|
+
interval,
|
|
2379
|
+
sourceUri,
|
|
2380
|
+
entityCollection,
|
|
2381
|
+
);
|
|
2382
|
+
processPacketData(
|
|
2383
|
+
CornerType,
|
|
2384
|
+
corridor,
|
|
2385
|
+
"cornerType",
|
|
2386
|
+
corridorData.cornerType,
|
|
2387
|
+
interval,
|
|
2388
|
+
sourceUri,
|
|
2389
|
+
entityCollection,
|
|
2390
|
+
);
|
|
2391
|
+
processPacketData(
|
|
2392
|
+
Number,
|
|
2393
|
+
corridor,
|
|
2394
|
+
"granularity",
|
|
2395
|
+
corridorData.granularity,
|
|
2396
|
+
interval,
|
|
2397
|
+
sourceUri,
|
|
2398
|
+
entityCollection,
|
|
2399
|
+
);
|
|
2400
|
+
processPacketData(
|
|
2401
|
+
Boolean,
|
|
2402
|
+
corridor,
|
|
2403
|
+
"fill",
|
|
2404
|
+
corridorData.fill,
|
|
2405
|
+
interval,
|
|
2406
|
+
sourceUri,
|
|
2407
|
+
entityCollection,
|
|
2408
|
+
);
|
|
2409
|
+
processMaterialPacketData(
|
|
2410
|
+
corridor,
|
|
2411
|
+
"material",
|
|
2412
|
+
corridorData.material,
|
|
2413
|
+
interval,
|
|
2414
|
+
sourceUri,
|
|
2415
|
+
entityCollection,
|
|
2416
|
+
);
|
|
2417
|
+
processPacketData(
|
|
2418
|
+
Boolean,
|
|
2419
|
+
corridor,
|
|
2420
|
+
"outline",
|
|
2421
|
+
corridorData.outline,
|
|
2422
|
+
interval,
|
|
2423
|
+
sourceUri,
|
|
2424
|
+
entityCollection,
|
|
2425
|
+
);
|
|
2426
|
+
processPacketData(
|
|
2427
|
+
Color,
|
|
2428
|
+
corridor,
|
|
2429
|
+
"outlineColor",
|
|
2430
|
+
corridorData.outlineColor,
|
|
2431
|
+
interval,
|
|
2432
|
+
sourceUri,
|
|
2433
|
+
entityCollection,
|
|
2434
|
+
);
|
|
2435
|
+
processPacketData(
|
|
2436
|
+
Number,
|
|
2437
|
+
corridor,
|
|
2438
|
+
"outlineWidth",
|
|
2439
|
+
corridorData.outlineWidth,
|
|
2440
|
+
interval,
|
|
2441
|
+
sourceUri,
|
|
2442
|
+
entityCollection,
|
|
2443
|
+
);
|
|
2444
|
+
processPacketData(
|
|
2445
|
+
ShadowMode,
|
|
2446
|
+
corridor,
|
|
2447
|
+
"shadows",
|
|
2448
|
+
corridorData.shadows,
|
|
2449
|
+
interval,
|
|
2450
|
+
sourceUri,
|
|
2451
|
+
entityCollection,
|
|
2452
|
+
);
|
|
2453
|
+
processPacketData(
|
|
2454
|
+
DistanceDisplayCondition,
|
|
2455
|
+
corridor,
|
|
2456
|
+
"distanceDisplayCondition",
|
|
2457
|
+
corridorData.distanceDisplayCondition,
|
|
2458
|
+
interval,
|
|
2459
|
+
sourceUri,
|
|
2460
|
+
entityCollection,
|
|
2461
|
+
);
|
|
2462
|
+
processPacketData(
|
|
2463
|
+
ClassificationType,
|
|
2464
|
+
corridor,
|
|
2465
|
+
"classificationType",
|
|
2466
|
+
corridorData.classificationType,
|
|
2467
|
+
interval,
|
|
2468
|
+
sourceUri,
|
|
2469
|
+
entityCollection,
|
|
2470
|
+
);
|
|
2471
|
+
processPacketData(
|
|
2472
|
+
Number,
|
|
2473
|
+
corridor,
|
|
2474
|
+
"zIndex",
|
|
2475
|
+
corridorData.zIndex,
|
|
2476
|
+
interval,
|
|
2477
|
+
sourceUri,
|
|
2478
|
+
entityCollection,
|
|
2479
|
+
);
|
|
2480
|
+
}
|
|
2481
|
+
|
|
2482
|
+
function processCylinder(entity, packet, entityCollection, sourceUri) {
|
|
2483
|
+
const cylinderData = packet.cylinder;
|
|
2484
|
+
if (!defined(cylinderData)) {
|
|
2485
|
+
return;
|
|
2486
|
+
}
|
|
2487
|
+
|
|
2488
|
+
const interval = intervalFromString(cylinderData.interval);
|
|
2489
|
+
let cylinder = entity.cylinder;
|
|
2490
|
+
if (!defined(cylinder)) {
|
|
2491
|
+
entity.cylinder = cylinder = new CylinderGraphics();
|
|
2492
|
+
}
|
|
2493
|
+
|
|
2494
|
+
processPacketData(
|
|
2495
|
+
Boolean,
|
|
2496
|
+
cylinder,
|
|
2497
|
+
"show",
|
|
2498
|
+
cylinderData.show,
|
|
2499
|
+
interval,
|
|
2500
|
+
sourceUri,
|
|
2501
|
+
entityCollection,
|
|
2502
|
+
);
|
|
2503
|
+
processPacketData(
|
|
2504
|
+
Number,
|
|
2505
|
+
cylinder,
|
|
2506
|
+
"length",
|
|
2507
|
+
cylinderData.length,
|
|
2508
|
+
interval,
|
|
2509
|
+
sourceUri,
|
|
2510
|
+
entityCollection,
|
|
2511
|
+
);
|
|
2512
|
+
processPacketData(
|
|
2513
|
+
Number,
|
|
2514
|
+
cylinder,
|
|
2515
|
+
"topRadius",
|
|
2516
|
+
cylinderData.topRadius,
|
|
2517
|
+
interval,
|
|
2518
|
+
sourceUri,
|
|
2519
|
+
entityCollection,
|
|
2520
|
+
);
|
|
2521
|
+
processPacketData(
|
|
2522
|
+
Number,
|
|
2523
|
+
cylinder,
|
|
2524
|
+
"bottomRadius",
|
|
2525
|
+
cylinderData.bottomRadius,
|
|
2526
|
+
interval,
|
|
2527
|
+
sourceUri,
|
|
2528
|
+
entityCollection,
|
|
2529
|
+
);
|
|
2530
|
+
processPacketData(
|
|
2531
|
+
HeightReference,
|
|
2532
|
+
cylinder,
|
|
2533
|
+
"heightReference",
|
|
2534
|
+
cylinderData.heightReference,
|
|
2535
|
+
interval,
|
|
2536
|
+
sourceUri,
|
|
2537
|
+
entityCollection,
|
|
2538
|
+
);
|
|
2539
|
+
processPacketData(
|
|
2540
|
+
Boolean,
|
|
2541
|
+
cylinder,
|
|
2542
|
+
"fill",
|
|
2543
|
+
cylinderData.fill,
|
|
2544
|
+
interval,
|
|
2545
|
+
sourceUri,
|
|
2546
|
+
entityCollection,
|
|
2547
|
+
);
|
|
2548
|
+
processMaterialPacketData(
|
|
2549
|
+
cylinder,
|
|
2550
|
+
"material",
|
|
2551
|
+
cylinderData.material,
|
|
2552
|
+
interval,
|
|
2553
|
+
sourceUri,
|
|
2554
|
+
entityCollection,
|
|
2555
|
+
);
|
|
2556
|
+
processPacketData(
|
|
2557
|
+
Boolean,
|
|
2558
|
+
cylinder,
|
|
2559
|
+
"outline",
|
|
2560
|
+
cylinderData.outline,
|
|
2561
|
+
interval,
|
|
2562
|
+
sourceUri,
|
|
2563
|
+
entityCollection,
|
|
2564
|
+
);
|
|
2565
|
+
processPacketData(
|
|
2566
|
+
Color,
|
|
2567
|
+
cylinder,
|
|
2568
|
+
"outlineColor",
|
|
2569
|
+
cylinderData.outlineColor,
|
|
2570
|
+
interval,
|
|
2571
|
+
sourceUri,
|
|
2572
|
+
entityCollection,
|
|
2573
|
+
);
|
|
2574
|
+
processPacketData(
|
|
2575
|
+
Number,
|
|
2576
|
+
cylinder,
|
|
2577
|
+
"outlineWidth",
|
|
2578
|
+
cylinderData.outlineWidth,
|
|
2579
|
+
interval,
|
|
2580
|
+
sourceUri,
|
|
2581
|
+
entityCollection,
|
|
2582
|
+
);
|
|
2583
|
+
processPacketData(
|
|
2584
|
+
Number,
|
|
2585
|
+
cylinder,
|
|
2586
|
+
"numberOfVerticalLines",
|
|
2587
|
+
cylinderData.numberOfVerticalLines,
|
|
2588
|
+
interval,
|
|
2589
|
+
sourceUri,
|
|
2590
|
+
entityCollection,
|
|
2591
|
+
);
|
|
2592
|
+
processPacketData(
|
|
2593
|
+
Number,
|
|
2594
|
+
cylinder,
|
|
2595
|
+
"slices",
|
|
2596
|
+
cylinderData.slices,
|
|
2597
|
+
interval,
|
|
2598
|
+
sourceUri,
|
|
2599
|
+
entityCollection,
|
|
2600
|
+
);
|
|
2601
|
+
processPacketData(
|
|
2602
|
+
ShadowMode,
|
|
2603
|
+
cylinder,
|
|
2604
|
+
"shadows",
|
|
2605
|
+
cylinderData.shadows,
|
|
2606
|
+
interval,
|
|
2607
|
+
sourceUri,
|
|
2608
|
+
entityCollection,
|
|
2609
|
+
);
|
|
2610
|
+
processPacketData(
|
|
2611
|
+
DistanceDisplayCondition,
|
|
2612
|
+
cylinder,
|
|
2613
|
+
"distanceDisplayCondition",
|
|
2614
|
+
cylinderData.distanceDisplayCondition,
|
|
2615
|
+
interval,
|
|
2616
|
+
sourceUri,
|
|
2617
|
+
entityCollection,
|
|
2618
|
+
);
|
|
2619
|
+
}
|
|
2620
|
+
|
|
2621
|
+
function processDocument(packet, dataSource) {
|
|
2622
|
+
const version = packet.version;
|
|
2623
|
+
if (defined(version)) {
|
|
2624
|
+
if (typeof version === "string") {
|
|
2625
|
+
const tokens = version.split(".");
|
|
2626
|
+
if (tokens.length === 2) {
|
|
2627
|
+
if (tokens[0] !== "1") {
|
|
2628
|
+
throw new RuntimeError("Cesium only supports CZML version 1.");
|
|
2629
|
+
}
|
|
2630
|
+
dataSource._version = version;
|
|
2631
|
+
}
|
|
2632
|
+
}
|
|
2633
|
+
}
|
|
2634
|
+
|
|
2635
|
+
if (!defined(dataSource._version)) {
|
|
2636
|
+
throw new RuntimeError(
|
|
2637
|
+
"CZML version information invalid. It is expected to be a property on the document object in the <Major>.<Minor> version format.",
|
|
2638
|
+
);
|
|
2639
|
+
}
|
|
2640
|
+
|
|
2641
|
+
const documentPacket = dataSource._documentPacket;
|
|
2642
|
+
|
|
2643
|
+
if (defined(packet.name)) {
|
|
2644
|
+
documentPacket.name = packet.name;
|
|
2645
|
+
}
|
|
2646
|
+
|
|
2647
|
+
const clockPacket = packet.clock;
|
|
2648
|
+
if (defined(clockPacket)) {
|
|
2649
|
+
const clock = documentPacket.clock;
|
|
2650
|
+
if (!defined(clock)) {
|
|
2651
|
+
documentPacket.clock = {
|
|
2652
|
+
interval: clockPacket.interval,
|
|
2653
|
+
currentTime: clockPacket.currentTime,
|
|
2654
|
+
range: clockPacket.range,
|
|
2655
|
+
step: clockPacket.step,
|
|
2656
|
+
multiplier: clockPacket.multiplier,
|
|
2657
|
+
};
|
|
2658
|
+
} else {
|
|
2659
|
+
clock.interval = clockPacket.interval ?? clock.interval;
|
|
2660
|
+
clock.currentTime = clockPacket.currentTime ?? clock.currentTime;
|
|
2661
|
+
clock.range = clockPacket.range ?? clock.range;
|
|
2662
|
+
clock.step = clockPacket.step ?? clock.step;
|
|
2663
|
+
clock.multiplier = clockPacket.multiplier ?? clock.multiplier;
|
|
2664
|
+
}
|
|
2665
|
+
}
|
|
2666
|
+
}
|
|
2667
|
+
|
|
2668
|
+
function processEllipse(entity, packet, entityCollection, sourceUri) {
|
|
2669
|
+
const ellipseData = packet.ellipse;
|
|
2670
|
+
if (!defined(ellipseData)) {
|
|
2671
|
+
return;
|
|
2672
|
+
}
|
|
2673
|
+
|
|
2674
|
+
const interval = intervalFromString(ellipseData.interval);
|
|
2675
|
+
let ellipse = entity.ellipse;
|
|
2676
|
+
if (!defined(ellipse)) {
|
|
2677
|
+
entity.ellipse = ellipse = new EllipseGraphics();
|
|
2678
|
+
}
|
|
2679
|
+
|
|
2680
|
+
processPacketData(
|
|
2681
|
+
Boolean,
|
|
2682
|
+
ellipse,
|
|
2683
|
+
"show",
|
|
2684
|
+
ellipseData.show,
|
|
2685
|
+
interval,
|
|
2686
|
+
sourceUri,
|
|
2687
|
+
entityCollection,
|
|
2688
|
+
);
|
|
2689
|
+
processPacketData(
|
|
2690
|
+
Number,
|
|
2691
|
+
ellipse,
|
|
2692
|
+
"semiMajorAxis",
|
|
2693
|
+
ellipseData.semiMajorAxis,
|
|
2694
|
+
interval,
|
|
2695
|
+
sourceUri,
|
|
2696
|
+
entityCollection,
|
|
2697
|
+
);
|
|
2698
|
+
processPacketData(
|
|
2699
|
+
Number,
|
|
2700
|
+
ellipse,
|
|
2701
|
+
"semiMinorAxis",
|
|
2702
|
+
ellipseData.semiMinorAxis,
|
|
2703
|
+
interval,
|
|
2704
|
+
sourceUri,
|
|
2705
|
+
entityCollection,
|
|
2706
|
+
);
|
|
2707
|
+
processPacketData(
|
|
2708
|
+
Number,
|
|
2709
|
+
ellipse,
|
|
2710
|
+
"height",
|
|
2711
|
+
ellipseData.height,
|
|
2712
|
+
interval,
|
|
2713
|
+
sourceUri,
|
|
2714
|
+
entityCollection,
|
|
2715
|
+
);
|
|
2716
|
+
processPacketData(
|
|
2717
|
+
HeightReference,
|
|
2718
|
+
ellipse,
|
|
2719
|
+
"heightReference",
|
|
2720
|
+
ellipseData.heightReference,
|
|
2721
|
+
interval,
|
|
2722
|
+
sourceUri,
|
|
2723
|
+
entityCollection,
|
|
2724
|
+
);
|
|
2725
|
+
processPacketData(
|
|
2726
|
+
Number,
|
|
2727
|
+
ellipse,
|
|
2728
|
+
"extrudedHeight",
|
|
2729
|
+
ellipseData.extrudedHeight,
|
|
2730
|
+
interval,
|
|
2731
|
+
sourceUri,
|
|
2732
|
+
entityCollection,
|
|
2733
|
+
);
|
|
2734
|
+
processPacketData(
|
|
2735
|
+
HeightReference,
|
|
2736
|
+
ellipse,
|
|
2737
|
+
"extrudedHeightReference",
|
|
2738
|
+
ellipseData.extrudedHeightReference,
|
|
2739
|
+
interval,
|
|
2740
|
+
sourceUri,
|
|
2741
|
+
entityCollection,
|
|
2742
|
+
);
|
|
2743
|
+
processPacketData(
|
|
2744
|
+
Rotation,
|
|
2745
|
+
ellipse,
|
|
2746
|
+
"rotation",
|
|
2747
|
+
ellipseData.rotation,
|
|
2748
|
+
interval,
|
|
2749
|
+
sourceUri,
|
|
2750
|
+
entityCollection,
|
|
2751
|
+
);
|
|
2752
|
+
processPacketData(
|
|
2753
|
+
Rotation,
|
|
2754
|
+
ellipse,
|
|
2755
|
+
"stRotation",
|
|
2756
|
+
ellipseData.stRotation,
|
|
2757
|
+
interval,
|
|
2758
|
+
sourceUri,
|
|
2759
|
+
entityCollection,
|
|
2760
|
+
);
|
|
2761
|
+
processPacketData(
|
|
2762
|
+
Number,
|
|
2763
|
+
ellipse,
|
|
2764
|
+
"granularity",
|
|
2765
|
+
ellipseData.granularity,
|
|
2766
|
+
interval,
|
|
2767
|
+
sourceUri,
|
|
2768
|
+
entityCollection,
|
|
2769
|
+
);
|
|
2770
|
+
processPacketData(
|
|
2771
|
+
Boolean,
|
|
2772
|
+
ellipse,
|
|
2773
|
+
"fill",
|
|
2774
|
+
ellipseData.fill,
|
|
2775
|
+
interval,
|
|
2776
|
+
sourceUri,
|
|
2777
|
+
entityCollection,
|
|
2778
|
+
);
|
|
2779
|
+
processMaterialPacketData(
|
|
2780
|
+
ellipse,
|
|
2781
|
+
"material",
|
|
2782
|
+
ellipseData.material,
|
|
2783
|
+
interval,
|
|
2784
|
+
sourceUri,
|
|
2785
|
+
entityCollection,
|
|
2786
|
+
);
|
|
2787
|
+
processPacketData(
|
|
2788
|
+
Boolean,
|
|
2789
|
+
ellipse,
|
|
2790
|
+
"outline",
|
|
2791
|
+
ellipseData.outline,
|
|
2792
|
+
interval,
|
|
2793
|
+
sourceUri,
|
|
2794
|
+
entityCollection,
|
|
2795
|
+
);
|
|
2796
|
+
processPacketData(
|
|
2797
|
+
Color,
|
|
2798
|
+
ellipse,
|
|
2799
|
+
"outlineColor",
|
|
2800
|
+
ellipseData.outlineColor,
|
|
2801
|
+
interval,
|
|
2802
|
+
sourceUri,
|
|
2803
|
+
entityCollection,
|
|
2804
|
+
);
|
|
2805
|
+
processPacketData(
|
|
2806
|
+
Number,
|
|
2807
|
+
ellipse,
|
|
2808
|
+
"outlineWidth",
|
|
2809
|
+
ellipseData.outlineWidth,
|
|
2810
|
+
interval,
|
|
2811
|
+
sourceUri,
|
|
2812
|
+
entityCollection,
|
|
2813
|
+
);
|
|
2814
|
+
processPacketData(
|
|
2815
|
+
Number,
|
|
2816
|
+
ellipse,
|
|
2817
|
+
"numberOfVerticalLines",
|
|
2818
|
+
ellipseData.numberOfVerticalLines,
|
|
2819
|
+
interval,
|
|
2820
|
+
sourceUri,
|
|
2821
|
+
entityCollection,
|
|
2822
|
+
);
|
|
2823
|
+
processPacketData(
|
|
2824
|
+
ShadowMode,
|
|
2825
|
+
ellipse,
|
|
2826
|
+
"shadows",
|
|
2827
|
+
ellipseData.shadows,
|
|
2828
|
+
interval,
|
|
2829
|
+
sourceUri,
|
|
2830
|
+
entityCollection,
|
|
2831
|
+
);
|
|
2832
|
+
processPacketData(
|
|
2833
|
+
DistanceDisplayCondition,
|
|
2834
|
+
ellipse,
|
|
2835
|
+
"distanceDisplayCondition",
|
|
2836
|
+
ellipseData.distanceDisplayCondition,
|
|
2837
|
+
interval,
|
|
2838
|
+
sourceUri,
|
|
2839
|
+
entityCollection,
|
|
2840
|
+
);
|
|
2841
|
+
processPacketData(
|
|
2842
|
+
ClassificationType,
|
|
2843
|
+
ellipse,
|
|
2844
|
+
"classificationType",
|
|
2845
|
+
ellipseData.classificationType,
|
|
2846
|
+
interval,
|
|
2847
|
+
sourceUri,
|
|
2848
|
+
entityCollection,
|
|
2849
|
+
);
|
|
2850
|
+
processPacketData(
|
|
2851
|
+
Number,
|
|
2852
|
+
ellipse,
|
|
2853
|
+
"zIndex",
|
|
2854
|
+
ellipseData.zIndex,
|
|
2855
|
+
interval,
|
|
2856
|
+
sourceUri,
|
|
2857
|
+
entityCollection,
|
|
2858
|
+
);
|
|
2859
|
+
}
|
|
2860
|
+
|
|
2861
|
+
function processEllipsoid(entity, packet, entityCollection, sourceUri) {
|
|
2862
|
+
const ellipsoidData = packet.ellipsoid;
|
|
2863
|
+
if (!defined(ellipsoidData)) {
|
|
2864
|
+
return;
|
|
2865
|
+
}
|
|
2866
|
+
|
|
2867
|
+
const interval = intervalFromString(ellipsoidData.interval);
|
|
2868
|
+
let ellipsoid = entity.ellipsoid;
|
|
2869
|
+
if (!defined(ellipsoid)) {
|
|
2870
|
+
entity.ellipsoid = ellipsoid = new EllipsoidGraphics();
|
|
2871
|
+
}
|
|
2872
|
+
|
|
2873
|
+
processPacketData(
|
|
2874
|
+
Boolean,
|
|
2875
|
+
ellipsoid,
|
|
2876
|
+
"show",
|
|
2877
|
+
ellipsoidData.show,
|
|
2878
|
+
interval,
|
|
2879
|
+
sourceUri,
|
|
2880
|
+
entityCollection,
|
|
2881
|
+
);
|
|
2882
|
+
processPacketData(
|
|
2883
|
+
Cartesian3,
|
|
2884
|
+
ellipsoid,
|
|
2885
|
+
"radii",
|
|
2886
|
+
ellipsoidData.radii,
|
|
2887
|
+
interval,
|
|
2888
|
+
sourceUri,
|
|
2889
|
+
entityCollection,
|
|
2890
|
+
);
|
|
2891
|
+
processPacketData(
|
|
2892
|
+
Cartesian3,
|
|
2893
|
+
ellipsoid,
|
|
2894
|
+
"innerRadii",
|
|
2895
|
+
ellipsoidData.innerRadii,
|
|
2896
|
+
interval,
|
|
2897
|
+
sourceUri,
|
|
2898
|
+
entityCollection,
|
|
2899
|
+
);
|
|
2900
|
+
processPacketData(
|
|
2901
|
+
Number,
|
|
2902
|
+
ellipsoid,
|
|
2903
|
+
"minimumClock",
|
|
2904
|
+
ellipsoidData.minimumClock,
|
|
2905
|
+
interval,
|
|
2906
|
+
sourceUri,
|
|
2907
|
+
entityCollection,
|
|
2908
|
+
);
|
|
2909
|
+
processPacketData(
|
|
2910
|
+
Number,
|
|
2911
|
+
ellipsoid,
|
|
2912
|
+
"maximumClock",
|
|
2913
|
+
ellipsoidData.maximumClock,
|
|
2914
|
+
interval,
|
|
2915
|
+
sourceUri,
|
|
2916
|
+
entityCollection,
|
|
2917
|
+
);
|
|
2918
|
+
processPacketData(
|
|
2919
|
+
Number,
|
|
2920
|
+
ellipsoid,
|
|
2921
|
+
"minimumCone",
|
|
2922
|
+
ellipsoidData.minimumCone,
|
|
2923
|
+
interval,
|
|
2924
|
+
sourceUri,
|
|
2925
|
+
entityCollection,
|
|
2926
|
+
);
|
|
2927
|
+
processPacketData(
|
|
2928
|
+
Number,
|
|
2929
|
+
ellipsoid,
|
|
2930
|
+
"maximumCone",
|
|
2931
|
+
ellipsoidData.maximumCone,
|
|
2932
|
+
interval,
|
|
2933
|
+
sourceUri,
|
|
2934
|
+
entityCollection,
|
|
2935
|
+
);
|
|
2936
|
+
processPacketData(
|
|
2937
|
+
HeightReference,
|
|
2938
|
+
ellipsoid,
|
|
2939
|
+
"heightReference",
|
|
2940
|
+
ellipsoidData.heightReference,
|
|
2941
|
+
interval,
|
|
2942
|
+
sourceUri,
|
|
2943
|
+
entityCollection,
|
|
2944
|
+
);
|
|
2945
|
+
processPacketData(
|
|
2946
|
+
Boolean,
|
|
2947
|
+
ellipsoid,
|
|
2948
|
+
"fill",
|
|
2949
|
+
ellipsoidData.fill,
|
|
2950
|
+
interval,
|
|
2951
|
+
sourceUri,
|
|
2952
|
+
entityCollection,
|
|
2953
|
+
);
|
|
2954
|
+
processMaterialPacketData(
|
|
2955
|
+
ellipsoid,
|
|
2956
|
+
"material",
|
|
2957
|
+
ellipsoidData.material,
|
|
2958
|
+
interval,
|
|
2959
|
+
sourceUri,
|
|
2960
|
+
entityCollection,
|
|
2961
|
+
);
|
|
2962
|
+
processPacketData(
|
|
2963
|
+
Boolean,
|
|
2964
|
+
ellipsoid,
|
|
2965
|
+
"outline",
|
|
2966
|
+
ellipsoidData.outline,
|
|
2967
|
+
interval,
|
|
2968
|
+
sourceUri,
|
|
2969
|
+
entityCollection,
|
|
2970
|
+
);
|
|
2971
|
+
processPacketData(
|
|
2972
|
+
Color,
|
|
2973
|
+
ellipsoid,
|
|
2974
|
+
"outlineColor",
|
|
2975
|
+
ellipsoidData.outlineColor,
|
|
2976
|
+
interval,
|
|
2977
|
+
sourceUri,
|
|
2978
|
+
entityCollection,
|
|
2979
|
+
);
|
|
2980
|
+
processPacketData(
|
|
2981
|
+
Number,
|
|
2982
|
+
ellipsoid,
|
|
2983
|
+
"outlineWidth",
|
|
2984
|
+
ellipsoidData.outlineWidth,
|
|
2985
|
+
interval,
|
|
2986
|
+
sourceUri,
|
|
2987
|
+
entityCollection,
|
|
2988
|
+
);
|
|
2989
|
+
processPacketData(
|
|
2990
|
+
Number,
|
|
2991
|
+
ellipsoid,
|
|
2992
|
+
"stackPartitions",
|
|
2993
|
+
ellipsoidData.stackPartitions,
|
|
2994
|
+
interval,
|
|
2995
|
+
sourceUri,
|
|
2996
|
+
entityCollection,
|
|
2997
|
+
);
|
|
2998
|
+
processPacketData(
|
|
2999
|
+
Number,
|
|
3000
|
+
ellipsoid,
|
|
3001
|
+
"slicePartitions",
|
|
3002
|
+
ellipsoidData.slicePartitions,
|
|
3003
|
+
interval,
|
|
3004
|
+
sourceUri,
|
|
3005
|
+
entityCollection,
|
|
3006
|
+
);
|
|
3007
|
+
processPacketData(
|
|
3008
|
+
Number,
|
|
3009
|
+
ellipsoid,
|
|
3010
|
+
"subdivisions",
|
|
3011
|
+
ellipsoidData.subdivisions,
|
|
3012
|
+
interval,
|
|
3013
|
+
sourceUri,
|
|
3014
|
+
entityCollection,
|
|
3015
|
+
);
|
|
3016
|
+
processPacketData(
|
|
3017
|
+
ShadowMode,
|
|
3018
|
+
ellipsoid,
|
|
3019
|
+
"shadows",
|
|
3020
|
+
ellipsoidData.shadows,
|
|
3021
|
+
interval,
|
|
3022
|
+
sourceUri,
|
|
3023
|
+
entityCollection,
|
|
3024
|
+
);
|
|
3025
|
+
processPacketData(
|
|
3026
|
+
DistanceDisplayCondition,
|
|
3027
|
+
ellipsoid,
|
|
3028
|
+
"distanceDisplayCondition",
|
|
3029
|
+
ellipsoidData.distanceDisplayCondition,
|
|
3030
|
+
interval,
|
|
3031
|
+
sourceUri,
|
|
3032
|
+
entityCollection,
|
|
3033
|
+
);
|
|
3034
|
+
}
|
|
3035
|
+
|
|
3036
|
+
function processLabel(entity, packet, entityCollection, sourceUri) {
|
|
3037
|
+
const labelData = packet.label;
|
|
3038
|
+
if (!defined(labelData)) {
|
|
3039
|
+
return;
|
|
3040
|
+
}
|
|
3041
|
+
|
|
3042
|
+
const interval = intervalFromString(labelData.interval);
|
|
3043
|
+
let label = entity.label;
|
|
3044
|
+
if (!defined(label)) {
|
|
3045
|
+
entity.label = label = new LabelGraphics();
|
|
3046
|
+
}
|
|
3047
|
+
|
|
3048
|
+
processPacketData(
|
|
3049
|
+
Boolean,
|
|
3050
|
+
label,
|
|
3051
|
+
"show",
|
|
3052
|
+
labelData.show,
|
|
3053
|
+
interval,
|
|
3054
|
+
sourceUri,
|
|
3055
|
+
entityCollection,
|
|
3056
|
+
);
|
|
3057
|
+
processPacketData(
|
|
3058
|
+
String,
|
|
3059
|
+
label,
|
|
3060
|
+
"text",
|
|
3061
|
+
labelData.text,
|
|
3062
|
+
interval,
|
|
3063
|
+
sourceUri,
|
|
3064
|
+
entityCollection,
|
|
3065
|
+
);
|
|
3066
|
+
processPacketData(
|
|
3067
|
+
String,
|
|
3068
|
+
label,
|
|
3069
|
+
"font",
|
|
3070
|
+
labelData.font,
|
|
3071
|
+
interval,
|
|
3072
|
+
sourceUri,
|
|
3073
|
+
entityCollection,
|
|
3074
|
+
);
|
|
3075
|
+
processPacketData(
|
|
3076
|
+
LabelStyle,
|
|
3077
|
+
label,
|
|
3078
|
+
"style",
|
|
3079
|
+
labelData.style,
|
|
3080
|
+
interval,
|
|
3081
|
+
sourceUri,
|
|
3082
|
+
entityCollection,
|
|
3083
|
+
);
|
|
3084
|
+
processPacketData(
|
|
3085
|
+
Number,
|
|
3086
|
+
label,
|
|
3087
|
+
"scale",
|
|
3088
|
+
labelData.scale,
|
|
3089
|
+
interval,
|
|
3090
|
+
sourceUri,
|
|
3091
|
+
entityCollection,
|
|
3092
|
+
);
|
|
3093
|
+
processPacketData(
|
|
3094
|
+
Boolean,
|
|
3095
|
+
label,
|
|
3096
|
+
"showBackground",
|
|
3097
|
+
labelData.showBackground,
|
|
3098
|
+
interval,
|
|
3099
|
+
sourceUri,
|
|
3100
|
+
entityCollection,
|
|
3101
|
+
);
|
|
3102
|
+
processPacketData(
|
|
3103
|
+
Color,
|
|
3104
|
+
label,
|
|
3105
|
+
"backgroundColor",
|
|
3106
|
+
labelData.backgroundColor,
|
|
3107
|
+
interval,
|
|
3108
|
+
sourceUri,
|
|
3109
|
+
entityCollection,
|
|
3110
|
+
);
|
|
3111
|
+
processPacketData(
|
|
3112
|
+
Cartesian2,
|
|
3113
|
+
label,
|
|
3114
|
+
"backgroundPadding",
|
|
3115
|
+
labelData.backgroundPadding,
|
|
3116
|
+
interval,
|
|
3117
|
+
sourceUri,
|
|
3118
|
+
entityCollection,
|
|
3119
|
+
);
|
|
3120
|
+
processPacketData(
|
|
3121
|
+
Cartesian2,
|
|
3122
|
+
label,
|
|
3123
|
+
"pixelOffset",
|
|
3124
|
+
labelData.pixelOffset,
|
|
3125
|
+
interval,
|
|
3126
|
+
sourceUri,
|
|
3127
|
+
entityCollection,
|
|
3128
|
+
);
|
|
3129
|
+
processPacketData(
|
|
3130
|
+
Cartesian3,
|
|
3131
|
+
label,
|
|
3132
|
+
"eyeOffset",
|
|
3133
|
+
labelData.eyeOffset,
|
|
3134
|
+
interval,
|
|
3135
|
+
sourceUri,
|
|
3136
|
+
entityCollection,
|
|
3137
|
+
);
|
|
3138
|
+
processPacketData(
|
|
3139
|
+
HorizontalOrigin,
|
|
3140
|
+
label,
|
|
3141
|
+
"horizontalOrigin",
|
|
3142
|
+
labelData.horizontalOrigin,
|
|
3143
|
+
interval,
|
|
3144
|
+
sourceUri,
|
|
3145
|
+
entityCollection,
|
|
3146
|
+
);
|
|
3147
|
+
processPacketData(
|
|
3148
|
+
VerticalOrigin,
|
|
3149
|
+
label,
|
|
3150
|
+
"verticalOrigin",
|
|
3151
|
+
labelData.verticalOrigin,
|
|
3152
|
+
interval,
|
|
3153
|
+
sourceUri,
|
|
3154
|
+
entityCollection,
|
|
3155
|
+
);
|
|
3156
|
+
processPacketData(
|
|
3157
|
+
HeightReference,
|
|
3158
|
+
label,
|
|
3159
|
+
"heightReference",
|
|
3160
|
+
labelData.heightReference,
|
|
3161
|
+
interval,
|
|
3162
|
+
sourceUri,
|
|
3163
|
+
entityCollection,
|
|
3164
|
+
);
|
|
3165
|
+
processPacketData(
|
|
3166
|
+
Color,
|
|
3167
|
+
label,
|
|
3168
|
+
"fillColor",
|
|
3169
|
+
labelData.fillColor,
|
|
3170
|
+
interval,
|
|
3171
|
+
sourceUri,
|
|
3172
|
+
entityCollection,
|
|
3173
|
+
);
|
|
3174
|
+
processPacketData(
|
|
3175
|
+
Color,
|
|
3176
|
+
label,
|
|
3177
|
+
"outlineColor",
|
|
3178
|
+
labelData.outlineColor,
|
|
3179
|
+
interval,
|
|
3180
|
+
sourceUri,
|
|
3181
|
+
entityCollection,
|
|
3182
|
+
);
|
|
3183
|
+
processPacketData(
|
|
3184
|
+
Number,
|
|
3185
|
+
label,
|
|
3186
|
+
"outlineWidth",
|
|
3187
|
+
labelData.outlineWidth,
|
|
3188
|
+
interval,
|
|
3189
|
+
sourceUri,
|
|
3190
|
+
entityCollection,
|
|
3191
|
+
);
|
|
3192
|
+
processPacketData(
|
|
3193
|
+
NearFarScalar,
|
|
3194
|
+
label,
|
|
3195
|
+
"translucencyByDistance",
|
|
3196
|
+
labelData.translucencyByDistance,
|
|
3197
|
+
interval,
|
|
3198
|
+
sourceUri,
|
|
3199
|
+
entityCollection,
|
|
3200
|
+
);
|
|
3201
|
+
processPacketData(
|
|
3202
|
+
NearFarScalar,
|
|
3203
|
+
label,
|
|
3204
|
+
"pixelOffsetScaleByDistance",
|
|
3205
|
+
labelData.pixelOffsetScaleByDistance,
|
|
3206
|
+
interval,
|
|
3207
|
+
sourceUri,
|
|
3208
|
+
entityCollection,
|
|
3209
|
+
);
|
|
3210
|
+
processPacketData(
|
|
3211
|
+
NearFarScalar,
|
|
3212
|
+
label,
|
|
3213
|
+
"scaleByDistance",
|
|
3214
|
+
labelData.scaleByDistance,
|
|
3215
|
+
interval,
|
|
3216
|
+
sourceUri,
|
|
3217
|
+
entityCollection,
|
|
3218
|
+
);
|
|
3219
|
+
processPacketData(
|
|
3220
|
+
DistanceDisplayCondition,
|
|
3221
|
+
label,
|
|
3222
|
+
"distanceDisplayCondition",
|
|
3223
|
+
labelData.distanceDisplayCondition,
|
|
3224
|
+
interval,
|
|
3225
|
+
sourceUri,
|
|
3226
|
+
entityCollection,
|
|
3227
|
+
);
|
|
3228
|
+
processPacketData(
|
|
3229
|
+
Number,
|
|
3230
|
+
label,
|
|
3231
|
+
"disableDepthTestDistance",
|
|
3232
|
+
labelData.disableDepthTestDistance,
|
|
3233
|
+
interval,
|
|
3234
|
+
sourceUri,
|
|
3235
|
+
entityCollection,
|
|
3236
|
+
);
|
|
3237
|
+
}
|
|
3238
|
+
|
|
3239
|
+
function processModel(entity, packet, entityCollection, sourceUri) {
|
|
3240
|
+
const modelData = packet.model;
|
|
3241
|
+
if (!defined(modelData)) {
|
|
3242
|
+
return;
|
|
3243
|
+
}
|
|
3244
|
+
|
|
3245
|
+
const interval = intervalFromString(modelData.interval);
|
|
3246
|
+
let model = entity.model;
|
|
3247
|
+
if (!defined(model)) {
|
|
3248
|
+
entity.model = model = new ModelGraphics();
|
|
3249
|
+
}
|
|
3250
|
+
|
|
3251
|
+
processPacketData(
|
|
3252
|
+
Boolean,
|
|
3253
|
+
model,
|
|
3254
|
+
"show",
|
|
3255
|
+
modelData.show,
|
|
3256
|
+
interval,
|
|
3257
|
+
sourceUri,
|
|
3258
|
+
entityCollection,
|
|
3259
|
+
);
|
|
3260
|
+
processPacketData(
|
|
3261
|
+
Uri,
|
|
3262
|
+
model,
|
|
3263
|
+
"uri",
|
|
3264
|
+
modelData.gltf,
|
|
3265
|
+
interval,
|
|
3266
|
+
sourceUri,
|
|
3267
|
+
entityCollection,
|
|
3268
|
+
);
|
|
3269
|
+
processPacketData(
|
|
3270
|
+
Number,
|
|
3271
|
+
model,
|
|
3272
|
+
"scale",
|
|
3273
|
+
modelData.scale,
|
|
3274
|
+
interval,
|
|
3275
|
+
sourceUri,
|
|
3276
|
+
entityCollection,
|
|
3277
|
+
);
|
|
3278
|
+
processPacketData(
|
|
3279
|
+
Number,
|
|
3280
|
+
model,
|
|
3281
|
+
"minimumPixelSize",
|
|
3282
|
+
modelData.minimumPixelSize,
|
|
3283
|
+
interval,
|
|
3284
|
+
sourceUri,
|
|
3285
|
+
entityCollection,
|
|
3286
|
+
);
|
|
3287
|
+
processPacketData(
|
|
3288
|
+
Number,
|
|
3289
|
+
model,
|
|
3290
|
+
"maximumScale",
|
|
3291
|
+
modelData.maximumScale,
|
|
3292
|
+
interval,
|
|
3293
|
+
sourceUri,
|
|
3294
|
+
entityCollection,
|
|
3295
|
+
);
|
|
3296
|
+
processPacketData(
|
|
3297
|
+
Boolean,
|
|
3298
|
+
model,
|
|
3299
|
+
"incrementallyLoadTextures",
|
|
3300
|
+
modelData.incrementallyLoadTextures,
|
|
3301
|
+
interval,
|
|
3302
|
+
sourceUri,
|
|
3303
|
+
entityCollection,
|
|
3304
|
+
);
|
|
3305
|
+
processPacketData(
|
|
3306
|
+
Boolean,
|
|
3307
|
+
model,
|
|
3308
|
+
"runAnimations",
|
|
3309
|
+
modelData.runAnimations,
|
|
3310
|
+
interval,
|
|
3311
|
+
sourceUri,
|
|
3312
|
+
entityCollection,
|
|
3313
|
+
);
|
|
3314
|
+
processPacketData(
|
|
3315
|
+
Boolean,
|
|
3316
|
+
model,
|
|
3317
|
+
"clampAnimations",
|
|
3318
|
+
modelData.clampAnimations,
|
|
3319
|
+
interval,
|
|
3320
|
+
sourceUri,
|
|
3321
|
+
entityCollection,
|
|
3322
|
+
);
|
|
3323
|
+
processPacketData(
|
|
3324
|
+
ShadowMode,
|
|
3325
|
+
model,
|
|
3326
|
+
"shadows",
|
|
3327
|
+
modelData.shadows,
|
|
3328
|
+
interval,
|
|
3329
|
+
sourceUri,
|
|
3330
|
+
entityCollection,
|
|
3331
|
+
);
|
|
3332
|
+
processPacketData(
|
|
3333
|
+
HeightReference,
|
|
3334
|
+
model,
|
|
3335
|
+
"heightReference",
|
|
3336
|
+
modelData.heightReference,
|
|
3337
|
+
interval,
|
|
3338
|
+
sourceUri,
|
|
3339
|
+
entityCollection,
|
|
3340
|
+
);
|
|
3341
|
+
processPacketData(
|
|
3342
|
+
Color,
|
|
3343
|
+
model,
|
|
3344
|
+
"silhouetteColor",
|
|
3345
|
+
modelData.silhouetteColor,
|
|
3346
|
+
interval,
|
|
3347
|
+
sourceUri,
|
|
3348
|
+
entityCollection,
|
|
3349
|
+
);
|
|
3350
|
+
processPacketData(
|
|
3351
|
+
Number,
|
|
3352
|
+
model,
|
|
3353
|
+
"silhouetteSize",
|
|
3354
|
+
modelData.silhouetteSize,
|
|
3355
|
+
interval,
|
|
3356
|
+
sourceUri,
|
|
3357
|
+
entityCollection,
|
|
3358
|
+
);
|
|
3359
|
+
processPacketData(
|
|
3360
|
+
Color,
|
|
3361
|
+
model,
|
|
3362
|
+
"color",
|
|
3363
|
+
modelData.color,
|
|
3364
|
+
interval,
|
|
3365
|
+
sourceUri,
|
|
3366
|
+
entityCollection,
|
|
3367
|
+
);
|
|
3368
|
+
processPacketData(
|
|
3369
|
+
ColorBlendMode,
|
|
3370
|
+
model,
|
|
3371
|
+
"colorBlendMode",
|
|
3372
|
+
modelData.colorBlendMode,
|
|
3373
|
+
interval,
|
|
3374
|
+
sourceUri,
|
|
3375
|
+
entityCollection,
|
|
3376
|
+
);
|
|
3377
|
+
processPacketData(
|
|
3378
|
+
Number,
|
|
3379
|
+
model,
|
|
3380
|
+
"colorBlendAmount",
|
|
3381
|
+
modelData.colorBlendAmount,
|
|
3382
|
+
interval,
|
|
3383
|
+
sourceUri,
|
|
3384
|
+
entityCollection,
|
|
3385
|
+
);
|
|
3386
|
+
processPacketData(
|
|
3387
|
+
DistanceDisplayCondition,
|
|
3388
|
+
model,
|
|
3389
|
+
"distanceDisplayCondition",
|
|
3390
|
+
modelData.distanceDisplayCondition,
|
|
3391
|
+
interval,
|
|
3392
|
+
sourceUri,
|
|
3393
|
+
entityCollection,
|
|
3394
|
+
);
|
|
3395
|
+
|
|
3396
|
+
let i, len;
|
|
3397
|
+
const nodeTransformationsData = modelData.nodeTransformations;
|
|
3398
|
+
if (defined(nodeTransformationsData)) {
|
|
3399
|
+
if (Array.isArray(nodeTransformationsData)) {
|
|
3400
|
+
for (i = 0, len = nodeTransformationsData.length; i < len; ++i) {
|
|
3401
|
+
processNodeTransformations(
|
|
3402
|
+
model,
|
|
3403
|
+
nodeTransformationsData[i],
|
|
3404
|
+
interval,
|
|
3405
|
+
sourceUri,
|
|
3406
|
+
entityCollection,
|
|
3407
|
+
);
|
|
3408
|
+
}
|
|
3409
|
+
} else {
|
|
3410
|
+
processNodeTransformations(
|
|
3411
|
+
model,
|
|
3412
|
+
nodeTransformationsData,
|
|
3413
|
+
interval,
|
|
3414
|
+
sourceUri,
|
|
3415
|
+
entityCollection,
|
|
3416
|
+
);
|
|
3417
|
+
}
|
|
3418
|
+
}
|
|
3419
|
+
|
|
3420
|
+
const articulationsData = modelData.articulations;
|
|
3421
|
+
if (defined(articulationsData)) {
|
|
3422
|
+
if (Array.isArray(articulationsData)) {
|
|
3423
|
+
for (i = 0, len = articulationsData.length; i < len; ++i) {
|
|
3424
|
+
processArticulations(
|
|
3425
|
+
model,
|
|
3426
|
+
articulationsData[i],
|
|
3427
|
+
interval,
|
|
3428
|
+
sourceUri,
|
|
3429
|
+
entityCollection,
|
|
3430
|
+
);
|
|
3431
|
+
}
|
|
3432
|
+
} else {
|
|
3433
|
+
processArticulations(
|
|
3434
|
+
model,
|
|
3435
|
+
articulationsData,
|
|
3436
|
+
interval,
|
|
3437
|
+
sourceUri,
|
|
3438
|
+
entityCollection,
|
|
3439
|
+
);
|
|
3440
|
+
}
|
|
3441
|
+
}
|
|
3442
|
+
}
|
|
3443
|
+
|
|
3444
|
+
function processNodeTransformations(
|
|
3445
|
+
model,
|
|
3446
|
+
nodeTransformationsData,
|
|
3447
|
+
constrainedInterval,
|
|
3448
|
+
sourceUri,
|
|
3449
|
+
entityCollection,
|
|
3450
|
+
) {
|
|
3451
|
+
let combinedInterval = intervalFromString(nodeTransformationsData.interval);
|
|
3452
|
+
if (defined(constrainedInterval)) {
|
|
3453
|
+
if (defined(combinedInterval)) {
|
|
3454
|
+
combinedInterval = TimeInterval.intersect(
|
|
3455
|
+
combinedInterval,
|
|
3456
|
+
constrainedInterval,
|
|
3457
|
+
scratchTimeInterval,
|
|
3458
|
+
);
|
|
3459
|
+
} else {
|
|
3460
|
+
combinedInterval = constrainedInterval;
|
|
3461
|
+
}
|
|
3462
|
+
}
|
|
3463
|
+
|
|
3464
|
+
let nodeTransformations = model.nodeTransformations;
|
|
3465
|
+
const nodeNames = Object.keys(nodeTransformationsData);
|
|
3466
|
+
for (let i = 0, len = nodeNames.length; i < len; ++i) {
|
|
3467
|
+
const nodeName = nodeNames[i];
|
|
3468
|
+
if (nodeName === "interval") {
|
|
3469
|
+
continue;
|
|
3470
|
+
}
|
|
3471
|
+
|
|
3472
|
+
const nodeTransformationData = nodeTransformationsData[nodeName];
|
|
3473
|
+
if (!defined(nodeTransformationData)) {
|
|
3474
|
+
continue;
|
|
3475
|
+
}
|
|
3476
|
+
|
|
3477
|
+
if (!defined(nodeTransformations)) {
|
|
3478
|
+
model.nodeTransformations = nodeTransformations = new PropertyBag();
|
|
3479
|
+
}
|
|
3480
|
+
|
|
3481
|
+
if (!nodeTransformations.hasProperty(nodeName)) {
|
|
3482
|
+
nodeTransformations.addProperty(nodeName);
|
|
3483
|
+
}
|
|
3484
|
+
|
|
3485
|
+
let nodeTransformation = nodeTransformations[nodeName];
|
|
3486
|
+
if (!defined(nodeTransformation)) {
|
|
3487
|
+
nodeTransformations[nodeName] = nodeTransformation =
|
|
3488
|
+
new NodeTransformationProperty();
|
|
3489
|
+
}
|
|
3490
|
+
|
|
3491
|
+
processPacketData(
|
|
3492
|
+
Cartesian3,
|
|
3493
|
+
nodeTransformation,
|
|
3494
|
+
"translation",
|
|
3495
|
+
nodeTransformationData.translation,
|
|
3496
|
+
combinedInterval,
|
|
3497
|
+
sourceUri,
|
|
3498
|
+
entityCollection,
|
|
3499
|
+
);
|
|
3500
|
+
processPacketData(
|
|
3501
|
+
Quaternion,
|
|
3502
|
+
nodeTransformation,
|
|
3503
|
+
"rotation",
|
|
3504
|
+
nodeTransformationData.rotation,
|
|
3505
|
+
combinedInterval,
|
|
3506
|
+
sourceUri,
|
|
3507
|
+
entityCollection,
|
|
3508
|
+
);
|
|
3509
|
+
processPacketData(
|
|
3510
|
+
Cartesian3,
|
|
3511
|
+
nodeTransformation,
|
|
3512
|
+
"scale",
|
|
3513
|
+
nodeTransformationData.scale,
|
|
3514
|
+
combinedInterval,
|
|
3515
|
+
sourceUri,
|
|
3516
|
+
entityCollection,
|
|
3517
|
+
);
|
|
3518
|
+
}
|
|
3519
|
+
}
|
|
3520
|
+
|
|
3521
|
+
function processArticulations(
|
|
3522
|
+
model,
|
|
3523
|
+
articulationsData,
|
|
3524
|
+
constrainedInterval,
|
|
3525
|
+
sourceUri,
|
|
3526
|
+
entityCollection,
|
|
3527
|
+
) {
|
|
3528
|
+
let combinedInterval = intervalFromString(articulationsData.interval);
|
|
3529
|
+
if (defined(constrainedInterval)) {
|
|
3530
|
+
if (defined(combinedInterval)) {
|
|
3531
|
+
combinedInterval = TimeInterval.intersect(
|
|
3532
|
+
combinedInterval,
|
|
3533
|
+
constrainedInterval,
|
|
3534
|
+
scratchTimeInterval,
|
|
3535
|
+
);
|
|
3536
|
+
} else {
|
|
3537
|
+
combinedInterval = constrainedInterval;
|
|
3538
|
+
}
|
|
3539
|
+
}
|
|
3540
|
+
|
|
3541
|
+
let articulations = model.articulations;
|
|
3542
|
+
const keys = Object.keys(articulationsData);
|
|
3543
|
+
for (let i = 0, len = keys.length; i < len; ++i) {
|
|
3544
|
+
const key = keys[i];
|
|
3545
|
+
if (key === "interval") {
|
|
3546
|
+
continue;
|
|
3547
|
+
}
|
|
3548
|
+
|
|
3549
|
+
const articulationStageData = articulationsData[key];
|
|
3550
|
+
if (!defined(articulationStageData)) {
|
|
3551
|
+
continue;
|
|
3552
|
+
}
|
|
3553
|
+
|
|
3554
|
+
if (!defined(articulations)) {
|
|
3555
|
+
model.articulations = articulations = new PropertyBag();
|
|
3556
|
+
}
|
|
3557
|
+
|
|
3558
|
+
if (!articulations.hasProperty(key)) {
|
|
3559
|
+
articulations.addProperty(key);
|
|
3560
|
+
}
|
|
3561
|
+
|
|
3562
|
+
processPacketData(
|
|
3563
|
+
Number,
|
|
3564
|
+
articulations,
|
|
3565
|
+
key,
|
|
3566
|
+
articulationStageData,
|
|
3567
|
+
combinedInterval,
|
|
3568
|
+
sourceUri,
|
|
3569
|
+
entityCollection,
|
|
3570
|
+
);
|
|
3571
|
+
}
|
|
3572
|
+
}
|
|
3573
|
+
|
|
3574
|
+
function processPath(entity, packet, entityCollection, sourceUri) {
|
|
3575
|
+
const pathData = packet.path;
|
|
3576
|
+
if (!defined(pathData)) {
|
|
3577
|
+
return;
|
|
3578
|
+
}
|
|
3579
|
+
|
|
3580
|
+
const interval = intervalFromString(pathData.interval);
|
|
3581
|
+
let path = entity.path;
|
|
3582
|
+
if (!defined(path)) {
|
|
3583
|
+
entity.path = path = new PathGraphics();
|
|
3584
|
+
}
|
|
3585
|
+
|
|
3586
|
+
processPacketData(
|
|
3587
|
+
Boolean,
|
|
3588
|
+
path,
|
|
3589
|
+
"show",
|
|
3590
|
+
pathData.show,
|
|
3591
|
+
interval,
|
|
3592
|
+
sourceUri,
|
|
3593
|
+
entityCollection,
|
|
3594
|
+
);
|
|
3595
|
+
processPacketData(
|
|
3596
|
+
Number,
|
|
3597
|
+
path,
|
|
3598
|
+
"leadTime",
|
|
3599
|
+
pathData.leadTime,
|
|
3600
|
+
interval,
|
|
3601
|
+
sourceUri,
|
|
3602
|
+
entityCollection,
|
|
3603
|
+
);
|
|
3604
|
+
processPacketData(
|
|
3605
|
+
Number,
|
|
3606
|
+
path,
|
|
3607
|
+
"trailTime",
|
|
3608
|
+
pathData.trailTime,
|
|
3609
|
+
interval,
|
|
3610
|
+
sourceUri,
|
|
3611
|
+
entityCollection,
|
|
3612
|
+
);
|
|
3613
|
+
processPacketData(
|
|
3614
|
+
Number,
|
|
3615
|
+
path,
|
|
3616
|
+
"width",
|
|
3617
|
+
pathData.width,
|
|
3618
|
+
interval,
|
|
3619
|
+
sourceUri,
|
|
3620
|
+
entityCollection,
|
|
3621
|
+
);
|
|
3622
|
+
processPacketData(
|
|
3623
|
+
Number,
|
|
3624
|
+
path,
|
|
3625
|
+
"resolution",
|
|
3626
|
+
pathData.resolution,
|
|
3627
|
+
interval,
|
|
3628
|
+
sourceUri,
|
|
3629
|
+
entityCollection,
|
|
3630
|
+
);
|
|
3631
|
+
processMaterialPacketData(
|
|
3632
|
+
path,
|
|
3633
|
+
"material",
|
|
3634
|
+
pathData.material,
|
|
3635
|
+
interval,
|
|
3636
|
+
sourceUri,
|
|
3637
|
+
entityCollection,
|
|
3638
|
+
);
|
|
3639
|
+
processPacketData(
|
|
3640
|
+
DistanceDisplayCondition,
|
|
3641
|
+
path,
|
|
3642
|
+
"distanceDisplayCondition",
|
|
3643
|
+
pathData.distanceDisplayCondition,
|
|
3644
|
+
interval,
|
|
3645
|
+
sourceUri,
|
|
3646
|
+
entityCollection,
|
|
3647
|
+
);
|
|
3648
|
+
}
|
|
3649
|
+
|
|
3650
|
+
function processPoint(entity, packet, entityCollection, sourceUri) {
|
|
3651
|
+
const pointData = packet.point;
|
|
3652
|
+
if (!defined(pointData)) {
|
|
3653
|
+
return;
|
|
3654
|
+
}
|
|
3655
|
+
|
|
3656
|
+
const interval = intervalFromString(pointData.interval);
|
|
3657
|
+
let point = entity.point;
|
|
3658
|
+
if (!defined(point)) {
|
|
3659
|
+
entity.point = point = new PointGraphics();
|
|
3660
|
+
}
|
|
3661
|
+
|
|
3662
|
+
processPacketData(
|
|
3663
|
+
Boolean,
|
|
3664
|
+
point,
|
|
3665
|
+
"show",
|
|
3666
|
+
pointData.show,
|
|
3667
|
+
interval,
|
|
3668
|
+
sourceUri,
|
|
3669
|
+
entityCollection,
|
|
3670
|
+
);
|
|
3671
|
+
processPacketData(
|
|
3672
|
+
Number,
|
|
3673
|
+
point,
|
|
3674
|
+
"pixelSize",
|
|
3675
|
+
pointData.pixelSize,
|
|
3676
|
+
interval,
|
|
3677
|
+
sourceUri,
|
|
3678
|
+
entityCollection,
|
|
3679
|
+
);
|
|
3680
|
+
processPacketData(
|
|
3681
|
+
HeightReference,
|
|
3682
|
+
point,
|
|
3683
|
+
"heightReference",
|
|
3684
|
+
pointData.heightReference,
|
|
3685
|
+
interval,
|
|
3686
|
+
sourceUri,
|
|
3687
|
+
entityCollection,
|
|
3688
|
+
);
|
|
3689
|
+
processPacketData(
|
|
3690
|
+
Color,
|
|
3691
|
+
point,
|
|
3692
|
+
"color",
|
|
3693
|
+
pointData.color,
|
|
3694
|
+
interval,
|
|
3695
|
+
sourceUri,
|
|
3696
|
+
entityCollection,
|
|
3697
|
+
);
|
|
3698
|
+
processPacketData(
|
|
3699
|
+
Color,
|
|
3700
|
+
point,
|
|
3701
|
+
"outlineColor",
|
|
3702
|
+
pointData.outlineColor,
|
|
3703
|
+
interval,
|
|
3704
|
+
sourceUri,
|
|
3705
|
+
entityCollection,
|
|
3706
|
+
);
|
|
3707
|
+
processPacketData(
|
|
3708
|
+
Number,
|
|
3709
|
+
point,
|
|
3710
|
+
"outlineWidth",
|
|
3711
|
+
pointData.outlineWidth,
|
|
3712
|
+
interval,
|
|
3713
|
+
sourceUri,
|
|
3714
|
+
entityCollection,
|
|
3715
|
+
);
|
|
3716
|
+
processPacketData(
|
|
3717
|
+
NearFarScalar,
|
|
3718
|
+
point,
|
|
3719
|
+
"scaleByDistance",
|
|
3720
|
+
pointData.scaleByDistance,
|
|
3721
|
+
interval,
|
|
3722
|
+
sourceUri,
|
|
3723
|
+
entityCollection,
|
|
3724
|
+
);
|
|
3725
|
+
processPacketData(
|
|
3726
|
+
NearFarScalar,
|
|
3727
|
+
point,
|
|
3728
|
+
"translucencyByDistance",
|
|
3729
|
+
pointData.translucencyByDistance,
|
|
3730
|
+
interval,
|
|
3731
|
+
sourceUri,
|
|
3732
|
+
entityCollection,
|
|
3733
|
+
);
|
|
3734
|
+
processPacketData(
|
|
3735
|
+
DistanceDisplayCondition,
|
|
3736
|
+
point,
|
|
3737
|
+
"distanceDisplayCondition",
|
|
3738
|
+
pointData.distanceDisplayCondition,
|
|
3739
|
+
interval,
|
|
3740
|
+
sourceUri,
|
|
3741
|
+
entityCollection,
|
|
3742
|
+
);
|
|
3743
|
+
processPacketData(
|
|
3744
|
+
Number,
|
|
3745
|
+
point,
|
|
3746
|
+
"disableDepthTestDistance",
|
|
3747
|
+
pointData.disableDepthTestDistance,
|
|
3748
|
+
interval,
|
|
3749
|
+
sourceUri,
|
|
3750
|
+
entityCollection,
|
|
3751
|
+
);
|
|
3752
|
+
}
|
|
3753
|
+
|
|
3754
|
+
function PolygonHierarchyProperty(polygon) {
|
|
3755
|
+
this.polygon = polygon;
|
|
3756
|
+
this._definitionChanged = new Event();
|
|
3757
|
+
}
|
|
3758
|
+
|
|
3759
|
+
Object.defineProperties(PolygonHierarchyProperty.prototype, {
|
|
3760
|
+
isConstant: {
|
|
3761
|
+
get: function () {
|
|
3762
|
+
const positions = this.polygon._positions;
|
|
3763
|
+
const holes = this.polygon._holes;
|
|
3764
|
+
return (
|
|
3765
|
+
(!defined(positions) || positions.isConstant) &&
|
|
3766
|
+
(!defined(holes) || holes.isConstant)
|
|
3767
|
+
);
|
|
3768
|
+
},
|
|
3769
|
+
},
|
|
3770
|
+
definitionChanged: {
|
|
3771
|
+
get: function () {
|
|
3772
|
+
return this._definitionChanged;
|
|
3773
|
+
},
|
|
3774
|
+
},
|
|
3775
|
+
});
|
|
3776
|
+
|
|
3777
|
+
PolygonHierarchyProperty.prototype.getValue = function (time, result) {
|
|
3778
|
+
let positions;
|
|
3779
|
+
if (defined(this.polygon._positions)) {
|
|
3780
|
+
positions = this.polygon._positions.getValue(time);
|
|
3781
|
+
}
|
|
3782
|
+
|
|
3783
|
+
let holes;
|
|
3784
|
+
if (defined(this.polygon._holes)) {
|
|
3785
|
+
holes = this.polygon._holes.getValue(time);
|
|
3786
|
+
if (defined(holes)) {
|
|
3787
|
+
holes = holes.map(function (holePositions) {
|
|
3788
|
+
return new PolygonHierarchy(holePositions);
|
|
3789
|
+
});
|
|
3790
|
+
}
|
|
3791
|
+
}
|
|
3792
|
+
|
|
3793
|
+
if (!defined(result)) {
|
|
3794
|
+
return new PolygonHierarchy(positions, holes);
|
|
3795
|
+
}
|
|
3796
|
+
|
|
3797
|
+
result.positions = positions;
|
|
3798
|
+
result.holes = holes;
|
|
3799
|
+
return result;
|
|
3800
|
+
};
|
|
3801
|
+
|
|
3802
|
+
PolygonHierarchyProperty.prototype.equals = function (other) {
|
|
3803
|
+
return (
|
|
3804
|
+
this === other ||
|
|
3805
|
+
(other instanceof PolygonHierarchyProperty &&
|
|
3806
|
+
Property.equals(this.polygon._positions, other.polygon._positions) &&
|
|
3807
|
+
Property.equals(this.polygon._holes, other.polygon._holes))
|
|
3808
|
+
);
|
|
3809
|
+
};
|
|
3810
|
+
|
|
3811
|
+
function processPolygon(entity, packet, entityCollection, sourceUri) {
|
|
3812
|
+
const polygonData = packet.polygon;
|
|
3813
|
+
if (!defined(polygonData)) {
|
|
3814
|
+
return;
|
|
3815
|
+
}
|
|
3816
|
+
|
|
3817
|
+
const interval = intervalFromString(polygonData.interval);
|
|
3818
|
+
let polygon = entity.polygon;
|
|
3819
|
+
if (!defined(polygon)) {
|
|
3820
|
+
entity.polygon = polygon = new PolygonGraphics();
|
|
3821
|
+
}
|
|
3822
|
+
|
|
3823
|
+
processPacketData(
|
|
3824
|
+
Boolean,
|
|
3825
|
+
polygon,
|
|
3826
|
+
"show",
|
|
3827
|
+
polygonData.show,
|
|
3828
|
+
interval,
|
|
3829
|
+
sourceUri,
|
|
3830
|
+
entityCollection,
|
|
3831
|
+
);
|
|
3832
|
+
|
|
3833
|
+
// adapt 'position' property producing Cartesian[]
|
|
3834
|
+
// and 'holes' property producing Cartesian[][]
|
|
3835
|
+
// to a single property producing PolygonHierarchy
|
|
3836
|
+
processPositionArray(
|
|
3837
|
+
polygon,
|
|
3838
|
+
"_positions",
|
|
3839
|
+
polygonData.positions,
|
|
3840
|
+
entityCollection,
|
|
3841
|
+
);
|
|
3842
|
+
processPositionArrayOfArrays(
|
|
3843
|
+
polygon,
|
|
3844
|
+
"_holes",
|
|
3845
|
+
polygonData.holes,
|
|
3846
|
+
entityCollection,
|
|
3847
|
+
);
|
|
3848
|
+
if (defined(polygon._positions) || defined(polygon._holes)) {
|
|
3849
|
+
polygon.hierarchy = new PolygonHierarchyProperty(polygon);
|
|
3850
|
+
}
|
|
3851
|
+
|
|
3852
|
+
processPacketData(
|
|
3853
|
+
Number,
|
|
3854
|
+
polygon,
|
|
3855
|
+
"height",
|
|
3856
|
+
polygonData.height,
|
|
3857
|
+
interval,
|
|
3858
|
+
sourceUri,
|
|
3859
|
+
entityCollection,
|
|
3860
|
+
);
|
|
3861
|
+
processPacketData(
|
|
3862
|
+
HeightReference,
|
|
3863
|
+
polygon,
|
|
3864
|
+
"heightReference",
|
|
3865
|
+
polygonData.heightReference,
|
|
3866
|
+
interval,
|
|
3867
|
+
sourceUri,
|
|
3868
|
+
entityCollection,
|
|
3869
|
+
);
|
|
3870
|
+
processPacketData(
|
|
3871
|
+
Number,
|
|
3872
|
+
polygon,
|
|
3873
|
+
"extrudedHeight",
|
|
3874
|
+
polygonData.extrudedHeight,
|
|
3875
|
+
interval,
|
|
3876
|
+
sourceUri,
|
|
3877
|
+
entityCollection,
|
|
3878
|
+
);
|
|
3879
|
+
processPacketData(
|
|
3880
|
+
HeightReference,
|
|
3881
|
+
polygon,
|
|
3882
|
+
"extrudedHeightReference",
|
|
3883
|
+
polygonData.extrudedHeightReference,
|
|
3884
|
+
interval,
|
|
3885
|
+
sourceUri,
|
|
3886
|
+
entityCollection,
|
|
3887
|
+
);
|
|
3888
|
+
processPacketData(
|
|
3889
|
+
Rotation,
|
|
3890
|
+
polygon,
|
|
3891
|
+
"stRotation",
|
|
3892
|
+
polygonData.stRotation,
|
|
3893
|
+
interval,
|
|
3894
|
+
sourceUri,
|
|
3895
|
+
entityCollection,
|
|
3896
|
+
);
|
|
3897
|
+
processPacketData(
|
|
3898
|
+
Number,
|
|
3899
|
+
polygon,
|
|
3900
|
+
"granularity",
|
|
3901
|
+
polygonData.granularity,
|
|
3902
|
+
interval,
|
|
3903
|
+
sourceUri,
|
|
3904
|
+
entityCollection,
|
|
3905
|
+
);
|
|
3906
|
+
processPacketData(
|
|
3907
|
+
Boolean,
|
|
3908
|
+
polygon,
|
|
3909
|
+
"fill",
|
|
3910
|
+
polygonData.fill,
|
|
3911
|
+
interval,
|
|
3912
|
+
sourceUri,
|
|
3913
|
+
entityCollection,
|
|
3914
|
+
);
|
|
3915
|
+
processMaterialPacketData(
|
|
3916
|
+
polygon,
|
|
3917
|
+
"material",
|
|
3918
|
+
polygonData.material,
|
|
3919
|
+
interval,
|
|
3920
|
+
sourceUri,
|
|
3921
|
+
entityCollection,
|
|
3922
|
+
);
|
|
3923
|
+
processPacketData(
|
|
3924
|
+
Boolean,
|
|
3925
|
+
polygon,
|
|
3926
|
+
"outline",
|
|
3927
|
+
polygonData.outline,
|
|
3928
|
+
interval,
|
|
3929
|
+
sourceUri,
|
|
3930
|
+
entityCollection,
|
|
3931
|
+
);
|
|
3932
|
+
processPacketData(
|
|
3933
|
+
Color,
|
|
3934
|
+
polygon,
|
|
3935
|
+
"outlineColor",
|
|
3936
|
+
polygonData.outlineColor,
|
|
3937
|
+
interval,
|
|
3938
|
+
sourceUri,
|
|
3939
|
+
entityCollection,
|
|
3940
|
+
);
|
|
3941
|
+
processPacketData(
|
|
3942
|
+
Number,
|
|
3943
|
+
polygon,
|
|
3944
|
+
"outlineWidth",
|
|
3945
|
+
polygonData.outlineWidth,
|
|
3946
|
+
interval,
|
|
3947
|
+
sourceUri,
|
|
3948
|
+
entityCollection,
|
|
3949
|
+
);
|
|
3950
|
+
processPacketData(
|
|
3951
|
+
Boolean,
|
|
3952
|
+
polygon,
|
|
3953
|
+
"perPositionHeight",
|
|
3954
|
+
polygonData.perPositionHeight,
|
|
3955
|
+
interval,
|
|
3956
|
+
sourceUri,
|
|
3957
|
+
entityCollection,
|
|
3958
|
+
);
|
|
3959
|
+
processPacketData(
|
|
3960
|
+
Boolean,
|
|
3961
|
+
polygon,
|
|
3962
|
+
"closeTop",
|
|
3963
|
+
polygonData.closeTop,
|
|
3964
|
+
interval,
|
|
3965
|
+
sourceUri,
|
|
3966
|
+
entityCollection,
|
|
3967
|
+
);
|
|
3968
|
+
processPacketData(
|
|
3969
|
+
Boolean,
|
|
3970
|
+
polygon,
|
|
3971
|
+
"closeBottom",
|
|
3972
|
+
polygonData.closeBottom,
|
|
3973
|
+
interval,
|
|
3974
|
+
sourceUri,
|
|
3975
|
+
entityCollection,
|
|
3976
|
+
);
|
|
3977
|
+
processPacketData(
|
|
3978
|
+
ArcType,
|
|
3979
|
+
polygon,
|
|
3980
|
+
"arcType",
|
|
3981
|
+
polygonData.arcType,
|
|
3982
|
+
interval,
|
|
3983
|
+
sourceUri,
|
|
3984
|
+
entityCollection,
|
|
3985
|
+
);
|
|
3986
|
+
processPacketData(
|
|
3987
|
+
ShadowMode,
|
|
3988
|
+
polygon,
|
|
3989
|
+
"shadows",
|
|
3990
|
+
polygonData.shadows,
|
|
3991
|
+
interval,
|
|
3992
|
+
sourceUri,
|
|
3993
|
+
entityCollection,
|
|
3994
|
+
);
|
|
3995
|
+
processPacketData(
|
|
3996
|
+
DistanceDisplayCondition,
|
|
3997
|
+
polygon,
|
|
3998
|
+
"distanceDisplayCondition",
|
|
3999
|
+
polygonData.distanceDisplayCondition,
|
|
4000
|
+
interval,
|
|
4001
|
+
sourceUri,
|
|
4002
|
+
entityCollection,
|
|
4003
|
+
);
|
|
4004
|
+
processPacketData(
|
|
4005
|
+
ClassificationType,
|
|
4006
|
+
polygon,
|
|
4007
|
+
"classificationType",
|
|
4008
|
+
polygonData.classificationType,
|
|
4009
|
+
interval,
|
|
4010
|
+
sourceUri,
|
|
4011
|
+
entityCollection,
|
|
4012
|
+
);
|
|
4013
|
+
processPacketData(
|
|
4014
|
+
Number,
|
|
4015
|
+
polygon,
|
|
4016
|
+
"zIndex",
|
|
4017
|
+
polygonData.zIndex,
|
|
4018
|
+
interval,
|
|
4019
|
+
sourceUri,
|
|
4020
|
+
entityCollection,
|
|
4021
|
+
);
|
|
4022
|
+
}
|
|
4023
|
+
|
|
4024
|
+
function adaptFollowSurfaceToArcType(followSurface) {
|
|
4025
|
+
return followSurface ? ArcType.GEODESIC : ArcType.NONE;
|
|
4026
|
+
}
|
|
4027
|
+
|
|
4028
|
+
function processPolyline(entity, packet, entityCollection, sourceUri) {
|
|
4029
|
+
const polylineData = packet.polyline;
|
|
4030
|
+
if (!defined(polylineData)) {
|
|
4031
|
+
return;
|
|
4032
|
+
}
|
|
4033
|
+
|
|
4034
|
+
const interval = intervalFromString(polylineData.interval);
|
|
4035
|
+
let polyline = entity.polyline;
|
|
4036
|
+
if (!defined(polyline)) {
|
|
4037
|
+
entity.polyline = polyline = new PolylineGraphics();
|
|
4038
|
+
}
|
|
4039
|
+
|
|
4040
|
+
processPacketData(
|
|
4041
|
+
Boolean,
|
|
4042
|
+
polyline,
|
|
4043
|
+
"show",
|
|
4044
|
+
polylineData.show,
|
|
4045
|
+
interval,
|
|
4046
|
+
sourceUri,
|
|
4047
|
+
entityCollection,
|
|
4048
|
+
);
|
|
4049
|
+
processPositionArray(
|
|
4050
|
+
polyline,
|
|
4051
|
+
"positions",
|
|
4052
|
+
polylineData.positions,
|
|
4053
|
+
entityCollection,
|
|
4054
|
+
);
|
|
4055
|
+
processPacketData(
|
|
4056
|
+
Number,
|
|
4057
|
+
polyline,
|
|
4058
|
+
"width",
|
|
4059
|
+
polylineData.width,
|
|
4060
|
+
interval,
|
|
4061
|
+
sourceUri,
|
|
4062
|
+
entityCollection,
|
|
4063
|
+
);
|
|
4064
|
+
processPacketData(
|
|
4065
|
+
Number,
|
|
4066
|
+
polyline,
|
|
4067
|
+
"granularity",
|
|
4068
|
+
polylineData.granularity,
|
|
4069
|
+
interval,
|
|
4070
|
+
sourceUri,
|
|
4071
|
+
entityCollection,
|
|
4072
|
+
);
|
|
4073
|
+
processMaterialPacketData(
|
|
4074
|
+
polyline,
|
|
4075
|
+
"material",
|
|
4076
|
+
polylineData.material,
|
|
4077
|
+
interval,
|
|
4078
|
+
sourceUri,
|
|
4079
|
+
entityCollection,
|
|
4080
|
+
);
|
|
4081
|
+
processMaterialPacketData(
|
|
4082
|
+
polyline,
|
|
4083
|
+
"depthFailMaterial",
|
|
4084
|
+
polylineData.depthFailMaterial,
|
|
4085
|
+
interval,
|
|
4086
|
+
sourceUri,
|
|
4087
|
+
entityCollection,
|
|
4088
|
+
);
|
|
4089
|
+
processPacketData(
|
|
4090
|
+
ArcType,
|
|
4091
|
+
polyline,
|
|
4092
|
+
"arcType",
|
|
4093
|
+
polylineData.arcType,
|
|
4094
|
+
interval,
|
|
4095
|
+
sourceUri,
|
|
4096
|
+
entityCollection,
|
|
4097
|
+
);
|
|
4098
|
+
processPacketData(
|
|
4099
|
+
Boolean,
|
|
4100
|
+
polyline,
|
|
4101
|
+
"clampToGround",
|
|
4102
|
+
polylineData.clampToGround,
|
|
4103
|
+
interval,
|
|
4104
|
+
sourceUri,
|
|
4105
|
+
entityCollection,
|
|
4106
|
+
);
|
|
4107
|
+
processPacketData(
|
|
4108
|
+
ShadowMode,
|
|
4109
|
+
polyline,
|
|
4110
|
+
"shadows",
|
|
4111
|
+
polylineData.shadows,
|
|
4112
|
+
interval,
|
|
4113
|
+
sourceUri,
|
|
4114
|
+
entityCollection,
|
|
4115
|
+
);
|
|
4116
|
+
processPacketData(
|
|
4117
|
+
DistanceDisplayCondition,
|
|
4118
|
+
polyline,
|
|
4119
|
+
"distanceDisplayCondition",
|
|
4120
|
+
polylineData.distanceDisplayCondition,
|
|
4121
|
+
interval,
|
|
4122
|
+
sourceUri,
|
|
4123
|
+
entityCollection,
|
|
4124
|
+
);
|
|
4125
|
+
processPacketData(
|
|
4126
|
+
ClassificationType,
|
|
4127
|
+
polyline,
|
|
4128
|
+
"classificationType",
|
|
4129
|
+
polylineData.classificationType,
|
|
4130
|
+
interval,
|
|
4131
|
+
sourceUri,
|
|
4132
|
+
entityCollection,
|
|
4133
|
+
);
|
|
4134
|
+
processPacketData(
|
|
4135
|
+
Number,
|
|
4136
|
+
polyline,
|
|
4137
|
+
"zIndex",
|
|
4138
|
+
polylineData.zIndex,
|
|
4139
|
+
interval,
|
|
4140
|
+
sourceUri,
|
|
4141
|
+
entityCollection,
|
|
4142
|
+
);
|
|
4143
|
+
|
|
4144
|
+
// for backwards compatibility, adapt CZML followSurface to arcType.
|
|
4145
|
+
if (defined(polylineData.followSurface) && !defined(polylineData.arcType)) {
|
|
4146
|
+
const tempObj = {};
|
|
4147
|
+
processPacketData(
|
|
4148
|
+
Boolean,
|
|
4149
|
+
tempObj,
|
|
4150
|
+
"followSurface",
|
|
4151
|
+
polylineData.followSurface,
|
|
4152
|
+
interval,
|
|
4153
|
+
sourceUri,
|
|
4154
|
+
entityCollection,
|
|
4155
|
+
);
|
|
4156
|
+
polyline.arcType = createAdapterProperty(
|
|
4157
|
+
tempObj.followSurface,
|
|
4158
|
+
adaptFollowSurfaceToArcType,
|
|
4159
|
+
);
|
|
4160
|
+
}
|
|
4161
|
+
}
|
|
4162
|
+
|
|
4163
|
+
function processPolylineVolume(entity, packet, entityCollection, sourceUri) {
|
|
4164
|
+
const polylineVolumeData = packet.polylineVolume;
|
|
4165
|
+
if (!defined(polylineVolumeData)) {
|
|
4166
|
+
return;
|
|
4167
|
+
}
|
|
4168
|
+
|
|
4169
|
+
const interval = intervalFromString(polylineVolumeData.interval);
|
|
4170
|
+
let polylineVolume = entity.polylineVolume;
|
|
4171
|
+
if (!defined(polylineVolume)) {
|
|
4172
|
+
entity.polylineVolume = polylineVolume = new PolylineVolumeGraphics();
|
|
4173
|
+
}
|
|
4174
|
+
|
|
4175
|
+
processPositionArray(
|
|
4176
|
+
polylineVolume,
|
|
4177
|
+
"positions",
|
|
4178
|
+
polylineVolumeData.positions,
|
|
4179
|
+
entityCollection,
|
|
4180
|
+
);
|
|
4181
|
+
processShape(
|
|
4182
|
+
polylineVolume,
|
|
4183
|
+
"shape",
|
|
4184
|
+
polylineVolumeData.shape,
|
|
4185
|
+
entityCollection,
|
|
4186
|
+
);
|
|
4187
|
+
processPacketData(
|
|
4188
|
+
Boolean,
|
|
4189
|
+
polylineVolume,
|
|
4190
|
+
"show",
|
|
4191
|
+
polylineVolumeData.show,
|
|
4192
|
+
interval,
|
|
4193
|
+
sourceUri,
|
|
4194
|
+
entityCollection,
|
|
4195
|
+
);
|
|
4196
|
+
processPacketData(
|
|
4197
|
+
CornerType,
|
|
4198
|
+
polylineVolume,
|
|
4199
|
+
"cornerType",
|
|
4200
|
+
polylineVolumeData.cornerType,
|
|
4201
|
+
interval,
|
|
4202
|
+
sourceUri,
|
|
4203
|
+
entityCollection,
|
|
4204
|
+
);
|
|
4205
|
+
processPacketData(
|
|
4206
|
+
Boolean,
|
|
4207
|
+
polylineVolume,
|
|
4208
|
+
"fill",
|
|
4209
|
+
polylineVolumeData.fill,
|
|
4210
|
+
interval,
|
|
4211
|
+
sourceUri,
|
|
4212
|
+
entityCollection,
|
|
4213
|
+
);
|
|
4214
|
+
processMaterialPacketData(
|
|
4215
|
+
polylineVolume,
|
|
4216
|
+
"material",
|
|
4217
|
+
polylineVolumeData.material,
|
|
4218
|
+
interval,
|
|
4219
|
+
sourceUri,
|
|
4220
|
+
entityCollection,
|
|
4221
|
+
);
|
|
4222
|
+
processPacketData(
|
|
4223
|
+
Boolean,
|
|
4224
|
+
polylineVolume,
|
|
4225
|
+
"outline",
|
|
4226
|
+
polylineVolumeData.outline,
|
|
4227
|
+
interval,
|
|
4228
|
+
sourceUri,
|
|
4229
|
+
entityCollection,
|
|
4230
|
+
);
|
|
4231
|
+
processPacketData(
|
|
4232
|
+
Color,
|
|
4233
|
+
polylineVolume,
|
|
4234
|
+
"outlineColor",
|
|
4235
|
+
polylineVolumeData.outlineColor,
|
|
4236
|
+
interval,
|
|
4237
|
+
sourceUri,
|
|
4238
|
+
entityCollection,
|
|
4239
|
+
);
|
|
4240
|
+
processPacketData(
|
|
4241
|
+
Number,
|
|
4242
|
+
polylineVolume,
|
|
4243
|
+
"outlineWidth",
|
|
4244
|
+
polylineVolumeData.outlineWidth,
|
|
4245
|
+
interval,
|
|
4246
|
+
sourceUri,
|
|
4247
|
+
entityCollection,
|
|
4248
|
+
);
|
|
4249
|
+
processPacketData(
|
|
4250
|
+
Number,
|
|
4251
|
+
polylineVolume,
|
|
4252
|
+
"granularity",
|
|
4253
|
+
polylineVolumeData.granularity,
|
|
4254
|
+
interval,
|
|
4255
|
+
sourceUri,
|
|
4256
|
+
entityCollection,
|
|
4257
|
+
);
|
|
4258
|
+
processPacketData(
|
|
4259
|
+
ShadowMode,
|
|
4260
|
+
polylineVolume,
|
|
4261
|
+
"shadows",
|
|
4262
|
+
polylineVolumeData.shadows,
|
|
4263
|
+
interval,
|
|
4264
|
+
sourceUri,
|
|
4265
|
+
entityCollection,
|
|
4266
|
+
);
|
|
4267
|
+
processPacketData(
|
|
4268
|
+
DistanceDisplayCondition,
|
|
4269
|
+
polylineVolume,
|
|
4270
|
+
"distanceDisplayCondition",
|
|
4271
|
+
polylineVolumeData.distanceDisplayCondition,
|
|
4272
|
+
interval,
|
|
4273
|
+
sourceUri,
|
|
4274
|
+
entityCollection,
|
|
4275
|
+
);
|
|
4276
|
+
}
|
|
4277
|
+
|
|
4278
|
+
function processRectangle(entity, packet, entityCollection, sourceUri) {
|
|
4279
|
+
const rectangleData = packet.rectangle;
|
|
4280
|
+
if (!defined(rectangleData)) {
|
|
4281
|
+
return;
|
|
4282
|
+
}
|
|
4283
|
+
|
|
4284
|
+
const interval = intervalFromString(rectangleData.interval);
|
|
4285
|
+
let rectangle = entity.rectangle;
|
|
4286
|
+
if (!defined(rectangle)) {
|
|
4287
|
+
entity.rectangle = rectangle = new RectangleGraphics();
|
|
4288
|
+
}
|
|
4289
|
+
|
|
4290
|
+
processPacketData(
|
|
4291
|
+
Boolean,
|
|
4292
|
+
rectangle,
|
|
4293
|
+
"show",
|
|
4294
|
+
rectangleData.show,
|
|
4295
|
+
interval,
|
|
4296
|
+
sourceUri,
|
|
4297
|
+
entityCollection,
|
|
4298
|
+
);
|
|
4299
|
+
processPacketData(
|
|
4300
|
+
Rectangle,
|
|
4301
|
+
rectangle,
|
|
4302
|
+
"coordinates",
|
|
4303
|
+
rectangleData.coordinates,
|
|
4304
|
+
interval,
|
|
4305
|
+
sourceUri,
|
|
4306
|
+
entityCollection,
|
|
4307
|
+
);
|
|
4308
|
+
processPacketData(
|
|
4309
|
+
Number,
|
|
4310
|
+
rectangle,
|
|
4311
|
+
"height",
|
|
4312
|
+
rectangleData.height,
|
|
4313
|
+
interval,
|
|
4314
|
+
sourceUri,
|
|
4315
|
+
entityCollection,
|
|
4316
|
+
);
|
|
4317
|
+
processPacketData(
|
|
4318
|
+
HeightReference,
|
|
4319
|
+
rectangle,
|
|
4320
|
+
"heightReference",
|
|
4321
|
+
rectangleData.heightReference,
|
|
4322
|
+
interval,
|
|
4323
|
+
sourceUri,
|
|
4324
|
+
entityCollection,
|
|
4325
|
+
);
|
|
4326
|
+
processPacketData(
|
|
4327
|
+
Number,
|
|
4328
|
+
rectangle,
|
|
4329
|
+
"extrudedHeight",
|
|
4330
|
+
rectangleData.extrudedHeight,
|
|
4331
|
+
interval,
|
|
4332
|
+
sourceUri,
|
|
4333
|
+
entityCollection,
|
|
4334
|
+
);
|
|
4335
|
+
processPacketData(
|
|
4336
|
+
HeightReference,
|
|
4337
|
+
rectangle,
|
|
4338
|
+
"extrudedHeightReference",
|
|
4339
|
+
rectangleData.extrudedHeightReference,
|
|
4340
|
+
interval,
|
|
4341
|
+
sourceUri,
|
|
4342
|
+
entityCollection,
|
|
4343
|
+
);
|
|
4344
|
+
processPacketData(
|
|
4345
|
+
Rotation,
|
|
4346
|
+
rectangle,
|
|
4347
|
+
"rotation",
|
|
4348
|
+
rectangleData.rotation,
|
|
4349
|
+
interval,
|
|
4350
|
+
sourceUri,
|
|
4351
|
+
entityCollection,
|
|
4352
|
+
);
|
|
4353
|
+
processPacketData(
|
|
4354
|
+
Rotation,
|
|
4355
|
+
rectangle,
|
|
4356
|
+
"stRotation",
|
|
4357
|
+
rectangleData.stRotation,
|
|
4358
|
+
interval,
|
|
4359
|
+
sourceUri,
|
|
4360
|
+
entityCollection,
|
|
4361
|
+
);
|
|
4362
|
+
processPacketData(
|
|
4363
|
+
Number,
|
|
4364
|
+
rectangle,
|
|
4365
|
+
"granularity",
|
|
4366
|
+
rectangleData.granularity,
|
|
4367
|
+
interval,
|
|
4368
|
+
sourceUri,
|
|
4369
|
+
entityCollection,
|
|
4370
|
+
);
|
|
4371
|
+
processPacketData(
|
|
4372
|
+
Boolean,
|
|
4373
|
+
rectangle,
|
|
4374
|
+
"fill",
|
|
4375
|
+
rectangleData.fill,
|
|
4376
|
+
interval,
|
|
4377
|
+
sourceUri,
|
|
4378
|
+
entityCollection,
|
|
4379
|
+
);
|
|
4380
|
+
processMaterialPacketData(
|
|
4381
|
+
rectangle,
|
|
4382
|
+
"material",
|
|
4383
|
+
rectangleData.material,
|
|
4384
|
+
interval,
|
|
4385
|
+
sourceUri,
|
|
4386
|
+
entityCollection,
|
|
4387
|
+
);
|
|
4388
|
+
processPacketData(
|
|
4389
|
+
Boolean,
|
|
4390
|
+
rectangle,
|
|
4391
|
+
"outline",
|
|
4392
|
+
rectangleData.outline,
|
|
4393
|
+
interval,
|
|
4394
|
+
sourceUri,
|
|
4395
|
+
entityCollection,
|
|
4396
|
+
);
|
|
4397
|
+
processPacketData(
|
|
4398
|
+
Color,
|
|
4399
|
+
rectangle,
|
|
4400
|
+
"outlineColor",
|
|
4401
|
+
rectangleData.outlineColor,
|
|
4402
|
+
interval,
|
|
4403
|
+
sourceUri,
|
|
4404
|
+
entityCollection,
|
|
4405
|
+
);
|
|
4406
|
+
processPacketData(
|
|
4407
|
+
Number,
|
|
4408
|
+
rectangle,
|
|
4409
|
+
"outlineWidth",
|
|
4410
|
+
rectangleData.outlineWidth,
|
|
4411
|
+
interval,
|
|
4412
|
+
sourceUri,
|
|
4413
|
+
entityCollection,
|
|
4414
|
+
);
|
|
4415
|
+
processPacketData(
|
|
4416
|
+
ShadowMode,
|
|
4417
|
+
rectangle,
|
|
4418
|
+
"shadows",
|
|
4419
|
+
rectangleData.shadows,
|
|
4420
|
+
interval,
|
|
4421
|
+
sourceUri,
|
|
4422
|
+
entityCollection,
|
|
4423
|
+
);
|
|
4424
|
+
processPacketData(
|
|
4425
|
+
DistanceDisplayCondition,
|
|
4426
|
+
rectangle,
|
|
4427
|
+
"distanceDisplayCondition",
|
|
4428
|
+
rectangleData.distanceDisplayCondition,
|
|
4429
|
+
interval,
|
|
4430
|
+
sourceUri,
|
|
4431
|
+
entityCollection,
|
|
4432
|
+
);
|
|
4433
|
+
processPacketData(
|
|
4434
|
+
ClassificationType,
|
|
4435
|
+
rectangle,
|
|
4436
|
+
"classificationType",
|
|
4437
|
+
rectangleData.classificationType,
|
|
4438
|
+
interval,
|
|
4439
|
+
sourceUri,
|
|
4440
|
+
entityCollection,
|
|
4441
|
+
);
|
|
4442
|
+
processPacketData(
|
|
4443
|
+
Number,
|
|
4444
|
+
rectangle,
|
|
4445
|
+
"zIndex",
|
|
4446
|
+
rectangleData.zIndex,
|
|
4447
|
+
interval,
|
|
4448
|
+
sourceUri,
|
|
4449
|
+
entityCollection,
|
|
4450
|
+
);
|
|
4451
|
+
}
|
|
4452
|
+
|
|
4453
|
+
function processTileset(entity, packet, entityCollection, sourceUri) {
|
|
4454
|
+
const tilesetData = packet.tileset;
|
|
4455
|
+
if (!defined(tilesetData)) {
|
|
4456
|
+
return;
|
|
4457
|
+
}
|
|
4458
|
+
|
|
4459
|
+
const interval = intervalFromString(tilesetData.interval);
|
|
4460
|
+
let tileset = entity.tileset;
|
|
4461
|
+
if (!defined(tileset)) {
|
|
4462
|
+
entity.tileset = tileset = new Cesium3DTilesetGraphics();
|
|
4463
|
+
}
|
|
4464
|
+
|
|
4465
|
+
processPacketData(
|
|
4466
|
+
Boolean,
|
|
4467
|
+
tileset,
|
|
4468
|
+
"show",
|
|
4469
|
+
tilesetData.show,
|
|
4470
|
+
interval,
|
|
4471
|
+
sourceUri,
|
|
4472
|
+
entityCollection,
|
|
4473
|
+
);
|
|
4474
|
+
processPacketData(
|
|
4475
|
+
Uri,
|
|
4476
|
+
tileset,
|
|
4477
|
+
"uri",
|
|
4478
|
+
tilesetData.uri,
|
|
4479
|
+
interval,
|
|
4480
|
+
sourceUri,
|
|
4481
|
+
entityCollection,
|
|
4482
|
+
);
|
|
4483
|
+
processPacketData(
|
|
4484
|
+
Number,
|
|
4485
|
+
tileset,
|
|
4486
|
+
"maximumScreenSpaceError",
|
|
4487
|
+
tilesetData.maximumScreenSpaceError,
|
|
4488
|
+
interval,
|
|
4489
|
+
sourceUri,
|
|
4490
|
+
entityCollection,
|
|
4491
|
+
);
|
|
4492
|
+
}
|
|
4493
|
+
|
|
4494
|
+
function processWall(entity, packet, entityCollection, sourceUri) {
|
|
4495
|
+
const wallData = packet.wall;
|
|
4496
|
+
if (!defined(wallData)) {
|
|
4497
|
+
return;
|
|
4498
|
+
}
|
|
4499
|
+
|
|
4500
|
+
const interval = intervalFromString(wallData.interval);
|
|
4501
|
+
let wall = entity.wall;
|
|
4502
|
+
if (!defined(wall)) {
|
|
4503
|
+
entity.wall = wall = new WallGraphics();
|
|
4504
|
+
}
|
|
4505
|
+
|
|
4506
|
+
processPacketData(
|
|
4507
|
+
Boolean,
|
|
4508
|
+
wall,
|
|
4509
|
+
"show",
|
|
4510
|
+
wallData.show,
|
|
4511
|
+
interval,
|
|
4512
|
+
sourceUri,
|
|
4513
|
+
entityCollection,
|
|
4514
|
+
);
|
|
4515
|
+
processPositionArray(wall, "positions", wallData.positions, entityCollection);
|
|
4516
|
+
processArray(
|
|
4517
|
+
wall,
|
|
4518
|
+
"minimumHeights",
|
|
4519
|
+
wallData.minimumHeights,
|
|
4520
|
+
entityCollection,
|
|
4521
|
+
);
|
|
4522
|
+
processArray(
|
|
4523
|
+
wall,
|
|
4524
|
+
"maximumHeights",
|
|
4525
|
+
wallData.maximumHeights,
|
|
4526
|
+
entityCollection,
|
|
4527
|
+
);
|
|
4528
|
+
processPacketData(
|
|
4529
|
+
Number,
|
|
4530
|
+
wall,
|
|
4531
|
+
"granularity",
|
|
4532
|
+
wallData.granularity,
|
|
4533
|
+
interval,
|
|
4534
|
+
sourceUri,
|
|
4535
|
+
entityCollection,
|
|
4536
|
+
);
|
|
4537
|
+
processPacketData(
|
|
4538
|
+
Boolean,
|
|
4539
|
+
wall,
|
|
4540
|
+
"fill",
|
|
4541
|
+
wallData.fill,
|
|
4542
|
+
interval,
|
|
4543
|
+
sourceUri,
|
|
4544
|
+
entityCollection,
|
|
4545
|
+
);
|
|
4546
|
+
processMaterialPacketData(
|
|
4547
|
+
wall,
|
|
4548
|
+
"material",
|
|
4549
|
+
wallData.material,
|
|
4550
|
+
interval,
|
|
4551
|
+
sourceUri,
|
|
4552
|
+
entityCollection,
|
|
4553
|
+
);
|
|
4554
|
+
processPacketData(
|
|
4555
|
+
Boolean,
|
|
4556
|
+
wall,
|
|
4557
|
+
"outline",
|
|
4558
|
+
wallData.outline,
|
|
4559
|
+
interval,
|
|
4560
|
+
sourceUri,
|
|
4561
|
+
entityCollection,
|
|
4562
|
+
);
|
|
4563
|
+
processPacketData(
|
|
4564
|
+
Color,
|
|
4565
|
+
wall,
|
|
4566
|
+
"outlineColor",
|
|
4567
|
+
wallData.outlineColor,
|
|
4568
|
+
interval,
|
|
4569
|
+
sourceUri,
|
|
4570
|
+
entityCollection,
|
|
4571
|
+
);
|
|
4572
|
+
processPacketData(
|
|
4573
|
+
Number,
|
|
4574
|
+
wall,
|
|
4575
|
+
"outlineWidth",
|
|
4576
|
+
wallData.outlineWidth,
|
|
4577
|
+
interval,
|
|
4578
|
+
sourceUri,
|
|
4579
|
+
entityCollection,
|
|
4580
|
+
);
|
|
4581
|
+
processPacketData(
|
|
4582
|
+
ShadowMode,
|
|
4583
|
+
wall,
|
|
4584
|
+
"shadows",
|
|
4585
|
+
wallData.shadows,
|
|
4586
|
+
interval,
|
|
4587
|
+
sourceUri,
|
|
4588
|
+
entityCollection,
|
|
4589
|
+
);
|
|
4590
|
+
processPacketData(
|
|
4591
|
+
DistanceDisplayCondition,
|
|
4592
|
+
wall,
|
|
4593
|
+
"distanceDisplayCondition",
|
|
4594
|
+
wallData.distanceDisplayCondition,
|
|
4595
|
+
interval,
|
|
4596
|
+
sourceUri,
|
|
4597
|
+
entityCollection,
|
|
4598
|
+
);
|
|
4599
|
+
}
|
|
4600
|
+
|
|
4601
|
+
function processCzmlPacket(
|
|
4602
|
+
packet,
|
|
4603
|
+
entityCollection,
|
|
4604
|
+
updaterFunctions,
|
|
4605
|
+
sourceUri,
|
|
4606
|
+
dataSource,
|
|
4607
|
+
) {
|
|
4608
|
+
let objectId = packet.id;
|
|
4609
|
+
if (!defined(objectId)) {
|
|
4610
|
+
objectId = createGuid();
|
|
4611
|
+
}
|
|
4612
|
+
|
|
4613
|
+
currentId = objectId;
|
|
4614
|
+
|
|
4615
|
+
if (!defined(dataSource._version) && objectId !== "document") {
|
|
4616
|
+
throw new RuntimeError(
|
|
4617
|
+
"The first CZML packet is required to be the document object.",
|
|
4618
|
+
);
|
|
4619
|
+
}
|
|
4620
|
+
|
|
4621
|
+
if (packet["delete"] === true) {
|
|
4622
|
+
entityCollection.removeById(objectId);
|
|
4623
|
+
} else if (objectId === "document") {
|
|
4624
|
+
processDocument(packet, dataSource);
|
|
4625
|
+
} else {
|
|
4626
|
+
const entity = entityCollection.getOrCreateEntity(objectId);
|
|
4627
|
+
|
|
4628
|
+
const parentId = packet.parent;
|
|
4629
|
+
if (defined(parentId)) {
|
|
4630
|
+
entity.parent = entityCollection.getOrCreateEntity(parentId);
|
|
4631
|
+
}
|
|
4632
|
+
|
|
4633
|
+
for (let i = updaterFunctions.length - 1; i > -1; i--) {
|
|
4634
|
+
updaterFunctions[i](entity, packet, entityCollection, sourceUri);
|
|
4635
|
+
}
|
|
4636
|
+
}
|
|
4637
|
+
|
|
4638
|
+
currentId = undefined;
|
|
4639
|
+
}
|
|
4640
|
+
|
|
4641
|
+
function updateClock(dataSource) {
|
|
4642
|
+
let clock;
|
|
4643
|
+
const clockPacket = dataSource._documentPacket.clock;
|
|
4644
|
+
if (!defined(clockPacket)) {
|
|
4645
|
+
if (!defined(dataSource._clock)) {
|
|
4646
|
+
const availability = dataSource._entityCollection.computeAvailability();
|
|
4647
|
+
if (!availability.start.equals(Iso8601.MINIMUM_VALUE)) {
|
|
4648
|
+
const startTime = availability.start;
|
|
4649
|
+
const stopTime = availability.stop;
|
|
4650
|
+
const totalSeconds = JulianDate.secondsDifference(stopTime, startTime);
|
|
4651
|
+
const multiplier = Math.round(totalSeconds / 120.0);
|
|
4652
|
+
|
|
4653
|
+
clock = new DataSourceClock();
|
|
4654
|
+
clock.startTime = JulianDate.clone(startTime);
|
|
4655
|
+
clock.stopTime = JulianDate.clone(stopTime);
|
|
4656
|
+
clock.clockRange = ClockRange.LOOP_STOP;
|
|
4657
|
+
clock.multiplier = multiplier;
|
|
4658
|
+
clock.currentTime = JulianDate.clone(startTime);
|
|
4659
|
+
clock.clockStep = ClockStep.SYSTEM_CLOCK_MULTIPLIER;
|
|
4660
|
+
dataSource._clock = clock;
|
|
4661
|
+
return true;
|
|
4662
|
+
}
|
|
4663
|
+
}
|
|
4664
|
+
return false;
|
|
4665
|
+
}
|
|
4666
|
+
|
|
4667
|
+
if (defined(dataSource._clock)) {
|
|
4668
|
+
clock = dataSource._clock.clone();
|
|
4669
|
+
} else {
|
|
4670
|
+
clock = new DataSourceClock();
|
|
4671
|
+
clock.startTime = Iso8601.MINIMUM_VALUE.clone();
|
|
4672
|
+
clock.stopTime = Iso8601.MAXIMUM_VALUE.clone();
|
|
4673
|
+
clock.currentTime = Iso8601.MINIMUM_VALUE.clone();
|
|
4674
|
+
clock.clockRange = ClockRange.LOOP_STOP;
|
|
4675
|
+
clock.clockStep = ClockStep.SYSTEM_CLOCK_MULTIPLIER;
|
|
4676
|
+
clock.multiplier = 1.0;
|
|
4677
|
+
}
|
|
4678
|
+
|
|
4679
|
+
const interval = intervalFromString(clockPacket.interval);
|
|
4680
|
+
if (defined(interval)) {
|
|
4681
|
+
clock.startTime = interval.start;
|
|
4682
|
+
clock.stopTime = interval.stop;
|
|
4683
|
+
}
|
|
4684
|
+
|
|
4685
|
+
if (defined(clockPacket.currentTime)) {
|
|
4686
|
+
clock.currentTime = JulianDate.fromIso8601(clockPacket.currentTime);
|
|
4687
|
+
}
|
|
4688
|
+
if (defined(clockPacket.range)) {
|
|
4689
|
+
clock.clockRange = ClockRange[clockPacket.range] ?? ClockRange.LOOP_STOP;
|
|
4690
|
+
}
|
|
4691
|
+
if (defined(clockPacket.step)) {
|
|
4692
|
+
clock.clockStep =
|
|
4693
|
+
ClockStep[clockPacket.step] ?? ClockStep.SYSTEM_CLOCK_MULTIPLIER;
|
|
4694
|
+
}
|
|
4695
|
+
if (defined(clockPacket.multiplier)) {
|
|
4696
|
+
clock.multiplier = clockPacket.multiplier;
|
|
4697
|
+
}
|
|
4698
|
+
|
|
4699
|
+
if (!clock.equals(dataSource._clock)) {
|
|
4700
|
+
dataSource._clock = clock.clone(dataSource._clock);
|
|
4701
|
+
return true;
|
|
4702
|
+
}
|
|
4703
|
+
|
|
4704
|
+
return false;
|
|
4705
|
+
}
|
|
4706
|
+
|
|
4707
|
+
function load(dataSource, czml, options, clear) {
|
|
4708
|
+
//>>includeStart('debug', pragmas.debug);
|
|
4709
|
+
if (!defined(czml)) {
|
|
4710
|
+
throw new DeveloperError("czml is required.");
|
|
4711
|
+
}
|
|
4712
|
+
//>>includeEnd('debug');
|
|
4713
|
+
|
|
4714
|
+
options = options ?? Frozen.EMPTY_OBJECT;
|
|
4715
|
+
|
|
4716
|
+
let promise = czml;
|
|
4717
|
+
let sourceUri = options.sourceUri;
|
|
4718
|
+
|
|
4719
|
+
// User specified credit
|
|
4720
|
+
let credit = options.credit;
|
|
4721
|
+
if (typeof credit === "string") {
|
|
4722
|
+
credit = new Credit(credit);
|
|
4723
|
+
}
|
|
4724
|
+
dataSource._credit = credit;
|
|
4725
|
+
|
|
4726
|
+
// If the czml is a URL
|
|
4727
|
+
if (typeof czml === "string" || czml instanceof Resource) {
|
|
4728
|
+
czml = Resource.createIfNeeded(czml);
|
|
4729
|
+
promise = czml.fetchJson();
|
|
4730
|
+
sourceUri = sourceUri ?? czml.clone();
|
|
4731
|
+
|
|
4732
|
+
// Add resource credits to our list of credits to display
|
|
4733
|
+
const resourceCredits = dataSource._resourceCredits;
|
|
4734
|
+
const credits = czml.credits;
|
|
4735
|
+
if (defined(credits)) {
|
|
4736
|
+
const length = credits.length;
|
|
4737
|
+
for (let i = 0; i < length; i++) {
|
|
4738
|
+
resourceCredits.push(credits[i]);
|
|
4739
|
+
}
|
|
4740
|
+
}
|
|
4741
|
+
}
|
|
4742
|
+
|
|
4743
|
+
sourceUri = Resource.createIfNeeded(sourceUri);
|
|
4744
|
+
|
|
4745
|
+
DataSource.setLoading(dataSource, true);
|
|
4746
|
+
|
|
4747
|
+
return Promise.resolve(promise)
|
|
4748
|
+
.then(function (czml) {
|
|
4749
|
+
return loadCzml(dataSource, czml, sourceUri, clear);
|
|
4750
|
+
})
|
|
4751
|
+
.catch(function (error) {
|
|
4752
|
+
DataSource.setLoading(dataSource, false);
|
|
4753
|
+
dataSource._error.raiseEvent(dataSource, error);
|
|
4754
|
+
console.log(error);
|
|
4755
|
+
return Promise.reject(error);
|
|
4756
|
+
});
|
|
4757
|
+
}
|
|
4758
|
+
|
|
4759
|
+
function loadCzml(dataSource, czml, sourceUri, clear) {
|
|
4760
|
+
DataSource.setLoading(dataSource, true);
|
|
4761
|
+
const entityCollection = dataSource._entityCollection;
|
|
4762
|
+
|
|
4763
|
+
if (clear) {
|
|
4764
|
+
dataSource._version = undefined;
|
|
4765
|
+
dataSource._documentPacket = new DocumentPacket();
|
|
4766
|
+
entityCollection.removeAll();
|
|
4767
|
+
}
|
|
4768
|
+
|
|
4769
|
+
CzmlDataSource._processCzml(
|
|
4770
|
+
czml,
|
|
4771
|
+
entityCollection,
|
|
4772
|
+
sourceUri,
|
|
4773
|
+
undefined,
|
|
4774
|
+
dataSource,
|
|
4775
|
+
);
|
|
4776
|
+
|
|
4777
|
+
let raiseChangedEvent = updateClock(dataSource);
|
|
4778
|
+
|
|
4779
|
+
const documentPacket = dataSource._documentPacket;
|
|
4780
|
+
if (
|
|
4781
|
+
defined(documentPacket.name) &&
|
|
4782
|
+
dataSource._name !== documentPacket.name
|
|
4783
|
+
) {
|
|
4784
|
+
dataSource._name = documentPacket.name;
|
|
4785
|
+
raiseChangedEvent = true;
|
|
4786
|
+
} else if (!defined(dataSource._name) && defined(sourceUri)) {
|
|
4787
|
+
dataSource._name = getFilenameFromUri(sourceUri.getUrlComponent());
|
|
4788
|
+
raiseChangedEvent = true;
|
|
4789
|
+
}
|
|
4790
|
+
|
|
4791
|
+
DataSource.setLoading(dataSource, false);
|
|
4792
|
+
if (raiseChangedEvent) {
|
|
4793
|
+
dataSource._changed.raiseEvent(dataSource);
|
|
4794
|
+
}
|
|
4795
|
+
|
|
4796
|
+
return dataSource;
|
|
4797
|
+
}
|
|
4798
|
+
|
|
4799
|
+
function DocumentPacket() {
|
|
4800
|
+
this.name = undefined;
|
|
4801
|
+
this.clock = undefined;
|
|
4802
|
+
}
|
|
4803
|
+
|
|
4804
|
+
/**
|
|
4805
|
+
* @typedef {object} CzmlDataSource.LoadOptions
|
|
4806
|
+
*
|
|
4807
|
+
* Initialization options for the <code>load</code> method.
|
|
4808
|
+
*
|
|
4809
|
+
* @property {Resource|string} [sourceUri] Overrides the url to use for resolving relative links.
|
|
4810
|
+
* @property {Credit|string} [credit] A credit for the data source, which is displayed on the canvas.
|
|
4811
|
+
*/
|
|
4812
|
+
|
|
4813
|
+
/**
|
|
4814
|
+
* A {@link DataSource} which processes {@link https://github.com/AnalyticalGraphicsInc/czml-writer/wiki/CZML-Guide|CZML}.
|
|
4815
|
+
* @alias CzmlDataSource
|
|
4816
|
+
* @constructor
|
|
4817
|
+
*
|
|
4818
|
+
* @param {string} [name] An optional name for the data source. This value will be overwritten if a loaded document contains a name.
|
|
4819
|
+
*
|
|
4820
|
+
* @demo {@link https://sandcastle.cesium.com/index.html?src=CZML.html|Cesium Sandcastle CZML Demo}
|
|
4821
|
+
*/
|
|
4822
|
+
function CzmlDataSource(name) {
|
|
4823
|
+
this._name = name;
|
|
4824
|
+
this._changed = new Event();
|
|
4825
|
+
this._error = new Event();
|
|
4826
|
+
this._isLoading = false;
|
|
4827
|
+
this._loading = new Event();
|
|
4828
|
+
this._clock = undefined;
|
|
4829
|
+
this._documentPacket = new DocumentPacket();
|
|
4830
|
+
this._version = undefined;
|
|
4831
|
+
this._entityCollection = new EntityCollection(this);
|
|
4832
|
+
this._entityCluster = new EntityCluster();
|
|
4833
|
+
this._credit = undefined;
|
|
4834
|
+
this._resourceCredits = [];
|
|
4835
|
+
}
|
|
4836
|
+
|
|
4837
|
+
/**
|
|
4838
|
+
* Creates a Promise to a new instance loaded with the provided CZML data.
|
|
4839
|
+
*
|
|
4840
|
+
* @param {Resource|string|object} czml A url or CZML object to be processed.
|
|
4841
|
+
* @param {CzmlDataSource.LoadOptions} [options] An object specifying configuration options
|
|
4842
|
+
*
|
|
4843
|
+
* @returns {Promise<CzmlDataSource>} A promise that resolves to the new instance once the data is processed.
|
|
4844
|
+
*/
|
|
4845
|
+
CzmlDataSource.load = function (czml, options) {
|
|
4846
|
+
return new CzmlDataSource().load(czml, options);
|
|
4847
|
+
};
|
|
4848
|
+
|
|
4849
|
+
Object.defineProperties(CzmlDataSource.prototype, {
|
|
4850
|
+
/**
|
|
4851
|
+
* Gets a human-readable name for this instance.
|
|
4852
|
+
* @memberof CzmlDataSource.prototype
|
|
4853
|
+
* @type {string}
|
|
4854
|
+
*/
|
|
4855
|
+
name: {
|
|
4856
|
+
get: function () {
|
|
4857
|
+
return this._name;
|
|
4858
|
+
},
|
|
4859
|
+
},
|
|
4860
|
+
/**
|
|
4861
|
+
* Gets the clock settings defined by the loaded CZML. If no clock is explicitly
|
|
4862
|
+
* defined in the CZML, the combined availability of all objects is returned. If
|
|
4863
|
+
* only static data exists, this value is undefined.
|
|
4864
|
+
* @memberof CzmlDataSource.prototype
|
|
4865
|
+
* @type {DataSourceClock}
|
|
4866
|
+
*/
|
|
4867
|
+
clock: {
|
|
4868
|
+
get: function () {
|
|
4869
|
+
return this._clock;
|
|
4870
|
+
},
|
|
4871
|
+
},
|
|
4872
|
+
/**
|
|
4873
|
+
* Gets the collection of {@link Entity} instances.
|
|
4874
|
+
* @memberof CzmlDataSource.prototype
|
|
4875
|
+
* @type {EntityCollection}
|
|
4876
|
+
*/
|
|
4877
|
+
entities: {
|
|
4878
|
+
get: function () {
|
|
4879
|
+
return this._entityCollection;
|
|
4880
|
+
},
|
|
4881
|
+
},
|
|
4882
|
+
/**
|
|
4883
|
+
* Gets a value indicating if the data source is currently loading data.
|
|
4884
|
+
* @memberof CzmlDataSource.prototype
|
|
4885
|
+
* @type {boolean}
|
|
4886
|
+
*/
|
|
4887
|
+
isLoading: {
|
|
4888
|
+
get: function () {
|
|
4889
|
+
return this._isLoading;
|
|
4890
|
+
},
|
|
4891
|
+
},
|
|
4892
|
+
/**
|
|
4893
|
+
* Gets an event that will be raised when the underlying data changes.
|
|
4894
|
+
* @memberof CzmlDataSource.prototype
|
|
4895
|
+
* @type {Event}
|
|
4896
|
+
*/
|
|
4897
|
+
changedEvent: {
|
|
4898
|
+
get: function () {
|
|
4899
|
+
return this._changed;
|
|
4900
|
+
},
|
|
4901
|
+
},
|
|
4902
|
+
/**
|
|
4903
|
+
* Gets an event that will be raised if an error is encountered during processing.
|
|
4904
|
+
* @memberof CzmlDataSource.prototype
|
|
4905
|
+
* @type {Event}
|
|
4906
|
+
*/
|
|
4907
|
+
errorEvent: {
|
|
4908
|
+
get: function () {
|
|
4909
|
+
return this._error;
|
|
4910
|
+
},
|
|
4911
|
+
},
|
|
4912
|
+
/**
|
|
4913
|
+
* Gets an event that will be raised when the data source either starts or stops loading.
|
|
4914
|
+
* @memberof CzmlDataSource.prototype
|
|
4915
|
+
* @type {Event}
|
|
4916
|
+
*/
|
|
4917
|
+
loadingEvent: {
|
|
4918
|
+
get: function () {
|
|
4919
|
+
return this._loading;
|
|
4920
|
+
},
|
|
4921
|
+
},
|
|
4922
|
+
/**
|
|
4923
|
+
* Gets whether or not this data source should be displayed.
|
|
4924
|
+
* @memberof CzmlDataSource.prototype
|
|
4925
|
+
* @type {boolean}
|
|
4926
|
+
*/
|
|
4927
|
+
show: {
|
|
4928
|
+
get: function () {
|
|
4929
|
+
return this._entityCollection.show;
|
|
4930
|
+
},
|
|
4931
|
+
set: function (value) {
|
|
4932
|
+
this._entityCollection.show = value;
|
|
4933
|
+
},
|
|
4934
|
+
},
|
|
4935
|
+
|
|
4936
|
+
/**
|
|
4937
|
+
* Gets or sets the clustering options for this data source. This object can be shared between multiple data sources.
|
|
4938
|
+
*
|
|
4939
|
+
* @memberof CzmlDataSource.prototype
|
|
4940
|
+
* @type {EntityCluster}
|
|
4941
|
+
*/
|
|
4942
|
+
clustering: {
|
|
4943
|
+
get: function () {
|
|
4944
|
+
return this._entityCluster;
|
|
4945
|
+
},
|
|
4946
|
+
set: function (value) {
|
|
4947
|
+
//>>includeStart('debug', pragmas.debug);
|
|
4948
|
+
if (!defined(value)) {
|
|
4949
|
+
throw new DeveloperError("value must be defined.");
|
|
4950
|
+
}
|
|
4951
|
+
//>>includeEnd('debug');
|
|
4952
|
+
this._entityCluster = value;
|
|
4953
|
+
},
|
|
4954
|
+
},
|
|
4955
|
+
/**
|
|
4956
|
+
* Gets the credit that will be displayed for the data source
|
|
4957
|
+
* @memberof CzmlDataSource.prototype
|
|
4958
|
+
* @type {Credit}
|
|
4959
|
+
*/
|
|
4960
|
+
credit: {
|
|
4961
|
+
get: function () {
|
|
4962
|
+
return this._credit;
|
|
4963
|
+
},
|
|
4964
|
+
},
|
|
4965
|
+
});
|
|
4966
|
+
|
|
4967
|
+
/**
|
|
4968
|
+
* @callback CzmlDataSource.UpdaterFunction
|
|
4969
|
+
*
|
|
4970
|
+
* A CZML processing function that adds or updates entities in the provided
|
|
4971
|
+
* collection based on the provided CZML packet.
|
|
4972
|
+
*
|
|
4973
|
+
* @param {Entity} entity
|
|
4974
|
+
* @param {object} packet
|
|
4975
|
+
* @param {EntityCollection} entityCollection
|
|
4976
|
+
* @param {string} sourceUri
|
|
4977
|
+
*/
|
|
4978
|
+
|
|
4979
|
+
/**
|
|
4980
|
+
* Gets the array of CZML processing functions.
|
|
4981
|
+
* @memberof CzmlDataSource
|
|
4982
|
+
* @type {CzmlDataSource.UpdaterFunction[]}
|
|
4983
|
+
*/
|
|
4984
|
+
CzmlDataSource.updaters = [
|
|
4985
|
+
processBillboard,
|
|
4986
|
+
processBox,
|
|
4987
|
+
processCorridor,
|
|
4988
|
+
processCylinder,
|
|
4989
|
+
processEllipse,
|
|
4990
|
+
processEllipsoid,
|
|
4991
|
+
processLabel,
|
|
4992
|
+
processModel,
|
|
4993
|
+
processName,
|
|
4994
|
+
processDescription,
|
|
4995
|
+
processPath,
|
|
4996
|
+
processPoint,
|
|
4997
|
+
processPolygon,
|
|
4998
|
+
processPolyline,
|
|
4999
|
+
processPolylineVolume,
|
|
5000
|
+
processProperties,
|
|
5001
|
+
processRectangle,
|
|
5002
|
+
processPosition,
|
|
5003
|
+
processTileset,
|
|
5004
|
+
processViewFrom,
|
|
5005
|
+
processWall,
|
|
5006
|
+
processOrientation,
|
|
5007
|
+
processAvailability,
|
|
5008
|
+
];
|
|
5009
|
+
|
|
5010
|
+
/**
|
|
5011
|
+
* Add the provided updater to the list of updaters if not already included
|
|
5012
|
+
* @private
|
|
5013
|
+
* @param {CzmlDataSource.UpdaterFunction} updater
|
|
5014
|
+
*/
|
|
5015
|
+
CzmlDataSource.registerUpdater = function (updater) {
|
|
5016
|
+
if (!CzmlDataSource.updaters.includes(updater)) {
|
|
5017
|
+
CzmlDataSource.updaters.push(updater);
|
|
5018
|
+
}
|
|
5019
|
+
};
|
|
5020
|
+
|
|
5021
|
+
/**
|
|
5022
|
+
* Remove the provided updater from the list of updaters if already included
|
|
5023
|
+
* @private
|
|
5024
|
+
* @param {CzmlDataSource.UpdaterFunction} updater
|
|
5025
|
+
*/
|
|
5026
|
+
CzmlDataSource.unregisterUpdater = function (updater) {
|
|
5027
|
+
if (CzmlDataSource.updaters.includes(updater)) {
|
|
5028
|
+
const index = CzmlDataSource.updaters.indexOf(updater);
|
|
5029
|
+
CzmlDataSource.updaters.splice(index, 1);
|
|
5030
|
+
}
|
|
5031
|
+
};
|
|
5032
|
+
|
|
5033
|
+
/**
|
|
5034
|
+
* Processes the provided url or CZML object without clearing any existing data.
|
|
5035
|
+
*
|
|
5036
|
+
* @param {Resource|string|object} czml A url or CZML object to be processed.
|
|
5037
|
+
* @param {CzmlDataSource.LoadOptions} [options] An object specifying configuration options
|
|
5038
|
+
*
|
|
5039
|
+
* @returns {Promise<CzmlDataSource>} A promise that resolves to this instances once the data is processed.
|
|
5040
|
+
*/
|
|
5041
|
+
CzmlDataSource.prototype.process = function (czml, options) {
|
|
5042
|
+
return load(this, czml, options, false);
|
|
5043
|
+
};
|
|
5044
|
+
|
|
5045
|
+
/**
|
|
5046
|
+
* Loads the provided url or CZML object, replacing any existing data.
|
|
5047
|
+
*
|
|
5048
|
+
* @param {Resource|string|object} czml A url or CZML object to be processed.
|
|
5049
|
+
* @param {CzmlDataSource.LoadOptions} [options] An object specifying configuration options
|
|
5050
|
+
*
|
|
5051
|
+
* @returns {Promise<CzmlDataSource>} A promise that resolves to this instances once the data is processed.
|
|
5052
|
+
*/
|
|
5053
|
+
CzmlDataSource.prototype.load = function (czml, options) {
|
|
5054
|
+
return load(this, czml, options, true);
|
|
5055
|
+
};
|
|
5056
|
+
|
|
5057
|
+
/**
|
|
5058
|
+
* Updates the data source to the provided time. This function is optional and
|
|
5059
|
+
* is not required to be implemented. It is provided for data sources which
|
|
5060
|
+
* retrieve data based on the current animation time or scene state.
|
|
5061
|
+
* If implemented, update will be called by {@link DataSourceDisplay} once a frame.
|
|
5062
|
+
*
|
|
5063
|
+
* @param {JulianDate} time The simulation time.
|
|
5064
|
+
* @returns {boolean} True if this data source is ready to be displayed at the provided time, false otherwise.
|
|
5065
|
+
*/
|
|
5066
|
+
CzmlDataSource.prototype.update = function (time) {
|
|
5067
|
+
return true;
|
|
5068
|
+
};
|
|
5069
|
+
|
|
5070
|
+
/**
|
|
5071
|
+
* A helper function used by custom CZML updater functions
|
|
5072
|
+
* which creates or updates a {@link Property} from a CZML packet.
|
|
5073
|
+
* @function
|
|
5074
|
+
*
|
|
5075
|
+
* @param {Function} type The constructor function for the property being processed.
|
|
5076
|
+
* @param {object} object The object on which the property will be added or updated.
|
|
5077
|
+
* @param {string} propertyName The name of the property on the object.
|
|
5078
|
+
* @param {object} packetData The CZML packet being processed.
|
|
5079
|
+
* @param {TimeInterval} interval A constraining interval for which the data is valid.
|
|
5080
|
+
* @param {string} sourceUri The originating uri of the data being processed.
|
|
5081
|
+
* @param {EntityCollection} entityCollection The collection being processsed.
|
|
5082
|
+
*/
|
|
5083
|
+
CzmlDataSource.processPacketData = processPacketData;
|
|
5084
|
+
|
|
5085
|
+
/**
|
|
5086
|
+
* A helper function used by custom CZML updater functions
|
|
5087
|
+
* which creates or updates a {@link PositionProperty} from a CZML packet.
|
|
5088
|
+
* @function
|
|
5089
|
+
*
|
|
5090
|
+
* @param {object} object The object on which the property will be added or updated.
|
|
5091
|
+
* @param {string} propertyName The name of the property on the object.
|
|
5092
|
+
* @param {object} packetData The CZML packet being processed.
|
|
5093
|
+
* @param {TimeInterval} interval A constraining interval for which the data is valid.
|
|
5094
|
+
* @param {string} sourceUri The originating uri of the data being processed.
|
|
5095
|
+
* @param {EntityCollection} entityCollection The collection being processsed.
|
|
5096
|
+
*/
|
|
5097
|
+
CzmlDataSource.processPositionPacketData = processPositionPacketData;
|
|
5098
|
+
|
|
5099
|
+
/**
|
|
5100
|
+
* A helper function used by custom CZML updater functions
|
|
5101
|
+
* which creates or updates a {@link MaterialProperty} from a CZML packet.
|
|
5102
|
+
* @function
|
|
5103
|
+
*
|
|
5104
|
+
* @param {object} object The object on which the property will be added or updated.
|
|
5105
|
+
* @param {string} propertyName The name of the property on the object.
|
|
5106
|
+
* @param {object} packetData The CZML packet being processed.
|
|
5107
|
+
* @param {TimeInterval} interval A constraining interval for which the data is valid.
|
|
5108
|
+
* @param {string} sourceUri The originating uri of the data being processed.
|
|
5109
|
+
* @param {EntityCollection} entityCollection The collection being processsed.
|
|
5110
|
+
*/
|
|
5111
|
+
CzmlDataSource.processMaterialPacketData = processMaterialPacketData;
|
|
5112
|
+
|
|
5113
|
+
CzmlDataSource._processCzml = function (
|
|
5114
|
+
czml,
|
|
5115
|
+
entityCollection,
|
|
5116
|
+
sourceUri,
|
|
5117
|
+
updaterFunctions,
|
|
5118
|
+
dataSource,
|
|
5119
|
+
) {
|
|
5120
|
+
updaterFunctions = updaterFunctions ?? CzmlDataSource.updaters;
|
|
5121
|
+
|
|
5122
|
+
if (Array.isArray(czml)) {
|
|
5123
|
+
for (let i = 0, len = czml.length; i < len; ++i) {
|
|
5124
|
+
processCzmlPacket(
|
|
5125
|
+
czml[i],
|
|
5126
|
+
entityCollection,
|
|
5127
|
+
updaterFunctions,
|
|
5128
|
+
sourceUri,
|
|
5129
|
+
dataSource,
|
|
5130
|
+
);
|
|
5131
|
+
}
|
|
5132
|
+
} else {
|
|
5133
|
+
processCzmlPacket(
|
|
5134
|
+
czml,
|
|
5135
|
+
entityCollection,
|
|
5136
|
+
updaterFunctions,
|
|
5137
|
+
sourceUri,
|
|
5138
|
+
dataSource,
|
|
5139
|
+
);
|
|
5140
|
+
}
|
|
5141
|
+
};
|
|
5142
|
+
export default CzmlDataSource;
|