org.outernet.cesium-unity 1.15.3-linux.1
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/CHANGES.md +420 -0
- package/CHANGES.md.meta +7 -0
- package/Editor/BuildCesiumForUnity.cs +186 -0
- package/Editor/BuildCesiumForUnity.cs.meta +11 -0
- package/Editor/Cesium3DTilesetEditor.cs +542 -0
- package/Editor/Cesium3DTilesetEditor.cs.meta +11 -0
- package/Editor/CesiumBingMapsRasterOverlayEditor.cs +66 -0
- package/Editor/CesiumBingMapsRasterOverlayEditor.cs.meta +11 -0
- package/Editor/CesiumCameraControllerEditor.cs +174 -0
- package/Editor/CesiumCameraControllerEditor.cs.meta +11 -0
- package/Editor/CesiumCameraManagerEditor.cs +65 -0
- package/Editor/CesiumCameraManagerEditor.cs.meta +11 -0
- package/Editor/CesiumCartographicPolygonEditor.cs +23 -0
- package/Editor/CesiumCartographicPolygonEditor.cs.meta +11 -0
- package/Editor/CesiumDebugColorizeTilesRasterOverlayEditor.cs +41 -0
- package/Editor/CesiumDebugColorizeTilesRasterOverlayEditor.cs.meta +11 -0
- package/Editor/CesiumEditor.asmdef +26 -0
- package/Editor/CesiumEditor.asmdef.meta +7 -0
- package/Editor/CesiumEditorStyle.cs +188 -0
- package/Editor/CesiumEditorStyle.cs.meta +11 -0
- package/Editor/CesiumEditorUtility.cs +394 -0
- package/Editor/CesiumEditorUtility.cs.meta +11 -0
- package/Editor/CesiumEditorWindow.cs +447 -0
- package/Editor/CesiumEditorWindow.cs.meta +11 -0
- package/Editor/CesiumFlyToControllerEditor.cs +76 -0
- package/Editor/CesiumFlyToControllerEditor.cs.meta +11 -0
- package/Editor/CesiumGeoreferenceEditor.cs +277 -0
- package/Editor/CesiumGeoreferenceEditor.cs.meta +11 -0
- package/Editor/CesiumGlobeAnchorEditor.cs +202 -0
- package/Editor/CesiumGlobeAnchorEditor.cs.meta +11 -0
- package/Editor/CesiumInspectorGUI.cs +187 -0
- package/Editor/CesiumInspectorGUI.cs.meta +11 -0
- package/Editor/CesiumIonAsset.cs +192 -0
- package/Editor/CesiumIonAsset.cs.meta +11 -0
- package/Editor/CesiumIonAssetsWindow.cs +257 -0
- package/Editor/CesiumIonAssetsWindow.cs.meta +11 -0
- package/Editor/CesiumIonRasterOverlayEditor.cs +87 -0
- package/Editor/CesiumIonRasterOverlayEditor.cs.meta +11 -0
- package/Editor/CesiumIonServerManager.cs +153 -0
- package/Editor/CesiumIonServerManager.cs.meta +11 -0
- package/Editor/CesiumIonServerSelector.cs +127 -0
- package/Editor/CesiumIonServerSelector.cs.meta +11 -0
- package/Editor/CesiumIonSession.cs +102 -0
- package/Editor/CesiumIonSession.cs.meta +11 -0
- package/Editor/CesiumPolygonRasterOverlayEditor.cs +102 -0
- package/Editor/CesiumPolygonRasterOverlayEditor.cs.meta +11 -0
- package/Editor/CesiumRasterOverlayEditor.cs +230 -0
- package/Editor/CesiumRasterOverlayEditor.cs.meta +11 -0
- package/Editor/CesiumSubSceneEditor.cs +201 -0
- package/Editor/CesiumSubSceneEditor.cs.meta +11 -0
- package/Editor/CesiumTileMapServiceRasterOverlayEditor.cs +88 -0
- package/Editor/CesiumTileMapServiceRasterOverlayEditor.cs.meta +11 -0
- package/Editor/CesiumWebMapServiceRasterOverlayEditor.cs +111 -0
- package/Editor/CesiumWebMapServiceRasterOverlayEditor.cs.meta +11 -0
- package/Editor/CesiumWebMapTileServiceRasterOverlayEditor.cs +277 -0
- package/Editor/CesiumWebMapTileServiceRasterOverlayEditor.cs.meta +3 -0
- package/Editor/CompileCesiumForUnityNative.cs +581 -0
- package/Editor/CompileCesiumForUnityNative.cs.meta +11 -0
- package/Editor/ConfigureReinterop.cs +255 -0
- package/Editor/ConfigureReinterop.cs.meta +11 -0
- package/Editor/Helpers.cs +102 -0
- package/Editor/Helpers.cs.meta +11 -0
- package/Editor/IonAssetsMultiColumnHeader.cs +45 -0
- package/Editor/IonAssetsMultiColumnHeader.cs.meta +11 -0
- package/Editor/IonAssetsTreeView.cs +214 -0
- package/Editor/IonAssetsTreeView.cs.meta +11 -0
- package/Editor/IonMissingAssetWindow.cs +65 -0
- package/Editor/IonMissingAssetWindow.cs.meta +11 -0
- package/Editor/IonTokenTroubleshootingWindow.cs +615 -0
- package/Editor/IonTokenTroubleshootingWindow.cs.meta +11 -0
- package/Editor/NativeDownloadHandler.cs +35 -0
- package/Editor/NativeDownloadHandler.cs.meta +11 -0
- package/Editor/QuickAddItem.cs +43 -0
- package/Editor/QuickAddItem.cs.meta +11 -0
- package/Editor/Resources/Cesium-128x128.png +0 -0
- package/Editor/Resources/Cesium-128x128.png.meta +98 -0
- package/Editor/Resources/Cesium-24x24.png +0 -0
- package/Editor/Resources/Cesium-24x24.png.meta +123 -0
- package/Editor/Resources/Cesium-64x64.png +0 -0
- package/Editor/Resources/Cesium-64x64.png.meta +98 -0
- package/Editor/Resources/Cesium-for-Unity-dark.png +0 -0
- package/Editor/Resources/Cesium-for-Unity-dark.png.meta +123 -0
- package/Editor/Resources/Cesium-for-Unity-light.png +0 -0
- package/Editor/Resources/Cesium-for-Unity-light.png.meta +123 -0
- package/Editor/Resources/Cesium-icon-16x16.png +0 -0
- package/Editor/Resources/Cesium-icon-16x16.png.meta +98 -0
- package/Editor/Resources/FontAwesome/attribution.txt +9 -0
- package/Editor/Resources/FontAwesome/attribution.txt.meta +7 -0
- package/Editor/Resources/FontAwesome/book-reader-solid.png +0 -0
- package/Editor/Resources/FontAwesome/book-reader-solid.png.meta +98 -0
- package/Editor/Resources/FontAwesome/book-reader-solid.svg +1 -0
- package/Editor/Resources/FontAwesome/book-reader-solid.svg.meta +7 -0
- package/Editor/Resources/FontAwesome/check-solid.png +0 -0
- package/Editor/Resources/FontAwesome/check-solid.png.meta +98 -0
- package/Editor/Resources/FontAwesome/check-solid.svg +1 -0
- package/Editor/Resources/FontAwesome/check-solid.svg.meta +7 -0
- package/Editor/Resources/FontAwesome/cloud-upload-alt-solid.png +0 -0
- package/Editor/Resources/FontAwesome/cloud-upload-alt-solid.png.meta +98 -0
- package/Editor/Resources/FontAwesome/cloud-upload-alt-solid.svg +1 -0
- package/Editor/Resources/FontAwesome/cloud-upload-alt-solid.svg.meta +7 -0
- package/Editor/Resources/FontAwesome/folder.png +0 -0
- package/Editor/Resources/FontAwesome/folder.png.meta +147 -0
- package/Editor/Resources/FontAwesome/folder.svg +5 -0
- package/Editor/Resources/FontAwesome/folder.svg.meta +7 -0
- package/Editor/Resources/FontAwesome/hands-helping-solid.png +0 -0
- package/Editor/Resources/FontAwesome/hands-helping-solid.png.meta +98 -0
- package/Editor/Resources/FontAwesome/hands-helping-solid.svg +1 -0
- package/Editor/Resources/FontAwesome/hands-helping-solid.svg.meta +7 -0
- package/Editor/Resources/FontAwesome/key-solid.png +0 -0
- package/Editor/Resources/FontAwesome/key-solid.png.meta +98 -0
- package/Editor/Resources/FontAwesome/key-solid.svg +1 -0
- package/Editor/Resources/FontAwesome/key-solid.svg.meta +7 -0
- package/Editor/Resources/FontAwesome/plus-solid.png +0 -0
- package/Editor/Resources/FontAwesome/plus-solid.png.meta +98 -0
- package/Editor/Resources/FontAwesome/plus-solid.svg +1 -0
- package/Editor/Resources/FontAwesome/plus-solid.svg.meta +7 -0
- package/Editor/Resources/FontAwesome/sign-out-alt-solid.png +0 -0
- package/Editor/Resources/FontAwesome/sign-out-alt-solid.png.meta +98 -0
- package/Editor/Resources/FontAwesome/sign-out-alt-solid.svg +1 -0
- package/Editor/Resources/FontAwesome/sign-out-alt-solid.svg.meta +7 -0
- package/Editor/Resources/FontAwesome/sync-alt-solid.png +0 -0
- package/Editor/Resources/FontAwesome/sync-alt-solid.png.meta +98 -0
- package/Editor/Resources/FontAwesome/sync-alt-solid.svg +1 -0
- package/Editor/Resources/FontAwesome/sync-alt-solid.svg.meta +7 -0
- package/Editor/Resources/FontAwesome/times-solid.png +0 -0
- package/Editor/Resources/FontAwesome/times-solid.png.meta +98 -0
- package/Editor/Resources/FontAwesome/times-solid.svg +1 -0
- package/Editor/Resources/FontAwesome/times-solid.svg.meta +7 -0
- package/Editor/Resources/FontAwesome.meta +8 -0
- package/Editor/Resources.meta +8 -0
- package/Editor/SelectIonTokenWindow.cs +249 -0
- package/Editor/SelectIonTokenWindow.cs.meta +11 -0
- package/Editor/arm64.meta +8 -0
- package/Editor/csc.rsp +1 -0
- package/Editor/csc.rsp.meta +7 -0
- package/Editor/libCesiumForUnityNative-Editor.so +0 -0
- package/Editor/libCesiumForUnityNative-Editor.so.meta +2 -0
- package/Editor/libCesiumForUnityNative-Runtime.so +0 -0
- package/Editor/libCesiumForUnityNative-Runtime.so.meta +2 -0
- package/Editor/x86_64.meta +8 -0
- package/Editor.meta +8 -0
- package/LICENSE +201 -0
- package/LICENSE.meta +7 -0
- package/Plugins/Standalone/libCesiumForUnityNative-Runtime.so +0 -0
- package/Plugins/Standalone/libCesiumForUnityNative-Runtime.so.meta +2 -0
- package/Plugins/Standalone.meta +8 -0
- package/Plugins.meta +8 -0
- package/README.md +39 -0
- package/README.md.meta +7 -0
- package/Reinterop.deps.json +172 -0
- package/Reinterop.deps.json.meta +7 -0
- package/Reinterop.dll +0 -0
- package/Reinterop.dll.meta +79 -0
- package/Runtime/Cesium3DTile.cs +37 -0
- package/Runtime/Cesium3DTile.cs.meta +11 -0
- package/Runtime/Cesium3DTileset.cs +788 -0
- package/Runtime/Cesium3DTileset.cs.meta +11 -0
- package/Runtime/Cesium3DTilesetLoadFailureDetails.cs +65 -0
- package/Runtime/Cesium3DTilesetLoadFailureDetails.cs.meta +11 -0
- package/Runtime/CesiumBackwardCompatibility.cs +163 -0
- package/Runtime/CesiumBackwardCompatibility.cs.meta +11 -0
- package/Runtime/CesiumBingMapsRasterOverlay.cs +72 -0
- package/Runtime/CesiumBingMapsRasterOverlay.cs.meta +11 -0
- package/Runtime/CesiumCameraController.cs +827 -0
- package/Runtime/CesiumCameraController.cs.meta +11 -0
- package/Runtime/CesiumCameraManager.cs +105 -0
- package/Runtime/CesiumCameraManager.cs.meta +11 -0
- package/Runtime/CesiumCartographicPolygon.cs +152 -0
- package/Runtime/CesiumCartographicPolygon.cs.meta +11 -0
- package/Runtime/CesiumCreditSystem.cs +343 -0
- package/Runtime/CesiumCreditSystem.cs.meta +11 -0
- package/Runtime/CesiumCreditSystemUI.cs +402 -0
- package/Runtime/CesiumCreditSystemUI.cs.meta +11 -0
- package/Runtime/CesiumDebugColorizeTilesRasterOverlay.cs +21 -0
- package/Runtime/CesiumDebugColorizeTilesRasterOverlay.cs.meta +11 -0
- package/Runtime/CesiumEllipsoid.cs +107 -0
- package/Runtime/CesiumEllipsoid.cs.meta +11 -0
- package/Runtime/CesiumFeature.cs +279 -0
- package/Runtime/CesiumFeature.cs.meta +11 -0
- package/Runtime/CesiumFeatureIdAttribute.cs +61 -0
- package/Runtime/CesiumFeatureIdAttribute.cs.meta +11 -0
- package/Runtime/CesiumFeatureIdSet.cs +165 -0
- package/Runtime/CesiumFeatureIdSet.cs.meta +11 -0
- package/Runtime/CesiumFeatureIdTexture.cs +68 -0
- package/Runtime/CesiumFeatureIdTexture.cs.meta +11 -0
- package/Runtime/CesiumFlyToController.cs +539 -0
- package/Runtime/CesiumFlyToController.cs.meta +11 -0
- package/Runtime/CesiumGeoreference.cs +628 -0
- package/Runtime/CesiumGeoreference.cs.meta +11 -0
- package/Runtime/CesiumGlobeAnchor.cs +664 -0
- package/Runtime/CesiumGlobeAnchor.cs.meta +11 -0
- package/Runtime/CesiumGlobeAnchorBackwardCompatibility0dot2dot0.cs +105 -0
- package/Runtime/CesiumGlobeAnchorBackwardCompatibility0dot2dot0.cs.meta +11 -0
- package/Runtime/CesiumIntMatN.cs +398 -0
- package/Runtime/CesiumIntMatN.cs.meta +11 -0
- package/Runtime/CesiumIntVecN.cs +525 -0
- package/Runtime/CesiumIntVecN.cs.meta +11 -0
- package/Runtime/CesiumIonRasterOverlay.cs +110 -0
- package/Runtime/CesiumIonRasterOverlay.cs.meta +11 -0
- package/Runtime/CesiumIonServer.cs +137 -0
- package/Runtime/CesiumIonServer.cs.meta +11 -0
- package/Runtime/CesiumMetadata.cs +33 -0
- package/Runtime/CesiumMetadata.cs.meta +11 -0
- package/Runtime/CesiumMetadataValue.cs +1764 -0
- package/Runtime/CesiumMetadataValue.cs.meta +11 -0
- package/Runtime/CesiumMetadataValueType.cs +203 -0
- package/Runtime/CesiumMetadataValueType.cs.meta +11 -0
- package/Runtime/CesiumModelMetadata.cs +26 -0
- package/Runtime/CesiumModelMetadata.cs.meta +11 -0
- package/Runtime/CesiumObjectPool.cs +74 -0
- package/Runtime/CesiumObjectPool.cs.meta +11 -0
- package/Runtime/CesiumObjectPools.cs +39 -0
- package/Runtime/CesiumObjectPools.cs.meta +11 -0
- package/Runtime/CesiumOriginShift.cs +146 -0
- package/Runtime/CesiumOriginShift.cs.meta +11 -0
- package/Runtime/CesiumPointCloudRenderer.cs +246 -0
- package/Runtime/CesiumPointCloudRenderer.cs.meta +11 -0
- package/Runtime/CesiumPointCloudShading.cs +76 -0
- package/Runtime/CesiumPointCloudShading.cs.meta +11 -0
- package/Runtime/CesiumPolygonRasterOverlay.cs +109 -0
- package/Runtime/CesiumPolygonRasterOverlay.cs.meta +11 -0
- package/Runtime/CesiumPrimitiveFeatures.cs +130 -0
- package/Runtime/CesiumPrimitiveFeatures.cs.meta +11 -0
- package/Runtime/CesiumPropertyArray.cs +64 -0
- package/Runtime/CesiumPropertyArray.cs.meta +11 -0
- package/Runtime/CesiumPropertyTable.cs +126 -0
- package/Runtime/CesiumPropertyTable.cs.meta +11 -0
- package/Runtime/CesiumPropertyTableProperty.cs +1734 -0
- package/Runtime/CesiumPropertyTableProperty.cs.meta +11 -0
- package/Runtime/CesiumRasterOverlay.cs +239 -0
- package/Runtime/CesiumRasterOverlay.cs.meta +11 -0
- package/Runtime/CesiumRasterOverlayLoadFailureDetails.cs +65 -0
- package/Runtime/CesiumRasterOverlayLoadFailureDetails.cs.meta +11 -0
- package/Runtime/CesiumRuntime.asmdef +32 -0
- package/Runtime/CesiumRuntime.asmdef.meta +7 -0
- package/Runtime/CesiumRuntime.cs +3 -0
- package/Runtime/CesiumRuntime.cs.meta +11 -0
- package/Runtime/CesiumRuntimeSettings.cs +188 -0
- package/Runtime/CesiumRuntimeSettings.cs.meta +11 -0
- package/Runtime/CesiumSampleHeightResult.cs +47 -0
- package/Runtime/CesiumSampleHeightResult.cs.meta +11 -0
- package/Runtime/CesiumSimplePlanarEllipsoidCurve.cs +93 -0
- package/Runtime/CesiumSimplePlanarEllipsoidCurve.cs.meta +11 -0
- package/Runtime/CesiumSubScene.cs +473 -0
- package/Runtime/CesiumSubScene.cs.meta +11 -0
- package/Runtime/CesiumTileExcluder.cs +47 -0
- package/Runtime/CesiumTileExcluder.cs.meta +11 -0
- package/Runtime/CesiumTileMapServiceRasterOverlay.cs +93 -0
- package/Runtime/CesiumTileMapServiceRasterOverlay.cs.meta +11 -0
- package/Runtime/CesiumWebMapServiceRasterOverlay.cs +129 -0
- package/Runtime/CesiumWebMapServiceRasterOverlay.cs.meta +11 -0
- package/Runtime/CesiumWebMapTileServiceRasterOverlay.cs +414 -0
- package/Runtime/CesiumWebMapTileServiceRasterOverlay.cs.meta +3 -0
- package/Runtime/CesiumWgs84Ellipsoid.cs +75 -0
- package/Runtime/CesiumWgs84Ellipsoid.cs.meta +11 -0
- package/Runtime/ConfigureReinterop.cs +926 -0
- package/Runtime/ConfigureReinterop.cs.meta +11 -0
- package/Runtime/Helpers.cs +122 -0
- package/Runtime/Helpers.cs.meta +11 -0
- package/Runtime/ICesiumRestartable.cs +17 -0
- package/Runtime/ICesiumRestartable.cs.meta +11 -0
- package/Runtime/NativeCoroutine.cs +28 -0
- package/Runtime/NativeCoroutine.cs.meta +11 -0
- package/Runtime/NativeDownloadHandler.cs +29 -0
- package/Runtime/NativeDownloadHandler.cs.meta +11 -0
- package/Runtime/Resources/CesiumCreditSystem.prefab +78 -0
- package/Runtime/Resources/CesiumCreditSystem.prefab.meta +7 -0
- package/Runtime/Resources/CesiumCreditSystemRuntimeTheme.tss +2 -0
- package/Runtime/Resources/CesiumCreditSystemRuntimeTheme.tss.meta +11 -0
- package/Runtime/Resources/CesiumCreditSystemUI.uxml +4 -0
- package/Runtime/Resources/CesiumCreditSystemUI.uxml.meta +10 -0
- package/Runtime/Resources/CesiumCreditSystemUIPanelSettings.asset +38 -0
- package/Runtime/Resources/CesiumCreditSystemUIPanelSettings.asset.meta +8 -0
- package/Runtime/Resources/CesiumDefaultTilesetMaterial.mat +232 -0
- package/Runtime/Resources/CesiumDefaultTilesetMaterial.mat.meta +8 -0
- package/Runtime/Resources/CesiumDefaultTilesetShader.shadergraph +14271 -0
- package/Runtime/Resources/CesiumDefaultTilesetShader.shadergraph.meta +10 -0
- package/Runtime/Resources/CesiumPointCloudShading.hlsl +156 -0
- package/Runtime/Resources/CesiumPointCloudShading.hlsl.meta +7 -0
- package/Runtime/Resources/CesiumPointCloudShadingMaterial.mat +125 -0
- package/Runtime/Resources/CesiumPointCloudShadingMaterial.mat.meta +8 -0
- package/Runtime/Resources/CesiumPointCloudShadingShader.shader +73 -0
- package/Runtime/Resources/CesiumPointCloudShadingShader.shader.meta +10 -0
- package/Runtime/Resources/CesiumRasterOverlay.shadersubgraph +2207 -0
- package/Runtime/Resources/CesiumRasterOverlay.shadersubgraph.meta +10 -0
- package/Runtime/Resources/CesiumSelectTexCoords.shadersubgraph +722 -0
- package/Runtime/Resources/CesiumSelectTexCoords.shadersubgraph.meta +10 -0
- package/Runtime/Resources/CesiumUnlitTilesetMaterial.mat +261 -0
- package/Runtime/Resources/CesiumUnlitTilesetMaterial.mat.meta +8 -0
- package/Runtime/Resources/CesiumUnlitTilesetShader.shadergraph +5873 -0
- package/Runtime/Resources/CesiumUnlitTilesetShader.shadergraph.meta +10 -0
- package/Runtime/Resources/DynamicCamera.prefab +253 -0
- package/Runtime/Resources/DynamicCamera.prefab.meta +7 -0
- package/Runtime/Resources/TransformTextureCoordinates.shadersubgraph +2171 -0
- package/Runtime/Resources/TransformTextureCoordinates.shadersubgraph.meta +10 -0
- package/Runtime/Resources/green1x1.png +0 -0
- package/Runtime/Resources/green1x1.png.meta +123 -0
- package/Runtime/Resources.meta +8 -0
- package/Runtime/TestGltfModel.cs +56 -0
- package/Runtime/TestGltfModel.cs.meta +11 -0
- package/Runtime/TestReinterop.cs +21 -0
- package/Runtime/TestReinterop.cs.meta +11 -0
- package/Runtime/UnityLifetime.cs +27 -0
- package/Runtime/UnityLifetime.cs.meta +11 -0
- package/Runtime/WaitForTask.cs +25 -0
- package/Runtime/WaitForTask.cs.meta +11 -0
- package/Runtime/csc.rsp +1 -0
- package/Runtime/csc.rsp.meta +7 -0
- package/Runtime.meta +8 -0
- package/ThirdParty.json +27 -0
- package/ThirdParty.json.meta +7 -0
- package/WGS84.asset +18 -0
- package/WGS84.asset.meta +8 -0
- package/package.json +29 -0
- package/package.json.meta +7 -0
|
@@ -0,0 +1,277 @@
|
|
|
1
|
+
using UnityEditor;
|
|
2
|
+
using UnityEngine;
|
|
3
|
+
|
|
4
|
+
namespace CesiumForUnity
|
|
5
|
+
{
|
|
6
|
+
[CustomEditor(typeof(CesiumWebMapTileServiceRasterOverlay))]
|
|
7
|
+
public class CesiumWebMapTileServiceRasterOverlayEditor : Editor
|
|
8
|
+
{
|
|
9
|
+
private CesiumRasterOverlayEditor _rasterOverlayEditor;
|
|
10
|
+
|
|
11
|
+
private SerializedProperty _baseUrl;
|
|
12
|
+
private SerializedProperty _layer;
|
|
13
|
+
private SerializedProperty _style;
|
|
14
|
+
private SerializedProperty _format;
|
|
15
|
+
private SerializedProperty _tileMatrixSetID;
|
|
16
|
+
private SerializedProperty _tileMatrixSetLabelPrefix;
|
|
17
|
+
private SerializedProperty _specifyTileMatrixSetLabels;
|
|
18
|
+
private SerializedProperty _tileMatrixSetLabels;
|
|
19
|
+
private SerializedProperty _projection;
|
|
20
|
+
private SerializedProperty _specifyTilingScheme;
|
|
21
|
+
private SerializedProperty _rootTilesX;
|
|
22
|
+
private SerializedProperty _rootTilesY;
|
|
23
|
+
private SerializedProperty _rectangleWest;
|
|
24
|
+
private SerializedProperty _rectangleSouth;
|
|
25
|
+
private SerializedProperty _rectangleEast;
|
|
26
|
+
private SerializedProperty _rectangleNorth;
|
|
27
|
+
private SerializedProperty _tileWidth;
|
|
28
|
+
private SerializedProperty _tileHeight;
|
|
29
|
+
private SerializedProperty _specifyZoomLevels;
|
|
30
|
+
private SerializedProperty _minimumLevel;
|
|
31
|
+
private SerializedProperty _maximumLevel;
|
|
32
|
+
|
|
33
|
+
private void OnEnable()
|
|
34
|
+
{
|
|
35
|
+
this._rasterOverlayEditor =
|
|
36
|
+
(CesiumRasterOverlayEditor)Editor.CreateEditor(
|
|
37
|
+
this.target,
|
|
38
|
+
typeof(CesiumRasterOverlayEditor));
|
|
39
|
+
|
|
40
|
+
this._baseUrl = this.serializedObject.FindProperty("_baseUrl");
|
|
41
|
+
this._layer = this.serializedObject.FindProperty("_layer");
|
|
42
|
+
this._style = this.serializedObject.FindProperty("_style");
|
|
43
|
+
this._format = this.serializedObject.FindProperty("_format");
|
|
44
|
+
this._tileMatrixSetID = this.serializedObject.FindProperty("_tileMatrixSetID");
|
|
45
|
+
this._tileMatrixSetLabelPrefix = this.serializedObject.FindProperty("_tileMatrixSetLabelPrefix");
|
|
46
|
+
this._specifyTileMatrixSetLabels = this.serializedObject.FindProperty("_specifyTileMatrixSetLabels");
|
|
47
|
+
this._tileMatrixSetLabels = this.serializedObject.FindProperty("_tileMatrixSetLabels");
|
|
48
|
+
this._projection = this.serializedObject.FindProperty("_projection");
|
|
49
|
+
this._specifyTilingScheme = this.serializedObject.FindProperty("_specifyTilingScheme");
|
|
50
|
+
this._rootTilesX = this.serializedObject.FindProperty("_rootTilesX");
|
|
51
|
+
this._rootTilesY = this.serializedObject.FindProperty("_rootTilesY");
|
|
52
|
+
this._rectangleWest = this.serializedObject.FindProperty("_rectangleWest");
|
|
53
|
+
this._rectangleSouth = this.serializedObject.FindProperty("_rectangleSouth");
|
|
54
|
+
this._rectangleEast = this.serializedObject.FindProperty("_rectangleEast");
|
|
55
|
+
this._rectangleNorth = this.serializedObject.FindProperty("_rectangleNorth");
|
|
56
|
+
this._tileWidth = this.serializedObject.FindProperty("_tileWidth");
|
|
57
|
+
this._tileHeight = this.serializedObject.FindProperty("_tileHeight");
|
|
58
|
+
this._specifyZoomLevels = this.serializedObject.FindProperty("_specifyZoomLevels");
|
|
59
|
+
this._minimumLevel = this.serializedObject.FindProperty("_minimumLevel");
|
|
60
|
+
this._maximumLevel = this.serializedObject.FindProperty("_maximumLevel");
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
private void OnDisable()
|
|
64
|
+
{
|
|
65
|
+
if (this._rasterOverlayEditor != null)
|
|
66
|
+
{
|
|
67
|
+
DestroyImmediate(this._rasterOverlayEditor);
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
public override void OnInspectorGUI()
|
|
72
|
+
{
|
|
73
|
+
this.serializedObject.Update();
|
|
74
|
+
|
|
75
|
+
EditorGUIUtility.labelWidth = CesiumEditorStyle.inspectorLabelWidth;
|
|
76
|
+
this.DrawBasicProperties();
|
|
77
|
+
EditorGUILayout.Space(5);
|
|
78
|
+
this.DrawTileMatrixSetProperties();
|
|
79
|
+
EditorGUILayout.Space(5);
|
|
80
|
+
this.DrawTilingSchemeProperties();
|
|
81
|
+
EditorGUILayout.Space(5);
|
|
82
|
+
this.DrawLevelOfDetailContent();
|
|
83
|
+
EditorGUILayout.Space(5);
|
|
84
|
+
this.DrawRasterOverlayProperties();
|
|
85
|
+
|
|
86
|
+
this.serializedObject.ApplyModifiedProperties();
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
private void DrawBasicProperties()
|
|
90
|
+
{
|
|
91
|
+
GUIContent baseUrlContent = new GUIContent(
|
|
92
|
+
"Base URL",
|
|
93
|
+
"The base URL of the Web Map Tile Service (WMTS)." +
|
|
94
|
+
"\n\n" +
|
|
95
|
+
"e.g." +
|
|
96
|
+
"\n\n" +
|
|
97
|
+
"https://tile.openstreetmap.org/{TileMatrix}/{TileCol}/{TileRow}.png");
|
|
98
|
+
EditorGUILayout.DelayedTextField(this._baseUrl, baseUrlContent);
|
|
99
|
+
|
|
100
|
+
GUIContent layerContent = new GUIContent(
|
|
101
|
+
"Layer",
|
|
102
|
+
"The layer name for WMTS requests.");
|
|
103
|
+
EditorGUILayout.DelayedTextField(this._layer, layerContent);
|
|
104
|
+
|
|
105
|
+
GUIContent styleContent = new GUIContent(
|
|
106
|
+
"Style",
|
|
107
|
+
"The style name for WMTS requests.");
|
|
108
|
+
EditorGUILayout.DelayedTextField(this._style, styleContent);
|
|
109
|
+
|
|
110
|
+
GUIContent formatContent = new GUIContent(
|
|
111
|
+
"Format",
|
|
112
|
+
"The MIME type for images to retrieve from the server.");
|
|
113
|
+
EditorGUILayout.DelayedTextField(this._format, formatContent);
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
private void DrawTileMatrixSetProperties()
|
|
117
|
+
{
|
|
118
|
+
GUILayout.Label("Tile Matrix Set Descriptors", EditorStyles.boldLabel);
|
|
119
|
+
|
|
120
|
+
GUIContent tileMatrixSetIDContent = new GUIContent(
|
|
121
|
+
"Tile Matrix Set ID",
|
|
122
|
+
"The tile matrix set identifier for WMTS requests.");
|
|
123
|
+
EditorGUILayout.DelayedTextField(this._tileMatrixSetID, tileMatrixSetIDContent);
|
|
124
|
+
|
|
125
|
+
EditorGUI.BeginDisabledGroup(this._specifyTileMatrixSetLabels.boolValue);
|
|
126
|
+
GUIContent tileMatrixSetLabelPrefixContent = new GUIContent(
|
|
127
|
+
"Tile Matrix Set Label Prefix",
|
|
128
|
+
"The prefix to use for the tile matrix set labels. For instance, setting \"EPSG:4326:\" " +
|
|
129
|
+
"as the prefix generates the list [\"EPSG:4326:0\", \"EPSG:4326:1\", \"EPSG:4326:2\", ...]." +
|
|
130
|
+
"\n\n" +
|
|
131
|
+
"Only applicable when \"Specify Tile Matrix Set Labels\" is false.");
|
|
132
|
+
EditorGUILayout.PropertyField(this._tileMatrixSetLabelPrefix, tileMatrixSetLabelPrefixContent);
|
|
133
|
+
EditorGUI.EndDisabledGroup();
|
|
134
|
+
|
|
135
|
+
GUIContent specifyTileMatrixSetLabelsContent = new GUIContent(
|
|
136
|
+
"Specify Tile Matrix Set Labels",
|
|
137
|
+
"Set this to true to manually specify the tile matrix set labels. If false, the labels " +
|
|
138
|
+
"will be constructed from the specified levels and prefix (if one is specified).");
|
|
139
|
+
EditorGUILayout.PropertyField(this._specifyTileMatrixSetLabels, specifyTileMatrixSetLabelsContent);
|
|
140
|
+
|
|
141
|
+
EditorGUI.BeginDisabledGroup(!this._specifyTileMatrixSetLabels.boolValue);
|
|
142
|
+
GUIContent tileMatrixSetLabelsContent = new GUIContent(
|
|
143
|
+
"Tile Matrix Set Label",
|
|
144
|
+
"The manually specified tile matrix set labels." +
|
|
145
|
+
"\n\n" +
|
|
146
|
+
"Only applicable when \"Specify Tile Matrix Set Labels\" is true.");
|
|
147
|
+
EditorGUILayout.PropertyField(this._tileMatrixSetLabels, tileMatrixSetLabelsContent);
|
|
148
|
+
EditorGUI.EndDisabledGroup();
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
private void DrawTilingSchemeProperties()
|
|
152
|
+
{
|
|
153
|
+
GUILayout.Label("Tiling Scheme", EditorStyles.boldLabel);
|
|
154
|
+
|
|
155
|
+
GUIContent projectionContent = new GUIContent(
|
|
156
|
+
"Projection",
|
|
157
|
+
"The type of projection used to project the WMTS imagery onto the globe. " +
|
|
158
|
+
"For instance, EPSG:4326 uses geographic projection and EPSG:3857 uses Web Mercator.");
|
|
159
|
+
EditorGUILayout.PropertyField(this._projection, projectionContent);
|
|
160
|
+
|
|
161
|
+
GUIContent specifyTilingSchemeContent = new GUIContent(
|
|
162
|
+
"Specify Tiling Scheme",
|
|
163
|
+
"Set this to true to specify the quadtree tiling scheme according to the specified root " +
|
|
164
|
+
"tile numbers and projected bounding rectangle. If false, the tiling scheme will be " +
|
|
165
|
+
"deduced from the projection.");
|
|
166
|
+
EditorGUILayout.PropertyField(this._specifyTilingScheme, specifyTilingSchemeContent);
|
|
167
|
+
|
|
168
|
+
EditorGUI.BeginDisabledGroup(!this._specifyTilingScheme.boolValue);
|
|
169
|
+
GUIContent rootTilesXContent = new GUIContent(
|
|
170
|
+
"Root Tiles X",
|
|
171
|
+
"The number of tiles corresponding to TileCol, also known as TileMatrixWidth. " +
|
|
172
|
+
"If specified, this determines the number of tiles at the root of the quadtree " +
|
|
173
|
+
"tiling scheme in the X direction." +
|
|
174
|
+
"\n\n" +
|
|
175
|
+
"Only applicable if \"Specify Tiling Scheme\" is set to true.");
|
|
176
|
+
EditorGUILayout.PropertyField(this._rootTilesX, rootTilesXContent);
|
|
177
|
+
|
|
178
|
+
GUIContent rootTilesYContent = new GUIContent(
|
|
179
|
+
"Root Tiles Y",
|
|
180
|
+
"The number of tiles corresponding to TileRow, also known as TileMatrixHeight. " +
|
|
181
|
+
"If specified, this determines the number of tiles at the root of the quadtree " +
|
|
182
|
+
"tiling scheme in the Y direction." +
|
|
183
|
+
"\n\n" +
|
|
184
|
+
"Only applicable if \"Specify Tiling Scheme\" is set to true.");
|
|
185
|
+
EditorGUILayout.PropertyField(this._rootTilesY, rootTilesYContent);
|
|
186
|
+
|
|
187
|
+
GUIContent rectangleWest = new GUIContent(
|
|
188
|
+
"Rectangle West",
|
|
189
|
+
"The west boundary of the bounding rectangle used for the quadtree tiling scheme. " +
|
|
190
|
+
"Specified in longitude degrees in the range [-180, 180]." +
|
|
191
|
+
"\n\n" +
|
|
192
|
+
"Only applicable if \"Specify Tiling Scheme\" is set to true.");
|
|
193
|
+
CesiumInspectorGUI.ClampedDoubleField(this._rectangleWest, -180, 180, rectangleWest, true);
|
|
194
|
+
|
|
195
|
+
GUIContent rectangleSouth = new GUIContent(
|
|
196
|
+
"Rectangle South",
|
|
197
|
+
"The south boundary of the bounding rectangle used for the quadtree tiling scheme. " +
|
|
198
|
+
"Specified in latitude degrees in the range [-90, 90]." +
|
|
199
|
+
"\n\n" +
|
|
200
|
+
"Only applicable if \"Specify Tiling Scheme\" is set to true.");
|
|
201
|
+
CesiumInspectorGUI.ClampedDoubleField(this._rectangleSouth, -90, 90, rectangleSouth, true);
|
|
202
|
+
|
|
203
|
+
GUIContent rectangleEast = new GUIContent(
|
|
204
|
+
"Rectangle East",
|
|
205
|
+
"The east boundary of the bounding rectangle used for the quadtree tiling scheme. " +
|
|
206
|
+
"Specified in longitude degrees in the range [-180, 180]." +
|
|
207
|
+
"\n\n" +
|
|
208
|
+
"Only applicable if \"Specify Tiling Scheme\" is set to true.");
|
|
209
|
+
CesiumInspectorGUI.ClampedDoubleField(this._rectangleEast, -180, 180, rectangleEast, true);
|
|
210
|
+
|
|
211
|
+
GUIContent rectangleNorth = new GUIContent(
|
|
212
|
+
"Rectangle North",
|
|
213
|
+
"The north boundary of the bounding rectangle used for the quadtree tiling scheme. " +
|
|
214
|
+
"Specified in latitude degrees in the range [-90, 90]." +
|
|
215
|
+
"\n\n" +
|
|
216
|
+
"Only applicable if \"Specify Tiling Scheme\" is set to true.");
|
|
217
|
+
CesiumInspectorGUI.ClampedDoubleField(this._rectangleNorth, -90, 90, rectangleNorth, true);
|
|
218
|
+
EditorGUI.EndDisabledGroup();
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
private void DrawLevelOfDetailContent()
|
|
222
|
+
{
|
|
223
|
+
GUILayout.Label("Level of Detail", EditorStyles.boldLabel);
|
|
224
|
+
|
|
225
|
+
GUIContent specifyZoomLevelsContent = new GUIContent(
|
|
226
|
+
"Specify Zoom Levels",
|
|
227
|
+
"Set this to true to directly specify the minimum and maximum zoom levels available " +
|
|
228
|
+
"from the server. If false, the minimum and maximum zoom levels will be retrieved " +
|
|
229
|
+
"from the server's tilemapresource.xml file."
|
|
230
|
+
);
|
|
231
|
+
EditorGUILayout.PropertyField(this._specifyZoomLevels, specifyZoomLevelsContent);
|
|
232
|
+
|
|
233
|
+
EditorGUI.BeginDisabledGroup(!this._specifyZoomLevels.boolValue);
|
|
234
|
+
GUIContent minimumLevelContent = new GUIContent(
|
|
235
|
+
"Minimum Level",
|
|
236
|
+
"Minimum zoom level." +
|
|
237
|
+
"\n\n" +
|
|
238
|
+
"Take care when specifying this that the number of tiles at the " +
|
|
239
|
+
"minimum level is small, such as four or less. A larger number " +
|
|
240
|
+
"is likely to result in rendering problems.");
|
|
241
|
+
EditorGUILayout.PropertyField(this._minimumLevel, minimumLevelContent);
|
|
242
|
+
|
|
243
|
+
GUIContent maximumLevelContent = new GUIContent(
|
|
244
|
+
"Maximum Level",
|
|
245
|
+
"Maximum zoom level.");
|
|
246
|
+
EditorGUILayout.PropertyField(this._maximumLevel, maximumLevelContent);
|
|
247
|
+
EditorGUI.EndDisabledGroup();
|
|
248
|
+
|
|
249
|
+
GUIContent tileWidthContent = new GUIContent(
|
|
250
|
+
"Tile Width",
|
|
251
|
+
"The width of the image tiles in pixels.");
|
|
252
|
+
CesiumInspectorGUI.ClampedIntField(
|
|
253
|
+
this._tileWidth,
|
|
254
|
+
64,
|
|
255
|
+
2048,
|
|
256
|
+
tileWidthContent);
|
|
257
|
+
|
|
258
|
+
GUIContent tileHeightContent = new GUIContent(
|
|
259
|
+
"Tile Height",
|
|
260
|
+
"The height of the image tiles in pixels.");
|
|
261
|
+
CesiumInspectorGUI.ClampedIntField(
|
|
262
|
+
this._tileHeight,
|
|
263
|
+
64,
|
|
264
|
+
2048,
|
|
265
|
+
tileHeightContent);
|
|
266
|
+
}
|
|
267
|
+
|
|
268
|
+
private void DrawRasterOverlayProperties()
|
|
269
|
+
{
|
|
270
|
+
if (this._rasterOverlayEditor != null)
|
|
271
|
+
{
|
|
272
|
+
this._rasterOverlayEditor.OnInspectorGUI();
|
|
273
|
+
}
|
|
274
|
+
}
|
|
275
|
+
}
|
|
276
|
+
}
|
|
277
|
+
|