Cesium for Unity 1.16.0
Loading...
Searching...
No Matches
CesiumUrlTemplateRasterOverlay.cs
Go to the documentation of this file.
1using Reinterop;
2using System;
3using System.Collections.Generic;
4using UnityEngine;
5
6namespace CesiumForUnity
7{
22
26 [ReinteropNativeImplementation(
27 "CesiumForUnityNative::CesiumUrlTemplateRasterOverlayImpl", "CesiumUrlTemplateRasterOverlayImpl.h")]
28 [AddComponentMenu("Cesium/Cesium URL Template Raster Overlay")]
29 [IconAttribute("Packages/com.cesium.unity/Editor/Resources/Cesium-24x24.png")]
31 {
32 [SerializeField]
33 private string _templateUrl;
34
67 public string templateUrl
68 {
69 get => this._templateUrl;
70 set
71 {
72 this._templateUrl = value;
73 this.Refresh();
74 }
75 }
76
77 [SerializeField]
79
86 {
87 get => this._projection;
88 set
89 {
90 this._projection = value;
91 this.Refresh();
92 }
93 }
94
95 [SerializeField]
96 private bool _specifyTilingScheme = false;
97
104 {
105 get => this._specifyTilingScheme;
106 set
107 {
108 this._specifyTilingScheme = value;
109 this.Refresh();
110 }
111 }
112
113 [SerializeField]
114 [Min(1)]
115 private int _rootTilesX = 1;
116
122 public int rootTilesX
123 {
124 get => this._rootTilesX;
125 set
126 {
127 this._rootTilesX = value;
128 this.Refresh();
129 }
130 }
131
132 [SerializeField]
133 [Min(1)]
134 private int _rootTilesY = 1;
135
141 public int rootTilesY
142 {
143 get => this._rootTilesY;
144 set
145 {
146 this._rootTilesY = value;
147 this.Refresh();
148 }
149 }
150
151 [SerializeField]
152 private double _rectangleWest = -180.0;
153
160 public double rectangleWest
161 {
162 get => this._rectangleWest;
163 set
164 {
165 this._rectangleWest = value;
166 this.Refresh();
167 }
168 }
169
170 [SerializeField]
171 private double _rectangleSouth = -90.0;
172
179 public double rectangleSouth
180 {
181 get => this._rectangleSouth;
182 set
183 {
184 this._rectangleSouth = value;
185 this.Refresh();
186 }
187 }
188
189 [SerializeField]
190 private double _rectangleEast = 180.0;
191
198 public double rectangleEast
199 {
200 get => this._rectangleEast;
201 set
202 {
203 this._rectangleEast = value;
204 this.Refresh();
205 }
206 }
207
208 [SerializeField]
209 private double _rectangleNorth = 90.0;
210
217 public double rectangleNorth
218 {
219 get => this._rectangleNorth;
220 set
221 {
222 this._rectangleNorth = value;
223 this.Refresh();
224 }
225 }
226
227 [SerializeField]
228 [Min(0)]
229 private int _minimumLevel = 0;
230
238 public int minimumLevel
239 {
240 get => this._minimumLevel;
241 set
242 {
243 this._minimumLevel = value;
244 this.Refresh();
245 }
246 }
247
248 [SerializeField]
249 [Min(0)]
250 private int _maximumLevel = 25;
251
255 public int maximumLevel
256 {
257 get => this._maximumLevel;
258 set
259 {
260 this._maximumLevel = value;
261 this.Refresh();
262 }
263 }
264
265 [SerializeField]
266 [Min(64)]
267 private int _tileWidth = 256;
268
272 public int tileWidth
273 {
274 get => this._tileWidth;
275 set
276 {
277 this._tileWidth = value;
278 this.Refresh();
279 }
280 }
281
282 [SerializeField]
283 [Min(64)]
284 private int _tileHeight = 256;
285
289 public int tileHeight
290 {
291 get => this._tileHeight;
292 set
293 {
294 this._tileHeight = value;
295 this.Refresh();
296 }
297 }
298
299 [SerializeField]
300 private List<HeaderEntry> _requestHeaders = new List<HeaderEntry>();
301
305 public List<HeaderEntry> requestHeaders
306 {
307 get => this._requestHeaders;
308 set
309 {
310 this._requestHeaders = value;
311 this.Refresh();
312 }
313 }
314
316 protected override partial void AddToTileset(Cesium3DTileset tileset);
318 protected override partial void RemoveFromTileset(Cesium3DTileset tileset);
319
323 [Serializable]
324 public class HeaderEntry
325 {
329 public string Name;
333 public string Value;
334 }
335 }
336}
A tileset in the 3D Tiles format.
A pyramid of 2D images - sometimes terabytes or more in size - that can be draped over a Cesium3DTile...
void Refresh()
Refreshes this overlay by calling RemoveFromTileset followed by AddToTileset.
An HTTP header name paired with its specified value.
A raster overlay that loads tiles from a templated URL.
bool specifyTilingScheme
Set this to true to specify the quadtree tiling scheme according to the specified root tile numbers a...
string templateUrl
The URL containing template parameters that will be substituted when loading tiles.
override partial void RemoveFromTileset(Cesium3DTileset tileset)
double rectangleWest
The west boundary of the bounding rectangle used for the quadtree tiling scheme.
int rootTilesX
If specified, this determines the number of tiles at the root of the quadtree tiling scheme in the X ...
double rectangleEast
The east boundary of the bounding rectangle used for the quadtree tiling scheme.
CesiumUrlTemplateRasterOverlayProjection projection
The type of projection used to project the imagery onto the globe.
int rootTilesY
If specified, this determines the number of tiles at the root of the quadtree tiling scheme in the Y ...
override partial void AddToTileset(Cesium3DTileset tileset)
double rectangleNorth
The north boundary of the bounding rectangle used for the quadtree tiling scheme.
List< HeaderEntry > requestHeaders
HTTP headers to be attached to each request made for this raster overlay.
double rectangleSouth
The south boundary of the bounding rectangle used for the quadtree tiling scheme.
CesiumUrlTemplateRasterOverlayProjection
Specifies the type of projection used for projecting a URL template raster overlay.
@ WebMercator
The raster overlay is projected using Web Mercator.
@ Geographic
The raster overlay is projected using a geographic projection.