cesium-native
0.41.0
|
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< BoundingVolume > | 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. | |
std::optional< BoundingVolume > | 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. | |
std::optional< CesiumRasterOverlays::RasterOverlayDetails > | rasterOverlayDetails |
Holds details of the TileRenderContent that are useful for raster overlays. | |
std::shared_ptr< CesiumAsync::IAssetRequest > | pCompletedRequest |
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... | |
Store the result of loading a tile content after invoking TilesetContentLoader::loadTileContent.
Definition at line 73 of file TileLoadResult.h.
|
static |
Create a result with Failed state.
pCompletedRequest | The failed request |
|
static |
Create a result with RetryLater state.
pCompletedRequest | The failed request |
CesiumGeospatial::Ellipsoid Cesium3DTilesSelection::TileLoadResult::ellipsoid |
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.