|
cesium-native 0.55.0
|
Provides individual tiles for a RasterOverlay on demand.
More...
#include <CesiumRasterOverlays/RasterOverlayTileProvider.h>
Public Member Functions | |
| RasterOverlayTileProvider (const CesiumUtility::IntrusivePointer< const RasterOverlay > &pCreator, const CreateRasterOverlayTileProviderParameters ¶meters, const CesiumGeospatial::Projection &projection, const CesiumGeometry::Rectangle &coverageRectangle) noexcept | |
| Creates a new instance. | |
| virtual | ~RasterOverlayTileProvider () noexcept |
| Default destructor. | |
| CesiumAsync::SharedFuture< void > & | getAsyncDestructionCompleteEvent () |
| A future that resolves when this RasterOverlayTileProvider has been destroyed (i.e. its destructor has been called) and all async operations that it was executing have completed. | |
| RasterOverlay & | getOwner () noexcept |
Returns the RasterOverlay that created this instance. | |
| const RasterOverlay & | getOwner () const noexcept |
Returns the RasterOverlay that created this instance. | |
| const RasterOverlayExternals & | getExternals () const noexcept |
| Get the external interfaces for use by the tile provider. | |
| const std::shared_ptr< CesiumAsync::IAssetAccessor > & | getAssetAccessor () const noexcept |
| Get the system to use for asychronous requests and threaded work. | |
| const std::shared_ptr< CesiumUtility::CreditSystem > & | getCreditSystem () const noexcept |
| Get the credit system that receives credits from this tile provider. | |
| const CesiumAsync::AsyncSystem & | getAsyncSystem () const noexcept |
| Gets the async system used to do work in threads. | |
| const std::shared_ptr< IPrepareRasterOverlayRendererResources > & | getPrepareRendererResources () const noexcept |
| Gets the interface used to prepare raster overlay images for rendering. | |
| const std::shared_ptr< spdlog::logger > & | getLogger () const noexcept |
| Gets the logger to which to send messages about the tile provider and tiles. | |
| const CesiumGeospatial::Projection & | getProjection () const noexcept |
Returns the CesiumGeospatial::Projection of this instance. | |
| const CesiumGeometry::Rectangle & | getCoverageRectangle () const noexcept |
Returns the coverage CesiumGeometry::Rectangle of this instance. | |
| const CesiumUtility::CreditSource & | getCreditSource () const noexcept |
| Gets the CesiumUtility::CreditSource that identifies this raster overlay's credits with the CesiumUtility::CreditSystem. | |
| std::vector< CesiumUtility::Credit > & | getCredits () noexcept |
| Gets the collection of credits that should be shown whenever this tile provider is shown. | |
| const std::vector< CesiumUtility::Credit > & | getCredits () const noexcept |
| Gets the collection of credits that should be shown whenever this tile provider is shown. | |
| virtual CesiumAsync::Future< LoadedRasterOverlayImage > | loadTileImage (const RasterOverlayTile &overlayTile)=0 |
| Loads the image for a tile. | |
| virtual void | addCredits (CesiumUtility::CreditReferencer &creditReferencer) noexcept |
| Adds this tile provider's credits to a credit referencer. | |
Public Member Functions inherited from CesiumUtility::ReferenceCounted< T, false > | |
| void | addReference () const |
Adds a counted reference to this object. Use CesiumUtility::IntrusivePointer instead of calling this method directly. | |
| void | releaseReference () const |
Removes a counted reference from this object. When the last reference is removed, this method will delete this instance. Use CesiumUtility::IntrusivePointer instead of calling this method directly. | |
| std::int32_t | getReferenceCount () const noexcept |
| Returns the current reference count of this instance. | |
| void | addReference () const |
Adds a counted reference to this object. Use CesiumUtility::IntrusivePointer instead of calling this method directly. | |
| void | releaseReference () const |
Removes a counted reference from this object. When the last reference is removed, this method will delete this instance. Use CesiumUtility::IntrusivePointer instead of calling this method directly. | |
| std::int32_t | getReferenceCount () const noexcept |
| Returns the current reference count of this instance. | |
Protected Member Functions | |
| CesiumAsync::Future< LoadedRasterOverlayImage > | loadTileImageFromUrl (const std::string &url, const std::vector< CesiumAsync::IAssetAccessor::THeader > &headers={}, LoadTileImageFromUrlOptions &&options={}) const |
| Loads an image from a URL and optionally some request headers. | |
Provides individual tiles for a RasterOverlay on demand.
Instances of this class must be allocated on the heap, and their lifetimes must be managed with CesiumUtility::IntrusivePointer.
Definition at line 136 of file RasterOverlayTileProvider.h.
|
noexcept |
Creates a new instance.
| pCreator | The RasterOverlay that directly created this instance. This will become the owner of this instance if another owner is not specified in CreateRasterOverlayTileProviderParameters::pOwner. |
| parameters | The parameters for creating the tile provider. |
| projection | The CesiumGeospatial::Projection. |
| coverageRectangle | The rectangle that bounds all the area covered by this overlay, expressed in projected coordinates. |
|
virtualnoexcept |
Adds this tile provider's credits to a credit referencer.
The added credits will be displayed whenever the RasterOverlay that owns this tile provider is displayed. To show tile-specific credits, add them to LoadedRasterOverlayImage::credits in the instance returned by loadTileImage.
| creditReferencer | The credit referencer to which to add credits. |
|
noexcept |
Gets the collection of credits that should be shown whenever this tile provider is shown.
If called on a non-const instance, the returned collection may be modified to add or remove credits.
The credits in this collection will be added to the CesiumUtility::CreditReferencer in addCredits.
|
noexcept |
Gets the collection of credits that should be shown whenever this tile provider is shown.
If called on a non-const instance, the returned collection may be modified to add or remove credits.
The credits in this collection will be added to the CesiumUtility::CreditReferencer in addCredits.
|
noexcept |
Returns the RasterOverlay that created this instance.
|
pure virtual |
Loads the image for a tile.
| overlayTile | The overlay tile for which to load the image. |
|
protected |
Loads an image from a URL and optionally some request headers.
This is a useful helper function for implementing loadTileImage.
| url | The URL. |
| headers | The request headers. |
| options | Additional options for the load process. |