cesium-native 0.46.0
|
A factory for creating a TilesetContentLoader for assets from Cesium ion. More...
#include <Cesium3DTilesSelection/CesiumIonTilesetContentLoaderFactory.h>
Public Member Functions | |
CesiumIonTilesetContentLoaderFactory (uint32_t ionAssetID, const std::string &ionAccessToken, const std::string &ionAssetEndpointUrl="https://api.cesium.com/") | |
Creates a new factory for loading a Cesium ion asset. | |
virtual CesiumAsync::Future< Cesium3DTilesSelection::TilesetContentLoaderResult< Cesium3DTilesSelection::TilesetContentLoader > > | createLoader (const TilesetExternals &externals, const TilesetOptions &tilesetOptions, const AuthorizationHeaderChangeListener &headerChangeListener) override |
Creates an instance of the loader corresponding to this factory. | |
virtual bool | isValid () const override |
Returns true if a valid TilesetContentLoader can be constructed from this factory. | |
![]() |
Additional Inherited Members | |
![]() | |
using | AuthorizationHeaderChangeListener |
The type of a callback called when the Authorization header used by a tileset loader has changed. | |
A factory for creating a TilesetContentLoader for assets from Cesium ion.
Definition at line 16 of file CesiumIonTilesetContentLoaderFactory.h.
Cesium3DTilesSelection::CesiumIonTilesetContentLoaderFactory::CesiumIonTilesetContentLoaderFactory | ( | uint32_t | ionAssetID, |
const std::string & | ionAccessToken, | ||
const std::string & | ionAssetEndpointUrl = "https://api.cesium.com/" ) |
Creates a new factory for loading a Cesium ion asset.
ionAssetID | The Cesium ion asset ID to load. |
ionAccessToken | The Cesium ion token to use to authorize requests to this asset. |
ionAssetEndpointUrl | The Cesium ion endpoint to use. This can be changed to point to an instance of Cesium ion Self-Hosted. |
|
overridevirtual |
Creates an instance of the loader corresponding to this factory.
externals | The TilesetExternals. |
tilesetOptions | The TilesetOptions. |
headerChangeListener | A callback that will be called when the Authorization header used by the tileset loader has changed. |
Implements Cesium3DTilesSelection::TilesetContentLoaderFactory.
|
overridevirtual |
Returns true if a valid TilesetContentLoader can be constructed from this factory.
Implements Cesium3DTilesSelection::TilesetContentLoaderFactory.