cesium-native  0.41.0
Cesium3DTilesSelection::TileRenderContent Class Reference

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. More...
 
const CesiumGltf::ModelgetModel () const noexcept
 Retrieve a glTF model that is owned by this content. More...
 
CesiumGltf::ModelgetModel () noexcept
 Retrieve a glTF model that is owned by this content. More...
 
void setModel (const CesiumGltf::Model &model)
 Set the glTF model for this content. More...
 
void setModel (CesiumGltf::Model &&model)
 Set the glTF model for this content. More...
 
const CesiumRasterOverlays::RasterOverlayDetailsgetRasterOverlayDetails () const noexcept
 Get the RasterOverlayDetails which is the result of generating raster overlay UVs for the glTF model. More...
 
CesiumRasterOverlays::RasterOverlayDetailsgetRasterOverlayDetails () noexcept
 Get the RasterOverlayDetails which is the result of generating raster overlay UVs for the glTF model. More...
 
void setRasterOverlayDetails (const CesiumRasterOverlays::RasterOverlayDetails &rasterOverlayDetails)
 Set the RasterOverlayDetails which is the result of generating raster overlay UVs for the glTF model. More...
 
void setRasterOverlayDetails (CesiumRasterOverlays::RasterOverlayDetails &&rasterOverlayDetails)
 Set the RasterOverlayDetails which is the result of generating raster overlay UVs for the glTF model. More...
 
const std::vector< CesiumUtility::Credit > & getCredits () const noexcept
 Get the list of Credit of the content. More...
 
std::vector< CesiumUtility::Credit > & getCredits () noexcept
 Get the list of Credit of the content. More...
 
void setCredits (std::vector< CesiumUtility::Credit > &&credits)
 Set the list of Credit for the content. More...
 
void setCredits (const std::vector< CesiumUtility::Credit > &credits)
 Set the list of Credit for the content. More...
 
void * getRenderResources () const noexcept
 Get the render resources created for the glTF model of the content. More...
 
void setRenderResources (void *pRenderResources) noexcept
 Set the render resources created for the glTF model of the content. More...
 
float getLodTransitionFadePercentage () const noexcept
 Get the fade percentage that this tile during an LOD transition. More...
 
void setLodTransitionFadePercentage (float percentage) noexcept
 Set the fade percentage of this tile during an LOD transition with. Not to be used by clients. More...
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ TileRenderContent()

Cesium3DTilesSelection::TileRenderContent::TileRenderContent ( CesiumGltf::Model &&  model)

Construct the content with a glTF model.

Parameters
modelA glTF model that will be owned by this content

Member Function Documentation

◆ 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]

std::vector<CesiumUtility::Credit>& Cesium3DTilesSelection::TileRenderContent::getCredits ( )
noexcept

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]

CesiumGltf::Model& Cesium3DTilesSelection::TileRenderContent::getModel ( )
noexcept

Retrieve a glTF model that is owned by this content.

Returns
A glTF model that is owned by this content

◆ getRasterOverlayDetails() [1/2]

const CesiumRasterOverlays::RasterOverlayDetails& Cesium3DTilesSelection::TileRenderContent::getRasterOverlayDetails ( ) const
noexcept

Get the RasterOverlayDetails which is the result of generating raster overlay UVs for the glTF model.

Returns
The RasterOverlayDetails that is owned by this content

◆ getRasterOverlayDetails() [2/2]

CesiumRasterOverlays::RasterOverlayDetails& Cesium3DTilesSelection::TileRenderContent::getRasterOverlayDetails ( )
noexcept

Get the RasterOverlayDetails which is the result of generating raster overlay UVs for the glTF model.

Returns
The RasterOverlayDetails that is owned by this content

◆ 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
creditsThe 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
creditsThe 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
percentageThe new fade percentage.

◆ setModel() [1/2]

void Cesium3DTilesSelection::TileRenderContent::setModel ( CesiumGltf::Model &&  model)

Set the glTF model for this content.

Parameters
modelA 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
modelA glTF model that will be owned by this content

◆ setRasterOverlayDetails() [1/2]

void Cesium3DTilesSelection::TileRenderContent::setRasterOverlayDetails ( CesiumRasterOverlays::RasterOverlayDetails &&  rasterOverlayDetails)

Set the RasterOverlayDetails which is the result of generating raster overlay UVs for the glTF model.

Parameters
rasterOverlayDetailsThe RasterOverlayDetails that will be owned by this content

◆ setRasterOverlayDetails() [2/2]

void Cesium3DTilesSelection::TileRenderContent::setRasterOverlayDetails ( const CesiumRasterOverlays::RasterOverlayDetails rasterOverlayDetails)

Set the RasterOverlayDetails which is the result of generating raster overlay UVs for the glTF model.

Parameters
rasterOverlayDetailsThe RasterOverlayDetails that will be owned by this content

◆ setRenderResources()

void Cesium3DTilesSelection::TileRenderContent::setRenderResources ( void *  pRenderResources)
noexcept

Set the render resources created for the glTF model of the content.

Parameters
pRenderResourcesThe render resources that is created for the glTF model

The documentation for this class was generated from the following file: