cesium-native 0.43.0
Loading...
Searching...
No Matches
Cesium3DTilesSelection::TilesetContentLoader Class Referenceabstract

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

#include <Cesium3DTilesSelection/TilesetContentLoader.h>

Inheritance diagram for Cesium3DTilesSelection::TilesetContentLoader:
Cesium3DTilesSelection::EllipsoidTilesetLoader

Public Member Functions

virtual ~TilesetContentLoader ()=default
 Default virtual destructor.
 
virtual CesiumAsync::Future< TileLoadResultloadTileContent (const TileLoadInput &input)=0
 Load the tile content.
 
virtual TileChildrenResult createTileChildren (const Tile &tile, const CesiumGeospatial::Ellipsoid &ellipsoid=CesiumGeospatial::Ellipsoid::WGS84)=0
 Create the tile's children.
 
virtual ITilesetHeightSamplergetHeightSampler ()
 Gets an interface that can be used to efficiently query heights from this tileset.
 

Detailed Description

The loader interface to load the tile content.

Definition at line 117 of file TilesetContentLoader.h.

Member Function Documentation

◆ createTileChildren()

virtual TileChildrenResult Cesium3DTilesSelection::TilesetContentLoader::createTileChildren ( const Tile & tile,
const CesiumGeospatial::Ellipsoid & ellipsoid = CesiumGeospatial::Ellipsoid::WGS84 )
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.
ellipsoidThe CesiumGeospatial::Ellipsoid.
Returns
The TileChildrenResult that stores the tile's children

Implemented in Cesium3DTilesSelection::EllipsoidTilesetLoader.

◆ getHeightSampler()

virtual ITilesetHeightSampler * Cesium3DTilesSelection::TilesetContentLoader::getHeightSampler ( )
inlinevirtual

Gets an interface that can be used to efficiently query heights from this tileset.

Some loaders may be able to query heights very efficiently by using a web service or by using an analytical model, e.g., when the "terrain" is a simple ellipsoid.

For loaders that have no particular way to query heights, this method will return nullptr, signaling that heights should be computed by downloading and sampling individual tiles.

Returns
The interface that can be used to efficiently query heights from this loader, or nullptr if this loader has no particular way to do that. The returned instance must have a lifetime that is at least as long as the loader itself.

Reimplemented in Cesium3DTilesSelection::EllipsoidTilesetLoader.

Definition at line 170 of file TilesetContentLoader.h.

◆ 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

Implemented in Cesium3DTilesSelection::EllipsoidTilesetLoader.


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