cesium-native 0.43.0
|
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< TileLoadResult > | loadTileContent (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 ITilesetHeightSampler * | getHeightSampler () |
Gets an interface that can be used to efficiently query heights from this tileset. | |
The loader interface to load the tile content.
Definition at line 117 of file TilesetContentLoader.h.
|
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.
tile | The tile to create children for. |
ellipsoid | The CesiumGeospatial::Ellipsoid . |
TileChildrenResult
that stores the tile's children Implemented in Cesium3DTilesSelection::EllipsoidTilesetLoader.
|
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.
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.
|
pure virtual |
Load the tile content.
input | The TileLoadInput that has the tile info and loading systems to load this tile's content |
TileLoadResult
that stores the tile's content Implemented in Cesium3DTilesSelection::EllipsoidTilesetLoader.