cesium-native 0.43.0
Loading...
Searching...
No Matches
Cesium3DTilesSelection::EllipsoidTilesetLoader Class Reference

A loader that will generate a tileset by tesselating the surface of an ellipsoid, producing a simple globe tileset without any terrain features. More...

#include <Cesium3DTilesSelection/EllipsoidTilesetLoader.h>

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

Public Member Functions

 EllipsoidTilesetLoader (const CesiumGeospatial::Ellipsoid &ellipsoid=CesiumGeospatial::Ellipsoid::WGS84)
 Constructs a new instance.
 
CesiumAsync::Future< TileLoadResultloadTileContent (const TileLoadInput &input) override
 Load the tile content.
 
TileChildrenResult createTileChildren (const Tile &tile, const CesiumGeospatial::Ellipsoid &ellipsoid=CesiumGeospatial::Ellipsoid::WGS84) override
 Create the tile's children.
 
ITilesetHeightSamplergetHeightSampler () override
 Gets an interface that can be used to efficiently query heights from this tileset.
 
CesiumAsync::Future< SampleHeightResultsampleHeights (const CesiumAsync::AsyncSystem &asyncSystem, std::vector< CesiumGeospatial::Cartographic > &&positions) override
 Queries the heights at a list of locations.
 
- Public Member Functions inherited from Cesium3DTilesSelection::TilesetContentLoader
virtual ~TilesetContentLoader ()=default
 Default virtual destructor.
 
- Public Member Functions inherited from Cesium3DTilesSelection::ITilesetHeightSampler

Static Public Member Functions

static std::unique_ptr< TilesetcreateTileset (const TilesetExternals &externals, const TilesetOptions &options=TilesetOptions{})
 Creates a new tileset with this loader.
 

Detailed Description

A loader that will generate a tileset by tesselating the surface of an ellipsoid, producing a simple globe tileset without any terrain features.

Definition at line 13 of file EllipsoidTilesetLoader.h.

Constructor & Destructor Documentation

◆ EllipsoidTilesetLoader()

Cesium3DTilesSelection::EllipsoidTilesetLoader::EllipsoidTilesetLoader ( const CesiumGeospatial::Ellipsoid & ellipsoid = CesiumGeospatial::Ellipsoid::WGS84)

Constructs a new instance.

Parameters
ellipsoidThe CesiumGeospatial::Ellipsoid.

Member Function Documentation

◆ createTileChildren()

TileChildrenResult Cesium3DTilesSelection::EllipsoidTilesetLoader::createTileChildren ( const Tile & tile,
const CesiumGeospatial::Ellipsoid & ellipsoid = CesiumGeospatial::Ellipsoid::WGS84 )
overridevirtual

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

Implements Cesium3DTilesSelection::TilesetContentLoader.

◆ createTileset()

static std::unique_ptr< Tileset > Cesium3DTilesSelection::EllipsoidTilesetLoader::createTileset ( const TilesetExternals & externals,
const TilesetOptions & options = TilesetOptions{} )
static

Creates a new tileset with this loader.

Parameters
externalsThe external interfaces to use.
optionsAdditional options for the tileset.

◆ getHeightSampler()

ITilesetHeightSampler * Cesium3DTilesSelection::EllipsoidTilesetLoader::getHeightSampler ( )
overridevirtual

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 from Cesium3DTilesSelection::TilesetContentLoader.

◆ loadTileContent()

CesiumAsync::Future< TileLoadResult > Cesium3DTilesSelection::EllipsoidTilesetLoader::loadTileContent ( const TileLoadInput & input)
overridevirtual

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

Implements Cesium3DTilesSelection::TilesetContentLoader.

◆ sampleHeights()

CesiumAsync::Future< SampleHeightResult > Cesium3DTilesSelection::EllipsoidTilesetLoader::sampleHeights ( const CesiumAsync::AsyncSystem & asyncSystem,
std::vector< CesiumGeospatial::Cartographic > && positions )
overridevirtual

Queries the heights at a list of locations.

Parameters
asyncSystemThe async system used to do work in threads.
positionsThe positions at which to query heights. The height field of each CesiumGeospatial::Cartographic is ignored.
Returns
A future that will be resolved when the heights have been queried.

Implements Cesium3DTilesSelection::ITilesetHeightSampler.


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