cesium-native  0.41.0
Cesium3DTilesSelection::TilesetMetadata Class Reference

Holds the metadata associated with a Tileset or an external tileset. More...

#include <Cesium3DTilesSelection/TilesetMetadata.h>

Public Member Functions

CesiumAsync::SharedFuture< void > & loadSchemaUri (const CesiumAsync::AsyncSystem &asyncSystem, const std::shared_ptr< CesiumAsync::IAssetAccessor > &pAssetAccessor)
 Asynchronously loads the schema from the schemaUri. If the schemaUri does not contain a value, this method does nothing and returns an already-resolved future. More...
 

Public Attributes

std::optional< Cesium3DTiles::Schemaschema
 An object defining the structure of metadata classes and enums. When this is defined, then schemaUri shall be undefined.
 
std::optional< std::string > schemaUri
 The URI (or IRI) of the external schema file. When this is defined, then schema shall be undefined.
 
std::vector< Cesium3DTiles::GroupMetadatagroups
 An array of groups that tile content may belong to. Each element of this array is a metadata entity that describes the group. The tile content group property is an index into this array.
 
std::optional< Cesium3DTiles::MetadataEntitymetadata
 A metadata entity that is associated with this tileset.
 

Detailed Description

Holds the metadata associated with a Tileset or an external tileset.

Definition at line 24 of file TilesetMetadata.h.

Member Function Documentation

◆ loadSchemaUri()

CesiumAsync::SharedFuture<void>& Cesium3DTilesSelection::TilesetMetadata::loadSchemaUri ( const CesiumAsync::AsyncSystem asyncSystem,
const std::shared_ptr< CesiumAsync::IAssetAccessor > &  pAssetAccessor 
)

Asynchronously loads the schema from the schemaUri. If the schemaUri does not contain a value, this method does nothing and returns an already-resolved future.

Calling this method multiple times will return the same shared future each time, unless the schemaUri is changed. In that case, when this method is called, the previous load is canceled and the new one begins.

Parameters
asyncSystemThe async system used to do work in threads.
pAssetAccessorThe asset accessor used to request the schema from the schemaUri.
Returns
A future that resolves when the schema has been loaded from the schemaUri.

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