4 #include "RasterOverlay.h"
6 #include <CesiumAsync/IAssetRequest.h>
7 #include <CesiumGeometry/QuadtreeTilingScheme.h>
8 #include <CesiumGeospatial/Ellipsoid.h>
9 #include <CesiumGeospatial/GlobeRectangle.h>
10 #include <CesiumGeospatial/Projection.h>
69 std::optional<CesiumGeospatial::Ellipsoid>
ellipsoid = std::nullopt;
89 const std::string& name,
90 const std::string& url,
91 const std::vector<CesiumAsync::IAssetAccessor::THeader>& headers = {},
93 const RasterOverlayOptions& overlayOptions = {});
94 virtual ~WebMapServiceRasterOverlay()
override;
98 const std::shared_ptr<CesiumAsync::IAssetAccessor>& pAssetAccessor,
99 const std::shared_ptr<CesiumUtility::CreditSystem>& pCreditSystem,
100 const std::shared_ptr<IPrepareRasterOverlayRendererResources>&
101 pPrepareRendererResources,
102 const std::shared_ptr<spdlog::logger>& pLogger,
107 std::string _baseUrl;
108 std::vector<CesiumAsync::IAssetAccessor::THeader> _headers;
A system for managing asynchronous requests and tasks.
A value that will be available in the future, as produced by AsyncSystem.
The base class for a rasterized image that can be draped over a Tileset. The image may be very,...
A RasterOverlay accessing images from a Web Map Service (WMS) server.
virtual CesiumAsync::Future< CreateTileProviderResult > createTileProvider(const CesiumAsync::AsyncSystem &asyncSystem, const std::shared_ptr< CesiumAsync::IAssetAccessor > &pAssetAccessor, const std::shared_ptr< CesiumUtility::CreditSystem > &pCreditSystem, const std::shared_ptr< IPrepareRasterOverlayRendererResources > &pPrepareRendererResources, const std::shared_ptr< spdlog::logger > &pLogger, CesiumUtility::IntrusivePointer< const RasterOverlay > pOwner) const override
Begins asynchronous creation of a tile provider for this overlay and eventually returns it via a Futu...
WebMapServiceRasterOverlay(const std::string &name, const std::string &url, const std::vector< CesiumAsync::IAssetAccessor::THeader > &headers={}, const WebMapServiceRasterOverlayOptions &wmsOptions={}, const RasterOverlayOptions &overlayOptions={})
Creates a new instance.
A smart pointer that calls addReference and releaseReference on the controlled object.
Classes for raster overlays, which allow draping massive 2D textures over a model.
Options for Web Map Service (WMS) overlays.
std::string version
The Web Map Service version. The default is "1.3.0".
std::string format
The image format to request, expressed as a MIME type to be given to the server. The default is "imag...
int32_t tileHeight
Pixel height of image tiles.
int32_t maximumLevel
The maximum level-of-detail supported by the imagery provider.
std::string layers
Comma separated Web Map Service layer names to request.
std::optional< CesiumGeospatial::Ellipsoid > ellipsoid
The ellipsoid used for this overlay.
int32_t tileWidth
Pixel width of image tiles.
int32_t minimumLevel
The minimum level-of-detail supported by the imagery provider.
std::optional< std::string > credit
A credit for the data source, which is displayed on the canvas.