A content tag that indicates a tile has a glTF model content and render resources for the model.
More...
#include <Cesium3DTilesSelection/TileContent.h>
A content tag that indicates a tile has a glTF model content and render resources for the model.
Definition at line 63 of file TileContent.h.
◆ TileRenderContent()
Cesium3DTilesSelection::TileRenderContent::TileRenderContent |
( |
CesiumGltf::Model && |
model | ) |
|
Construct the content with a glTF model.
- Parameters
-
model | A glTF model that will be owned by this content |
◆ getCredits() [1/2]
const std::vector<CesiumUtility::Credit>& Cesium3DTilesSelection::TileRenderContent::getCredits |
( |
| ) |
const |
|
noexcept |
Get the list of Credit of the content.
- Returns
- The list of Credit of the content
◆ getCredits() [2/2]
Get the list of Credit of the content.
- Returns
- The list of Credit of the content
◆ getLodTransitionFadePercentage()
float Cesium3DTilesSelection::TileRenderContent::getLodTransitionFadePercentage |
( |
| ) |
const |
|
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.
- Returns
- The fade percentage.
◆ getModel() [1/2]
const CesiumGltf::Model& Cesium3DTilesSelection::TileRenderContent::getModel |
( |
| ) |
const |
|
noexcept |
Retrieve a glTF model that is owned by this content.
- Returns
- A glTF model that is owned by this content
◆ getModel() [2/2]
Retrieve a glTF model that is owned by this content.
- Returns
- A glTF model that is owned by this content
◆ getRasterOverlayDetails() [1/2]
◆ getRasterOverlayDetails() [2/2]
◆ getRenderResources()
void* Cesium3DTilesSelection::TileRenderContent::getRenderResources |
( |
| ) |
const |
|
noexcept |
Get the render resources created for the glTF model of the content.
- Returns
- The render resources that is created for the glTF model
◆ setCredits() [1/2]
void Cesium3DTilesSelection::TileRenderContent::setCredits |
( |
const std::vector< CesiumUtility::Credit > & |
credits | ) |
|
Set the list of Credit for the content.
- Parameters
-
credits | The list of Credit to be owned by the content |
◆ setCredits() [2/2]
void Cesium3DTilesSelection::TileRenderContent::setCredits |
( |
std::vector< CesiumUtility::Credit > && |
credits | ) |
|
Set the list of Credit for the content.
- Parameters
-
credits | The list of Credit to be owned by the content |
◆ setLodTransitionFadePercentage()
void Cesium3DTilesSelection::TileRenderContent::setLodTransitionFadePercentage |
( |
float |
percentage | ) |
|
|
noexcept |
Set the fade percentage of this tile during an LOD transition with. Not to be used by clients.
- Parameters
-
percentage | The new fade percentage. |
◆ setModel() [1/2]
void Cesium3DTilesSelection::TileRenderContent::setModel |
( |
CesiumGltf::Model && |
model | ) |
|
Set the glTF model for this content.
- Parameters
-
model | A glTF model that will be owned by this content |
◆ setModel() [2/2]
void Cesium3DTilesSelection::TileRenderContent::setModel |
( |
const CesiumGltf::Model & |
model | ) |
|
Set the glTF model for this content.
- Parameters
-
model | A glTF model that will be owned by this content |
◆ setRasterOverlayDetails() [1/2]
Set the RasterOverlayDetails which is the result of generating raster overlay UVs for the glTF model.
- Parameters
-
◆ setRasterOverlayDetails() [2/2]
Set the RasterOverlayDetails which is the result of generating raster overlay UVs for the glTF model.
- Parameters
-
◆ setRenderResources()
void Cesium3DTilesSelection::TileRenderContent::setRenderResources |
( |
void * |
pRenderResources | ) |
|
|
noexcept |
Set the render resources created for the glTF model of the content.
- Parameters
-
pRenderResources | The render resources that is created for the glTF model |
The documentation for this class was generated from the following file:
- /home/runner/work/cesium-native/cesium-native/Cesium3DTilesSelection/include/Cesium3DTilesSelection/TileContent.h