4 #include "TilesetMetadata.h"
6 #include <CesiumGeospatial/Projection.h>
7 #include <CesiumGltf/Model.h>
8 #include <CesiumRasterOverlays/RasterOverlayDetails.h>
9 #include <CesiumUtility/CreditSystem.h>
106 getRasterOverlayDetails() const noexcept;
114 getRasterOverlayDetails() noexcept;
121 void setRasterOverlayDetails(
129 void setRasterOverlayDetails(
165 void* getRenderResources() const noexcept;
173 void setRenderResources(
void* pRenderResources) noexcept;
185 float getLodTransitionFadePercentage() const noexcept;
193 void setLodTransitionFadePercentage(
float percentage) noexcept;
197 void* _pRenderResources;
200 float _lodTransitionFadePercentage;
208 using TileContentKindImpl = std::variant<
211 std::unique_ptr<TileExternalContent>,
212 std::unique_ptr<TileRenderContent>>;
264 bool isEmptyContent() const noexcept;
270 bool isExternalContent() const noexcept;
275 bool isRenderContent() const noexcept;
302 TileContentKindImpl _contentKind;
A tile content container that can store and query the content type that is currently being owned by t...
TileContent(std::unique_ptr< TileExternalContent > &&content)
Construct an external content for a tile whose content points to an external tileset.
TileContent(TileEmptyContent content)
Construct an empty content for a tile.
TileContent()
Construct an unknown content for a tile. This constructor is useful when the tile content is known af...
void setContentKind(TileEmptyContent content)
Construct an empty content tag for a tile.
void setContentKind(std::unique_ptr< TileRenderContent > &&content)
Set a glTF model content for a tile.
void setContentKind(std::unique_ptr< TileExternalContent > &&content)
Set an external content for a tile whose content points to an external tileset.
bool isUnknownContent() const noexcept
Query if a tile has an unknown content.
void setContentKind(TileUnknownContent content)
Set an unknown content tag for a tile. This constructor is useful when the tile content is known afte...
A content tag that indicates a tile has a glTF model content and render resources for the model.
TileRenderContent(CesiumGltf::Model &&model)
Construct the content with a glTF model.
const CesiumGltf::Model & getModel() const noexcept
Retrieve a glTF model that is owned by this content.
Classes that implement the 3D Tiles standard.
Classes for working with glTF models.
Classes for raster overlays, which allow draping massive 2D textures over a model.
Utility classes for Cesium.
A content tag that indicates a tile has no content.
A content tag that indicates a tile content points to an external tileset. When this tile is loaded,...
TilesetMetadata metadata
The metadata associated with this tileset.
A content tag that indicates the TilesetContentLoader does not know if a tile's content will point to...
The root object for a glTF asset.