cesium-native 0.43.0
Loading...
Searching...
No Matches
CesiumQuantizedMeshTerrain::QuantizedMeshLoader Class Referencefinal

Loads quantized-mesh-1.0 terrain data. More...

#include <CesiumQuantizedMeshTerrain/QuantizedMeshLoader.h>

Static Public Member Functions

static QuantizedMeshLoadResult load (const CesiumGeometry::QuadtreeTileID &tileID, const CesiumGeospatial::BoundingRegion &tileBoundingVolume, const std::string &url, const std::span< const std::byte > &data, bool enableWaterMask, const CesiumGeospatial::Ellipsoid &ellipsoid=CesiumGeospatial::Ellipsoid::WGS84)
 Create a QuantizedMeshLoadResult from the given data.
 
static QuantizedMeshMetadataResult loadMetadata (const std::span< const std::byte > &data, const CesiumGeometry::QuadtreeTileID &tileID)
 Parses the metadata (tile availability) from the given quantized-mesh terrain tile data.
 
static QuantizedMeshMetadataResult loadAvailabilityRectangles (const rapidjson::Document &layerJson, uint32_t startingLevel)
 Extracts tile availability information from a parsed layer.json or tile metadata extension.
 

Detailed Description

Loads quantized-mesh-1.0 terrain data.

Definition at line 89 of file QuantizedMeshLoader.h.

Member Function Documentation

◆ load()

static QuantizedMeshLoadResult CesiumQuantizedMeshTerrain::QuantizedMeshLoader::load ( const CesiumGeometry::QuadtreeTileID & tileID,
const CesiumGeospatial::BoundingRegion & tileBoundingVolume,
const std::string & url,
const std::span< const std::byte > & data,
bool enableWaterMask,
const CesiumGeospatial::Ellipsoid & ellipsoid = CesiumGeospatial::Ellipsoid::WGS84 )
static

Create a QuantizedMeshLoadResult from the given data.

Parameters
tileIDThe tile ID.
tileBoundingVolumeThe tile bounding volume.
urlThe URL from which the data was loaded.
dataThe actual tile data.
enableWaterMaskIf true, will attempt to load a water mask from the quantized mesh data.
ellipsoidThe ellipsoid to use for this quantized mesh.
Returns
The QuantizedMeshLoadResult

◆ loadAvailabilityRectangles()

static QuantizedMeshMetadataResult CesiumQuantizedMeshTerrain::QuantizedMeshLoader::loadAvailabilityRectangles ( const rapidjson::Document & layerJson,
uint32_t startingLevel )
static

Extracts tile availability information from a parsed layer.json or tile metadata extension.

The actual availability information will be found in a property called available.

Parameters
layerJsonThe RapidJSON document containing the layer.json.
startingLevelThe first tile level number to which the availability information applies.
Returns
The availability.

◆ loadMetadata()

static QuantizedMeshMetadataResult CesiumQuantizedMeshTerrain::QuantizedMeshLoader::loadMetadata ( const std::span< const std::byte > & data,
const CesiumGeometry::QuadtreeTileID & tileID )
static

Parses the metadata (tile availability) from the given quantized-mesh terrain tile data.

Parameters
dataThe actual tile data.
tileIDThe tile ID.
Returns
The parsed metadata.

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