cesium-native 0.43.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::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< 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::IAssetAccessor > | pAssetAccessor |
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::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. | |
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.
pAssetAccessor | The IAssetAccessor used to load tiles. |
pCompletedRequest | The failed request |
|
static |
Create a result with RetryLater state.
pAssetAccessor | The IAssetAccessor used to load tiles. |
pCompletedRequest | The failed request |
TileContentKind Cesium3DTilesSelection::TileLoadResult::contentKind |
The content type of the tile.
Definition at line 77 of file TileLoadResult.h.
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 136 of file TileLoadResult.h.
CesiumGeometry::Axis Cesium3DTilesSelection::TileLoadResult::glTFUpAxis |
The up axis of glTF content.
Definition at line 82 of file TileLoadResult.h.
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.
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.
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.
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.
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.
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.
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.