cesium-native 0.46.0
|
A factory for creating a TilesetContentLoader from data from the iTwin Reality Management API. More...
#include <Cesium3DTilesSelection/ITwinRealityDataContentLoaderFactory.h>
Public Types | |
using | TokenRefreshCallback |
Callback to obtain a new access token for the iTwin API. Receives the previous access token as parameter. | |
![]() | |
using | AuthorizationHeaderChangeListener |
The type of a callback called when the Authorization header used by a tileset loader has changed. | |
Public Member Functions | |
ITwinRealityDataContentLoaderFactory (const std::string &realityDataId, const std::optional< std::string > &iTwinId, const std::string &iTwinAccessToken, TokenRefreshCallback &&tokenRefreshCallback) | |
Creates a new factory for loading iTwin reality data. | |
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. | |
![]() |
A factory for creating a TilesetContentLoader from data from the iTwin Reality Management API.
Definition at line 17 of file ITwinRealityDataContentLoaderFactory.h.
Callback to obtain a new access token for the iTwin API. Receives the previous access token as parameter.
Definition at line 24 of file ITwinRealityDataContentLoaderFactory.h.
Cesium3DTilesSelection::ITwinRealityDataContentLoaderFactory::ITwinRealityDataContentLoaderFactory | ( | const std::string & | realityDataId, |
const std::optional< std::string > & | iTwinId, | ||
const std::string & | iTwinAccessToken, | ||
TokenRefreshCallback && | tokenRefreshCallback ) |
Creates a new factory for loading iTwin reality data.
realityDataId | The ID of the reality data to load. |
iTwinId | The ID of the iTwin this reality data is associated with. As described in the iTwin Reality Management API documentation:
|
iTwinAccessToken | The access token to use to access the API. |
tokenRefreshCallback | Callback that will be called to obtain a new access token when the provided one has expired. |
|
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.