cesium-native 0.43.0
Loading...
Searching...
No Matches
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::IAssetAccessor > pAssetAccessor, std::shared_ptr< CesiumAsync::IAssetRequest > pCompletedRequest)
 Create a result with Failed state.
 
static TileLoadResult createRetryLaterResult (std::shared_ptr< CesiumAsync::IAssetAccessor > pAssetAccessor, std::shared_ptr< CesiumAsync::IAssetRequest > pCompletedRequest)
 Create a result with RetryLater state.
 

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::IAssetAccessorpAssetAccessor
 The asset accessor that was used to retrieve this tile, and that should be used to retrieve further resources referenced by the tile.
 
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.
 

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::IAssetAccessor > pAssetAccessor,
std::shared_ptr< CesiumAsync::IAssetRequest > pCompletedRequest )
static

Create a result with Failed state.

Parameters
pAssetAccessorThe IAssetAccessor used to load tiles.
pCompletedRequestThe failed request

◆ createRetryLaterResult()

static TileLoadResult Cesium3DTilesSelection::TileLoadResult::createRetryLaterResult ( std::shared_ptr< CesiumAsync::IAssetAccessor > pAssetAccessor,
std::shared_ptr< CesiumAsync::IAssetRequest > pCompletedRequest )
static

Create a result with RetryLater state.

Parameters
pAssetAccessorThe IAssetAccessor used to load tiles.
pCompletedRequestThe failed request

Member Data Documentation

◆ contentKind

TileContentKind Cesium3DTilesSelection::TileLoadResult::contentKind

The content type of the tile.

Definition at line 77 of file TileLoadResult.h.

◆ 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 136 of file TileLoadResult.h.

◆ glTFUpAxis

CesiumGeometry::Axis Cesium3DTilesSelection::TileLoadResult::glTFUpAxis

The up axis of glTF content.

Definition at line 82 of file TileLoadResult.h.

◆ pAssetAccessor

std::shared_ptr<CesiumAsync::IAssetAccessor> Cesium3DTilesSelection::TileLoadResult::pAssetAccessor

The asset accessor that was used to retrieve this tile, and that should be used to retrieve further resources referenced by the tile.

Definition at line 109 of file TileLoadResult.h.

◆ pCompletedRequest

std::shared_ptr<CesiumAsync::IAssetRequest> Cesium3DTilesSelection::TileLoadResult::pCompletedRequest

The request that is created to download the tile content.

Definition at line 114 of file TileLoadResult.h.

◆ rasterOverlayDetails

std::optional<CesiumRasterOverlays::RasterOverlayDetails> Cesium3DTilesSelection::TileLoadResult::rasterOverlayDetails

Holds details of the TileRenderContent that are useful for raster overlays.

Definition at line 103 of file TileLoadResult.h.

◆ state

TileLoadResultState Cesium3DTilesSelection::TileLoadResult::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.

Definition at line 129 of file TileLoadResult.h.

◆ tileInitializer

std::function<void(Tile&)> Cesium3DTilesSelection::TileLoadResult::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.

Definition at line 122 of file TileLoadResult.h.

◆ updatedBoundingVolume

std::optional<BoundingVolume> Cesium3DTilesSelection::TileLoadResult::updatedBoundingVolume

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.

Definition at line 89 of file TileLoadResult.h.

◆ updatedContentBoundingVolume

std::optional<BoundingVolume> Cesium3DTilesSelection::TileLoadResult::updatedContentBoundingVolume

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.

Definition at line 96 of file TileLoadResult.h.


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