cesium-native 0.43.0
Loading...
Searching...
No Matches
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.
 

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.

Member Data Documentation

◆ groups

std::vector<Cesium3DTiles::GroupMetadata> Cesium3DTilesSelection::TilesetMetadata::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.

Definition at line 45 of file TilesetMetadata.h.

◆ metadata

std::optional<Cesium3DTiles::MetadataEntity> Cesium3DTilesSelection::TilesetMetadata::metadata

A metadata entity that is associated with this tileset.

Definition at line 50 of file TilesetMetadata.h.

◆ schema

std::optional<Cesium3DTiles::Schema> Cesium3DTilesSelection::TilesetMetadata::schema

An object defining the structure of metadata classes and enums. When this is defined, then schemaUri shall be undefined.

Definition at line 32 of file TilesetMetadata.h.

◆ schemaUri

std::optional<std::string> Cesium3DTilesSelection::TilesetMetadata::schemaUri

The URI (or IRI) of the external schema file. When this is defined, then schema shall be undefined.

Definition at line 38 of file TilesetMetadata.h.


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