|
cesium-native 0.55.0
|
A RasterOverlay that obtains imagery data from Cesium ion.
More...
#include <CesiumRasterOverlays/IonRasterOverlay.h>
Public Member Functions | |
| IonRasterOverlay (const std::string &name, int64_t ionAssetID, const std::string &ionAccessToken, const RasterOverlayOptions &overlayOptions={}, const std::string &ionAssetEndpointUrl="https://api.cesium.com/") | |
| Creates a new instance. | |
| const std::optional< std::string > & | getAssetOptions () const noexcept |
Gets the additional options to be passed to the asset endpoint. | |
| void | setAssetOptions (const std::optional< std::string > &options) noexcept |
Sets the additional options to be passed to the asset endpoint. | |
| virtual CesiumAsync::Future< CreateTileProviderResult > | createTileProvider (const CreateRasterOverlayTileProviderParameters ¶meters) const override |
| Begins asynchronous creation of a tile provider for this overlay and eventually returns it via a Future. | |
Public Member Functions inherited from CesiumRasterOverlays::RasterOverlay | |
| RasterOverlay (const std::string &name, const RasterOverlayOptions &overlayOptions=RasterOverlayOptions()) | |
| Creates a new instance. | |
| CesiumAsync::SharedFuture< void > & | getAsyncDestructionCompleteEvent (const CesiumAsync::AsyncSystem &asyncSystem) |
| A future that resolves when this RasterOverlay has been destroyed (i.e. its destructor has been called) and all async operations that it was executing have completed. | |
| const std::string & | getName () const noexcept |
| Gets the name of this overlay. | |
| RasterOverlayOptions & | getOptions () noexcept |
| Gets options for this overlay. | |
| const RasterOverlayOptions & | getOptions () const noexcept |
| Gets options for this overlay. | |
| CesiumUtility::IntrusivePointer< ActivatedRasterOverlay > | activate (const RasterOverlayExternals &externals, const CesiumGeospatial::Ellipsoid &ellipsoid=CesiumGeospatial::Ellipsoid::WGS84) const |
| Activates this overlay. | |
| CesiumUtility::IntrusivePointer< RasterOverlayTileProvider > | createPlaceholder (const RasterOverlayExternals &externals, const CesiumGeospatial::Ellipsoid &ellipsoid=CesiumGeospatial::Ellipsoid::WGS84) const |
Create a placeholder tile provider can be used in place of the real one while createTileProvider completes asynchronously. | |
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 | |
| IonRasterOverlay (const std::string &name, const std::string &overlayUrl, const std::string &ionAccessToken, bool needsAuthHeader, const RasterOverlayOptions &overlayOptions={}) | |
| Creates a new instance. | |
Additional Inherited Members | |
Public Types inherited from CesiumRasterOverlays::RasterOverlay | |
| using | CreateTileProviderResult |
| A result from a call to createTileProvider. This is expected to be an IntrusivePointer to a RasterOverlayTileProvider, but may be a RasterOverlayLoadFailureDetails if creating the tile provider wasn't successful. | |
A RasterOverlay that obtains imagery data from Cesium ion.
Definition at line 24 of file IonRasterOverlay.h.
| CesiumRasterOverlays::IonRasterOverlay::IonRasterOverlay | ( | const std::string & | name, |
| int64_t | ionAssetID, | ||
| const std::string & | ionAccessToken, | ||
| const RasterOverlayOptions & | overlayOptions = {}, | ||
| const std::string & | ionAssetEndpointUrl = "https://api.cesium.com/" ) |
Creates a new instance.
The tiles that are provided by this instance will contain imagery data that was obtained from the Cesium ion asset with the given ID, accessed with the given access token.
| name | The user-given name of this overlay layer. |
| ionAssetID | The asset ID. |
| ionAccessToken | The access token. |
| overlayOptions | The RasterOverlayOptions for this instance. |
| ionAssetEndpointUrl | The URL of the ion endpoint to make our requests to. |
|
protected |
Creates a new instance.
The tiles that are provided by this instance will contain imagery data that was obtained from the Cesium ion asset with the given ID, accessed with the given access token.
| name | The user-given name of this overlay layer. |
| overlayUrl | The URL that the raster overlay requests will be made to. |
| ionAccessToken | The access token. |
| needsAuthHeader | If true, the access token will be passed through the Authorization header. If false, it will be assumed to be in the provided overlayUrl. |
| overlayOptions | The RasterOverlayOptions for this instance. |
|
overridevirtual |
Begins asynchronous creation of a tile provider for this overlay and eventually returns it via a Future.
| parameters | The parameters for creating the tile provider. |
Implements CesiumRasterOverlays::RasterOverlay.
|
noexcept |
Gets the additional options to be passed to the asset endpoint.
|
noexcept |
Sets the additional options to be passed to the asset endpoint.
| options | An optional JSON string describing parameters that are specific to the asset. |