cesium-native  0.41.0
Cesium3DTilesSelection::TilesetContentLoader Class Referenceabstract

The loader interface to load the tile content. More...

#include <Cesium3DTilesSelection/TilesetContentLoader.h>

Public Member Functions

virtual ~TilesetContentLoader ()=default
 Default virtual destructor.
 
virtual CesiumAsync::Future< TileLoadResultloadTileContent (const TileLoadInput &input)=0
 Load the tile content. More...
 
virtual TileChildrenResult createTileChildren (const Tile &tile, const CesiumGeospatial::Ellipsoid &ellipsoid CESIUM_DEFAULT_ELLIPSOID)=0
 Create the tile's children. More...
 

Detailed Description

The loader interface to load the tile content.

Definition at line 114 of file TilesetContentLoader.h.

Member Function Documentation

◆ createTileChildren()

virtual TileChildrenResult Cesium3DTilesSelection::TilesetContentLoader::createTileChildren ( const Tile tile,
const CesiumGeospatial::Ellipsoid &ellipsoid  CESIUM_DEFAULT_ELLIPSOID 
)
pure virtual

Create the tile's children.

Note that: when receiving RetryLater status, client needs to load this tile's content first or its parent's content. The reason is that some tileset formats store the tile's children along with its content or store a whole subtree for every n-th level tile (e.g Quantized Mesh format). So unless the tile's content or the root tile of the subtree the tile is in is loaded, the loader won't know how to create the tile's children.

Parameters
tileThe tile to create children for.
Returns
The TileChildrenResult that stores the tile's children

◆ loadTileContent()

virtual CesiumAsync::Future<TileLoadResult> Cesium3DTilesSelection::TilesetContentLoader::loadTileContent ( const TileLoadInput input)
pure virtual

Load the tile content.

Parameters
inputThe TileLoadInput that has the tile info and loading systems to load this tile's content
Returns
The future of TileLoadResult that stores the tile's content

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