cesium-native  0.41.0
Cesium3DTilesSelection::TileLoadResult Struct Reference

Store the result of loading a tile content after invoking TilesetContentLoader::loadTileContent. More...

#include <Cesium3DTilesSelection/TileLoadResult.h>

Static Public Member Functions

static TileLoadResult createFailedResult (std::shared_ptr< CesiumAsync::IAssetRequest > pCompletedRequest)
 Create a result with Failed state. More...
 
static TileLoadResult createRetryLaterResult (std::shared_ptr< CesiumAsync::IAssetRequest > pCompletedRequest)
 Create a result with RetryLater state. More...
 

Public Attributes

TileContentKind contentKind
 The content type of the tile.
 
CesiumGeometry::Axis glTFUpAxis
 The up axis of glTF content.
 
std::optional< BoundingVolumeupdatedBoundingVolume
 A tile can potentially store a more fit bounding volume along with its content. If this field is set, the tile's bounding volume will be updated after the loading is finished.
 
std::optional< BoundingVolumeupdatedContentBoundingVolume
 A tile can potentially store a more fit content bounding volume along with its content. If this field is set, the tile's content bounding volume will be updated after the loading is finished.
 
std::optional< CesiumRasterOverlays::RasterOverlayDetailsrasterOverlayDetails
 Holds details of the TileRenderContent that are useful for raster overlays.
 
std::shared_ptr< CesiumAsync::IAssetRequestpCompletedRequest
 The request that is created to download the tile content.
 
std::function< void(Tile &)> tileInitializer
 A callback that is invoked in the main thread immediately when the loading is finished. This callback is useful when the content request has other fields like geometric error, children (in the case of TileExternalContent), etc, to override the existing fields.
 
TileLoadResultState state
 The result of loading a tile. Note that if the state is Failed or RetryLater, none of the fields above (including TileLoadResult::tileInitializer) will be applied to a tile when the loading is finished.
 
CesiumGeospatial::Ellipsoid ellipsoid
 The ellipsoid that this tile uses. More...
 

Detailed Description

Store the result of loading a tile content after invoking TilesetContentLoader::loadTileContent.

Definition at line 73 of file TileLoadResult.h.

Member Function Documentation

◆ createFailedResult()

static TileLoadResult Cesium3DTilesSelection::TileLoadResult::createFailedResult ( std::shared_ptr< CesiumAsync::IAssetRequest pCompletedRequest)
static

Create a result with Failed state.

Parameters
pCompletedRequestThe failed request

◆ createRetryLaterResult()

static TileLoadResult Cesium3DTilesSelection::TileLoadResult::createRetryLaterResult ( std::shared_ptr< CesiumAsync::IAssetRequest pCompletedRequest)
static

Create a result with RetryLater state.

Parameters
pCompletedRequestThe failed request

Member Data Documentation

◆ ellipsoid

CesiumGeospatial::Ellipsoid Cesium3DTilesSelection::TileLoadResult::ellipsoid
Initial value:
=
static const Ellipsoid UNIT_SPHERE
An Ellipsoid with all three radii set to one meter.
Definition: Ellipsoid.h:52

The ellipsoid that this tile uses.

This value is only guaranteed to be accurate when TileLoadResult::state is equal to TileLoadResultState::Success.

Definition at line 130 of file TileLoadResult.h.


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