5#include <CesiumGeometry/QuadtreeTileID.h>
6#include <CesiumGeometry/QuadtreeTileRectangularRange.h>
7#include <CesiumGeospatial/BoundingRegion.h>
8#include <CesiumGeospatial/Ellipsoid.h>
9#include <CesiumGltf/Model.h>
10#include <CesiumUtility/ErrorList.h>
12#include <rapidjson/document.h>
40 std::optional<CesiumGltf::Model>
model;
54 std::vector<CesiumGeometry::QuadtreeTileRectangularRange>
62 std::shared_ptr<CesiumAsync::IAssetRequest>
pRequest;
78 std::vector<CesiumGeometry::QuadtreeTileRectangularRange>
availability;
106 const std::string& url,
107 const std::span<const std::byte>& data,
108 bool enableWaterMask,
120 const std::span<const std::byte>& data,
136 const rapidjson::Document& layerJson,
137 uint32_t startingLevel);
A bounding volume specified as a longitude/latitude bounding box and a minimum and maximum height.
A quadratic surface defined in Cartesian coordinates.
Loads quantized-mesh-1.0 terrain data.
static QuantizedMeshMetadataResult loadAvailabilityRectangles(const rapidjson::Document &layerJson, uint32_t startingLevel)
Extracts tile availability information from a parsed layer.json or tile metadata extension.
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.
Classes that support asynchronous operations.
Classes for accessing terrain based on layer.json and quantized-mesh-1.0.
Uniquely identifies a node in a quadtree.
The results of a QuantizedMeshLoader::load operation, containing either the loaded model,...
std::optional< CesiumGltf::Model > model
The glTF model to be rendered for this tile.
std::vector< CesiumGeometry::QuadtreeTileRectangularRange > availableTileRectangles
Available quadtree tiles discovered as a result of loading this tile.
CesiumUtility::ErrorList errors
The errors and warnings reported while loading this tile.
std::optional< CesiumGeospatial::BoundingRegion > updatedBoundingVolume
An improved bounding region for this tile.
std::shared_ptr< CesiumAsync::IAssetRequest > pRequest
The request that was used to download the tile content, if any.
The container to store the error and warning list when loading a tile or glTF content.