cesium-native 0.46.0
Loading...
Searching...
No Matches
CesiumIonTilesetContentLoaderFactory.h
1#include "TilesetContentLoader.h"
2#include "TilesetContentLoaderFactory.h"
3#include "TilesetContentLoaderResult.h"
4#include "TilesetExternals.h"
5
6#include <CesiumAsync/Future.h>
7
8#include <cstdint>
9#include <string>
10
11namespace Cesium3DTilesSelection {
18public:
31 uint32_t ionAssetID,
32 const std::string& ionAccessToken,
33 const std::string& ionAssetEndpointUrl = "https://api.cesium.com/");
34
35 virtual CesiumAsync::Future<
39 const TilesetExternals& externals,
40 const TilesetOptions& tilesetOptions,
41 const AuthorizationHeaderChangeListener& headerChangeListener) override;
42
43 virtual bool isValid() const override;
44
45private:
46 uint32_t _ionAssetID;
47 std::string _ionAccessToken;
48 std::string _ionAssetEndpointUrl;
49};
50} // namespace Cesium3DTilesSelection
A factory for creating a TilesetContentLoader for assets from Cesium ion.
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.
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 bool isValid() const override
Returns true if a valid TilesetContentLoader can be constructed from this factory.
std::function< void(const std::string &header, const std::string &headerValue)> AuthorizationHeaderChangeListener
The type of a callback called when the Authorization header used by a tileset loader has changed.
The loader interface to load the tile content.
External interfaces used by a Tileset.
A value that will be available in the future, as produced by AsyncSystem.
Definition Promise.h:12
Classes that implement the 3D Tiles standard.
The result of creating a TilesetContentLoader, including the status, request, and any errors,...
Additional options for configuring a Tileset.