3#include <Cesium3DTilesSelection/GltfModifierState.h>
4#include <Cesium3DTilesSelection/Library.h>
5#include <Cesium3DTilesSelection/TilesetMetadata.h>
6#include <CesiumGeospatial/Projection.h>
7#include <CesiumGltf/Model.h>
8#include <CesiumRasterOverlays/RasterOverlayDetails.h>
9#include <CesiumUtility/CreditSystem.h>
10#include <CesiumUtility/ExtensibleObject.h>
262 void* pModifiedRenderResources,
264 rasterOverlayDetails =
std::nullopt) noexcept;
304 void* _pRenderResources;
309 void* _pModifiedRenderResources;
311 _modifiedRasterOverlayDetails;
312 mutable int32_t _activeUpsamplingTaskCount;
315 float _lodTransitionFadePercentage;
323 using TileContentKindImpl = std::variant<
326 std::unique_ptr<TileExternalContent>,
327 std::unique_ptr<TileRenderContent>>;
417 TileContentKindImpl _contentKind;
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...
const TileExternalContent * getExternalContent() const noexcept
Get the TileExternalContent which stores the details of the external tileset.
void setContentKind(TileEmptyContent content)
Construct an empty content tag for a tile.
const TileRenderContent * getRenderContent() const noexcept
Get the TileRenderContent which stores the glTF model and render resources of the tile.
bool isExternalContent() const noexcept
Query if a tile has an external content which points to an external tileset.
void setContentKind(std::unique_ptr< TileRenderContent > &&content)
Set a glTF model content for a tile.
bool isEmptyContent() const noexcept
Query if a tile has an empty content.
bool isRenderContent() const noexcept
Query if a tile has an glTF model content.
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.
void setModifiedModelAndRenderResources(CesiumGltf::Model &&loadResult, void *pModifiedRenderResources, std::optional< CesiumRasterOverlays::RasterOverlayDetails > &&rasterOverlayDetails=std::nullopt) noexcept
Stores the modified model and associated renderer resources produced by the GltfModifier that are not...
void replaceWithModifiedModel() noexcept
Overwrites this instance's model and renderer resources with the modified ones produced by GltfModifi...
void setModel(const CesiumGltf::Model &model)
Set the glTF model for this content.
void setCredits(std::vector< CesiumUtility::Credit > &&credits)
Set the list of Credit for the content.
void * getRenderResources() const noexcept
Get the renderer resources created for the glTF model of the content.
GltfModifierState getGltfModifierState() const noexcept
Gets the state of the GltfModifier processing of this tile's content.
void decrementUpsamplingTaskCount() const noexcept
Decrement the current upsampling task count. It should only be called by the main thread.
void setLodTransitionFadePercentage(float percentage) noexcept
Set the fade percentage of this tile during an LOD transition with. Not to be used by clients.
TileRenderContent(CesiumGltf::Model &&model)
Construct the content with a glTF model.
const std::vector< CesiumUtility::Credit > & getCredits() const noexcept
Get the list of Credit of the content.
void incrementUpsamplingTaskCount() const noexcept
Increment the current upsampling task count. It should only be called by the main thread.
void * getModifiedRenderResources() const noexcept
Gets the renderer resources for the modified model produced by the GltfModifier that is not yet avail...
void setRenderResources(void *pRenderResources) noexcept
Set the renderer resources created for the glTF model of the content.
float getLodTransitionFadePercentage() const noexcept
Get the fade percentage that this tile during an LOD transition.
bool isBeingUpsampled() const noexcept
Returns whether this tile is currently being upsampled. It should only be called by the main thread.
void resetModifiedModelAndRenderResources() noexcept
Resets the modified model and renderer resources after they have been determined to be outdated and h...
void setGltfModifierState(GltfModifierState modifierState) noexcept
Sets the state of the GltfModifier processing of this tile's content.
const std::optional< CesiumGltf::Model > & getModifiedModel() const noexcept
Gets the modified model produced by the GltfModifier that is not yet available for rendering.
void setRasterOverlayDetails(const CesiumRasterOverlays::RasterOverlayDetails &rasterOverlayDetails)
Set the CesiumRasterOverlays::RasterOverlayDetails which is the result of generating raster overlay U...
const CesiumRasterOverlays::RasterOverlayDetails & getRasterOverlayDetails() const noexcept
Get the CesiumRasterOverlays::RasterOverlayDetails which is the result of generating raster overlay U...
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,...
bool isImplicit
Indicates that the tile is the root of an implicit tileset.
TileExternalContent(bool implicit=false)
Construct the external content object.
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...
This class is not meant to be instantiated directly. Use Model instead.
Holds details of the Cesium3DTilesSelection::TileRenderContent that are useful for raster overlays.
The base class for objects that have extensions and extras.