|
cesium-native 0.53.0
|
A content tag that indicates a tile has a glTF model content and render resources for the model. More...
#include <Cesium3DTilesSelection/TileContent.h>
Public Member Functions | |
| 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. | |
| CesiumGltf::Model & | getModel () noexcept |
| Retrieve a glTF model that is owned by this content. | |
| void | setModel (const CesiumGltf::Model &model) |
| Set the glTF model for this content. | |
| void | setModel (CesiumGltf::Model &&model) |
| Set the glTF model for this content. | |
| const CesiumRasterOverlays::RasterOverlayDetails & | getRasterOverlayDetails () const noexcept |
Get the CesiumRasterOverlays::RasterOverlayDetails which is the result of generating raster overlay UVs for the glTF model. | |
| CesiumRasterOverlays::RasterOverlayDetails & | getRasterOverlayDetails () noexcept |
Get the CesiumRasterOverlays::RasterOverlayDetails which is the result of generating raster overlay UVs for the glTF model. | |
| void | setRasterOverlayDetails (const CesiumRasterOverlays::RasterOverlayDetails &rasterOverlayDetails) |
Set the CesiumRasterOverlays::RasterOverlayDetails which is the result of generating raster overlay UVs for the glTF model. | |
| void | setRasterOverlayDetails (CesiumRasterOverlays::RasterOverlayDetails &&rasterOverlayDetails) |
Set the CesiumRasterOverlays::RasterOverlayDetails which is the result of generating raster overlay UVs for the glTF model. | |
| const std::vector< CesiumUtility::Credit > & | getCredits () const noexcept |
| Get the list of Credit of the content. | |
| std::vector< CesiumUtility::Credit > & | getCredits () noexcept |
| Get the list of Credit of the content. | |
| void | setCredits (std::vector< CesiumUtility::Credit > &&credits) |
| Set the list of Credit for the content. | |
| void | setCredits (const 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. | |
| 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. | |
| void | setLodTransitionFadePercentage (float percentage) noexcept |
| Set the fade percentage of this tile during an LOD transition with. Not to be used by clients. | |
| GltfModifierState | getGltfModifierState () const noexcept |
Gets the state of the GltfModifier processing of this tile's content. | |
| 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 * | getModifiedRenderResources () const noexcept |
Gets the renderer resources for the modified model produced by the GltfModifier that is not yet available for rendering. These resources are created by IPrepareRendererResources::prepareInLoadThread. | |
| void | setModifiedModelAndRenderResources (CesiumGltf::Model &&modifiedModel, void *pModifiedRenderResources) noexcept |
Stores the modified model and associated renderer resources produced by the GltfModifier that are not yet available for rendering. The renderer resources are created by IPrepareRendererResources::prepareInLoadThread. | |
| void | resetModifiedModelAndRenderResources () noexcept |
Resets the modified model and renderer resources after they have been determined to be outdated and have been freed with IPrepareRendererResources::free. | |
| void | replaceWithModifiedModel () noexcept |
Overwrites this instance's model and renderer resources with the modified ones produced by GltfModifier. The new model and resources become eligible for rendering. | |
A content tag that indicates a tile has a glTF model content and render resources for the model.
Definition at line 65 of file TileContent.h.
| Cesium3DTilesSelection::TileRenderContent::TileRenderContent | ( | CesiumGltf::Model && | model | ) |
Construct the content with a glTF model.
| model | A glTF model that will be owned by this content |
|
noexcept |
|
noexcept |
|
noexcept |
Get the fade percentage that this tile during an LOD transition.
This will be used when TilesetOptions::enableLodTransitionPeriod is true. Tile fades can be used to make LOD transitions appear less abrupt and jarring. It is up to client implementations how to render the fade percentage, but dithered fading is recommended.
|
noexcept |
Retrieve a glTF model that is owned by this content.
|
noexcept |
Retrieve a glTF model that is owned by this content.
|
noexcept |
Get the CesiumRasterOverlays::RasterOverlayDetails which is the result of generating raster overlay UVs for the glTF model.
CesiumRasterOverlays::RasterOverlayDetails that is owned by this content
|
noexcept |
Get the CesiumRasterOverlays::RasterOverlayDetails which is the result of generating raster overlay UVs for the glTF model.
CesiumRasterOverlays::RasterOverlayDetails that is owned by this content
|
noexcept |
Get the renderer resources created for the glTF model of the content.
|
noexcept |
Overwrites this instance's model and renderer resources with the modified ones produced by GltfModifier. The new model and resources become eligible for rendering.
After this method returns, getModifiedModel will return std::nullopt and getModifiedRenderResources will return nullptr.
| void Cesium3DTilesSelection::TileRenderContent::setCredits | ( | const std::vector< CesiumUtility::Credit > & | credits | ) |
| void Cesium3DTilesSelection::TileRenderContent::setCredits | ( | std::vector< CesiumUtility::Credit > && | credits | ) |
|
noexcept |
Set the fade percentage of this tile during an LOD transition with. Not to be used by clients.
| percentage | The new fade percentage. |
| void Cesium3DTilesSelection::TileRenderContent::setModel | ( | CesiumGltf::Model && | model | ) |
Set the glTF model for this content.
| model | A glTF model that will be owned by this content |
| void Cesium3DTilesSelection::TileRenderContent::setModel | ( | const CesiumGltf::Model & | model | ) |
Set the glTF model for this content.
| model | A glTF model that will be owned by this content |
| void Cesium3DTilesSelection::TileRenderContent::setRasterOverlayDetails | ( | CesiumRasterOverlays::RasterOverlayDetails && | rasterOverlayDetails | ) |
Set the CesiumRasterOverlays::RasterOverlayDetails which is the result of generating raster overlay UVs for the glTF model.
| rasterOverlayDetails | The CesiumRasterOverlays::RasterOverlayDetails that will be owned by this content |
| void Cesium3DTilesSelection::TileRenderContent::setRasterOverlayDetails | ( | const CesiumRasterOverlays::RasterOverlayDetails & | rasterOverlayDetails | ) |
Set the CesiumRasterOverlays::RasterOverlayDetails which is the result of generating raster overlay UVs for the glTF model.
| rasterOverlayDetails | The CesiumRasterOverlays::RasterOverlayDetails that will be owned by this content |
|
noexcept |
Set the renderer resources created for the glTF model of the content.
| pRenderResources | The renderer resources that are created for the glTF model. |