cesium-native 0.46.0
Loading...
Searching...
No Matches
TilesetContentLoaderFactory.h
1#pragma once
2
3#include <Cesium3DTilesSelection/TilesetContentLoader.h>
4#include <Cesium3DTilesSelection/TilesetContentLoaderResult.h>
5#include <Cesium3DTilesSelection/TilesetExternals.h>
6#include <CesiumAsync/Future.h>
7
9
17public:
18 virtual ~TilesetContentLoaderFactory() = default;
19
24 using AuthorizationHeaderChangeListener = std::function<
25 void(const std::string& header, const std::string& headerValue)>;
26
37 virtual CesiumAsync::Future<
41 const TilesetExternals& externals,
42 const TilesetOptions& tilesetOptions,
43 const AuthorizationHeaderChangeListener& headerChangeListener) = 0;
44
49 virtual bool isValid() const = 0;
50};
51} // namespace Cesium3DTilesSelection
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.
virtual bool isValid() const =0
Returns true if a valid TilesetContentLoader can be constructed from this factory.
virtual CesiumAsync::Future< Cesium3DTilesSelection::TilesetContentLoaderResult< Cesium3DTilesSelection::TilesetContentLoader > > createLoader(const TilesetExternals &externals, const TilesetOptions &tilesetOptions, const AuthorizationHeaderChangeListener &headerChangeListener)=0
Creates an instance of the loader corresponding to this factory.
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.