cesium-native 0.46.0
Loading...
Searching...
No Matches
Cesium3DTilesSelection::TilesetContentLoaderFactory Class Referenceabstract

A factory to create a tileset loader. More...

#include <Cesium3DTilesSelection/TilesetContentLoaderFactory.h>

Inheritance diagram for Cesium3DTilesSelection::TilesetContentLoaderFactory:
Cesium3DTilesSelection::CesiumIonTilesetContentLoaderFactory Cesium3DTilesSelection::IModelMeshExportContentLoaderFactory Cesium3DTilesSelection::ITwinCesiumCuratedContentLoaderFactory Cesium3DTilesSelection::ITwinRealityDataContentLoaderFactory

Public Types

using AuthorizationHeaderChangeListener
 The type of a callback called when the Authorization header used by a tileset loader has changed.
 

Public Member Functions

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.
 
virtual bool isValid () const =0
 Returns true if a valid TilesetContentLoader can be constructed from this factory.
 

Detailed Description

A factory to create a tileset loader.

This class can be derived to improve the ease of constructing a Tileset from a custom TilesetContentLoader.

Definition at line 16 of file TilesetContentLoaderFactory.h.

Member Typedef Documentation

◆ AuthorizationHeaderChangeListener

Initial value:
std::function<
void(const std::string& header, const std::string& headerValue)>

The type of a callback called when the Authorization header used by a tileset loader has changed.

Definition at line 24 of file TilesetContentLoaderFactory.h.

Member Function Documentation

◆ createLoader()

virtual CesiumAsync::Future< Cesium3DTilesSelection::TilesetContentLoaderResult< Cesium3DTilesSelection::TilesetContentLoader > > Cesium3DTilesSelection::TilesetContentLoaderFactory::createLoader ( const TilesetExternals & externals,
const TilesetOptions & tilesetOptions,
const AuthorizationHeaderChangeListener & headerChangeListener )
pure virtual

Creates an instance of the loader corresponding to this factory.

Parameters
externalsThe TilesetExternals.
tilesetOptionsThe TilesetOptions.
headerChangeListenerA callback that will be called when the Authorization header used by the tileset loader has changed.
Returns
A future that resolves to a TilesetContentLoaderResult.

Implemented in Cesium3DTilesSelection::CesiumIonTilesetContentLoaderFactory, Cesium3DTilesSelection::IModelMeshExportContentLoaderFactory, Cesium3DTilesSelection::ITwinCesiumCuratedContentLoaderFactory, and Cesium3DTilesSelection::ITwinRealityDataContentLoaderFactory.

◆ isValid()

virtual bool Cesium3DTilesSelection::TilesetContentLoaderFactory::isValid ( ) const
pure virtual

The documentation for this class was generated from the following file: