cesium-native 0.43.0
Loading...
Searching...
No Matches
CesiumQuantizedMeshTerrain::LayerSpec Struct Reference

A quantized-mesh terrain layer.json. More...

#include <CesiumQuantizedMeshTerrain/LayerSpec.h>

Inheritance diagram for CesiumQuantizedMeshTerrain::LayerSpec:
CesiumUtility::ExtensibleObject CesiumQuantizedMeshTerrain::Layer

Public Member Functions

int64_t getSizeBytes () const
 Calculates the size in bytes of this object, including the contents of all collections, pointers, and strings. This will NOT include the size of any extensions attached to the object. Calling this method may be slow as it requires traversing the object's entire structure.
 
- Public Member Functions inherited from CesiumUtility::ExtensibleObject
template<typename T >
bool hasExtension () const noexcept
 Checks if an extension exists given its static type.
 
template<typename T >
const T * getExtension () const noexcept
 Gets an extension given its static type.
 
template<typename T >
T * getExtension () noexcept
 Gets an extension given its static type.
 
const JsonValuegetGenericExtension (const std::string &extensionName) const noexcept
 Gets a generic extension with the given name as a CesiumUtility::JsonValue.
 
JsonValuegetGenericExtension (const std::string &extensionName) noexcept
 Gets a generic extension with the given name as a CesiumUtility::JsonValue.
 
template<typename T , typename... ConstructorArgumentTypes>
T & addExtension (ConstructorArgumentTypes &&... constructorArguments)
 Adds a statically-typed extension to this object.
 
template<typename T >
void removeExtension ()
 Removes a statically-typed extension from this object.
 
int64_t getSizeBytes () const
 Calculates the size in bytes of this ExtensibleObject, including all of its extras but NOT including its extensions. Calling this method may be slow as it requires traversing the entire object.
 

Public Attributes

std::string attribution
 The attribution (credit) string for the terrain.
 
std::vector< std::vector< CesiumQuantizedMeshTerrain::AvailabilityRectangle > > available
 The tile availability information. The outer array is indexed by tile level. The inner array is a list of rectangles of availability at that level. Tiles themselves may also contain further availability information for their subtree.
 
std::vector< double > bounds = {-180, -90, 180, 90}
 The bounding box of the terrain, expressed as west, south, east, north in degrees.
 
std::string description
 The description of this terrain tileset.
 
std::vector< std::string > extensionsProperty
 The extensions available for this tileset.
 
std::string format = "quantized-mesh-1.0"
 The format of the terrain tiles. Should be "quantized-mesh-1.0".
 
int64_t maxzoom = int64_t()
 The maximum level for which there are any available tiles.
 
int64_t minzoom = 0
 The minimum level for which there are any available tiles.
 
std::optional< int64_t > metadataAvailability
 The levels at metadata is found in tiles. For example, if this value is 10, then metadata is found at levels 0, 10, 20, etc.
 
std::string name = "Terrain"
 The name of this terrain tileset.
 
std::optional< std::string > parentUrl
 The URL of the parent layer.json that this one is layered on top of.
 
std::string projection = "EPSG:4326"
 The map projection of this tileset. Valid values are "EPSG:4326" and "EPSG:3857".
 
std::string scheme = "tms"
 The tiling scheme. The only valid value is "tms".
 
std::vector< std::string > tiles
 The URL templates from which to obtain tiles.
 
std::string version = "1.0.0"
 The version of this tileset.
 
- Public Attributes inherited from CesiumUtility::ExtensibleObject
std::unordered_map< std::string, std::any > extensions
 The extensions attached to this object.
 
JsonValue::Object extras
 Application-specific data.
 
JsonValue::Object unknownProperties
 Unknown properties that exist on this object but do not have any representation in the statically-typed classes.
 

Static Public Attributes

static constexpr const char * TypeName = "Layer"
 The original name of this type.
 

Protected Member Functions

 LayerSpec ()=default
 This class is not meant to be instantiated directly. Use Layer instead.
 

Friends

struct Layer
 

Detailed Description

A quantized-mesh terrain layer.json.

Definition at line 18 of file LayerSpec.h.

Member Function Documentation

◆ getSizeBytes()

int64_t CesiumQuantizedMeshTerrain::LayerSpec::getSizeBytes ( ) const
inline

Calculates the size in bytes of this object, including the contents of all collections, pointers, and strings. This will NOT include the size of any extensions attached to the object. Calling this method may be slow as it requires traversing the object's entire structure.

Definition at line 113 of file LayerSpec.h.

Friends And Related Symbol Documentation

◆ Layer

friend struct Layer
friend

Definition at line 154 of file LayerSpec.h.

Member Data Documentation

◆ attribution

std::string CesiumQuantizedMeshTerrain::LayerSpec::attribution

The attribution (credit) string for the terrain.

Definition at line 28 of file LayerSpec.h.

◆ available

std::vector<std::vector<CesiumQuantizedMeshTerrain::AvailabilityRectangle> > CesiumQuantizedMeshTerrain::LayerSpec::available

The tile availability information. The outer array is indexed by tile level. The inner array is a list of rectangles of availability at that level. Tiles themselves may also contain further availability information for their subtree.

Definition at line 37 of file LayerSpec.h.

◆ bounds

std::vector<double> CesiumQuantizedMeshTerrain::LayerSpec::bounds = {-180, -90, 180, 90}

The bounding box of the terrain, expressed as west, south, east, north in degrees.

Definition at line 43 of file LayerSpec.h.

◆ description

std::string CesiumQuantizedMeshTerrain::LayerSpec::description

The description of this terrain tileset.

Definition at line 48 of file LayerSpec.h.

◆ extensionsProperty

std::vector<std::string> CesiumQuantizedMeshTerrain::LayerSpec::extensionsProperty

The extensions available for this tileset.

Definition at line 53 of file LayerSpec.h.

◆ format

std::string CesiumQuantizedMeshTerrain::LayerSpec::format = "quantized-mesh-1.0"

The format of the terrain tiles. Should be "quantized-mesh-1.0".

Definition at line 58 of file LayerSpec.h.

◆ maxzoom

int64_t CesiumQuantizedMeshTerrain::LayerSpec::maxzoom = int64_t()

The maximum level for which there are any available tiles.

Definition at line 63 of file LayerSpec.h.

◆ metadataAvailability

std::optional<int64_t> CesiumQuantizedMeshTerrain::LayerSpec::metadataAvailability

The levels at metadata is found in tiles. For example, if this value is 10, then metadata is found at levels 0, 10, 20, etc.

Definition at line 74 of file LayerSpec.h.

◆ minzoom

int64_t CesiumQuantizedMeshTerrain::LayerSpec::minzoom = 0

The minimum level for which there are any available tiles.

Definition at line 68 of file LayerSpec.h.

◆ name

std::string CesiumQuantizedMeshTerrain::LayerSpec::name = "Terrain"

The name of this terrain tileset.

Definition at line 79 of file LayerSpec.h.

◆ parentUrl

std::optional<std::string> CesiumQuantizedMeshTerrain::LayerSpec::parentUrl

The URL of the parent layer.json that this one is layered on top of.

Definition at line 84 of file LayerSpec.h.

◆ projection

std::string CesiumQuantizedMeshTerrain::LayerSpec::projection = "EPSG:4326"

The map projection of this tileset. Valid values are "EPSG:4326" and "EPSG:3857".

Definition at line 90 of file LayerSpec.h.

◆ scheme

std::string CesiumQuantizedMeshTerrain::LayerSpec::scheme = "tms"

The tiling scheme. The only valid value is "tms".

Definition at line 95 of file LayerSpec.h.

◆ tiles

std::vector<std::string> CesiumQuantizedMeshTerrain::LayerSpec::tiles

The URL templates from which to obtain tiles.

Definition at line 100 of file LayerSpec.h.

◆ TypeName

const char* CesiumQuantizedMeshTerrain::LayerSpec::TypeName = "Layer"
staticconstexpr

The original name of this type.

Definition at line 23 of file LayerSpec.h.

◆ version

std::string CesiumQuantizedMeshTerrain::LayerSpec::version = "1.0.0"

The version of this tileset.

Definition at line 105 of file LayerSpec.h.


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