cesium-native
0.41.0
|
A tile content container that can store and query the content type that is currently being owned by the tile. More...
#include <Cesium3DTilesSelection/TileContent.h>
Public Member Functions | |
TileContent () | |
Construct an unknown content for a tile. This constructor is useful when the tile content is known after its content is downloaded by TilesetContentLoader. | |
TileContent (TileEmptyContent content) | |
Construct an empty content for a tile. | |
TileContent (std::unique_ptr< TileExternalContent > &&content) | |
Construct an external content for a tile whose content points to an external tileset. | |
void | setContentKind (TileUnknownContent content) |
Set an unknown content tag for a tile. This constructor is useful when the tile content is known after its content is downloaded by TilesetContentLoader. | |
void | setContentKind (TileEmptyContent content) |
Construct an empty content tag for a tile. | |
void | setContentKind (std::unique_ptr< TileExternalContent > &&content) |
Set an external content for a tile whose content points to an external tileset. | |
void | setContentKind (std::unique_ptr< TileRenderContent > &&content) |
Set a glTF model content for a tile. | |
bool | isUnknownContent () const noexcept |
Query if a tile has an unknown content. | |
bool | isEmptyContent () const noexcept |
Query if a tile has an empty content. | |
bool | isExternalContent () const noexcept |
Query if a tile has an external content which points to an external tileset. | |
bool | isRenderContent () const noexcept |
Query if a tile has an glTF model content. | |
const TileRenderContent * | getRenderContent () const noexcept |
Get the TileRenderContent which stores the glTF model and render resources of the tile. | |
TileRenderContent * | getRenderContent () noexcept |
Get the TileRenderContent which stores the glTF model and render resources of the tile. | |
const TileExternalContent * | getExternalContent () const noexcept |
Get the TileExternalContent which stores the details of the external tileset. | |
TileExternalContent * | getExternalContent () noexcept |
Get the TileExternalContent which stores the details of the external tileset. | |
A tile content container that can store and query the content type that is currently being owned by the tile.
Definition at line 207 of file TileContent.h.