cesium-native
0.41.0
|
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::Schema > | schema |
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::GroupMetadata > | groups |
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::MetadataEntity > | metadata |
A metadata entity that is associated with this tileset. | |
Holds the metadata associated with a Tileset or an external tileset.
Definition at line 24 of file TilesetMetadata.h.
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.
asyncSystem | The async system used to do work in threads. |
pAssetAccessor | The asset accessor used to request the schema from the schemaUri. |