cesium-native  0.41.0
Cesium3DTiles::Tile Struct Referencefinal

A tile in a 3D Tiles tileset. More...

#include <Cesium3DTiles/Tile.h>

Inheritance diagram for Cesium3DTiles::Tile:
CesiumUtility::ExtensibleObject

Classes

struct  Refine
 Known values for Specifies if additive or replacement refinement is used when traversing the tileset for rendering. This property is required for the root tile of a tileset; it is optional for all other tiles. The default is to inherit from the parent tile. More...
 

Public Attributes

Cesium3DTiles::BoundingVolume boundingVolume
 The bounding volume that encloses the tile.
 
std::optional< Cesium3DTiles::BoundingVolumeviewerRequestVolume
 Optional bounding volume that defines the volume the viewer shall be inside of before the tile's content will be requested and before the tile will be refined based on geometricError.
 
double geometricError = double()
 The error, in meters, introduced if this tile is rendered and its children are not. At runtime, the geometric error is used to compute screen space error (SSE), i.e., the error measured in pixels.
 
std::optional< std::string > refine
 Specifies if additive or replacement refinement is used when traversing the tileset for rendering. This property is required for the root tile of a tileset; it is optional for all other tiles. The default is to inherit from the parent tile. More...
 
std::vector< double > transform
 A floating-point 4x4 affine transformation matrix, stored in column-major order, that transforms the tile's content–i.e., its features as well as content.boundingVolume, boundingVolume, and viewerRequestVolume–from the tile's local coordinate system to the parent tile's coordinate system, or, in the case of a root tile, from the tile's local coordinate system to the tileset's coordinate system. transform does not apply to any volume property when the volume is a region, defined in EPSG:4979 coordinates. transform scales the geometricError by the maximum scaling factor from the matrix. More...
 
std::optional< Cesium3DTiles::Contentcontent
 Metadata about the tile's content and a link to the content. When this is omitted the tile is just used for culling. When this is defined, then contents shall be undefined.
 
std::vector< Cesium3DTiles::Contentcontents
 An array of contents. When this is defined, then content shall be undefined.
 
std::optional< Cesium3DTiles::MetadataEntitymetadata
 A metadata entity that is associated with this tile.
 
std::optional< Cesium3DTiles::ImplicitTilingimplicitTiling
 An object that describes the implicit subdivision of this tile.
 
std::vector< Cesium3DTiles::Tilechildren
 An array of objects that define child tiles. Each child tile content is fully enclosed by its parent tile's bounding volume and, generally, has a geometricError less than its parent tile's geometricError. For leaf tiles, there are no children, and this property may not be defined.
 
- Public Attributes inherited from CesiumUtility::ExtensibleObject
std::unordered_map< std::string, std::any > extensions
 The extensions attached to this object. More...
 
JsonValue::Object extras
 Application-specific data. More...
 
JsonValue::Object unknownProperties
 Unknown properties that exist on this object but do not have any representation in the statically-typed classes. More...
 

Static Public Attributes

static constexpr const char * TypeName = "Tile"
 

Additional Inherited Members

- Public Member Functions inherited from CesiumUtility::ExtensibleObject
template<typename T >
bool hasExtension () const noexcept
 Checks if an extension exists given its static type. More...
 
template<typename T >
const T * getExtension () const noexcept
 Gets an extension given its static type. More...
 
template<typename T >
T * getExtension () noexcept
 Gets an extension given its static type. More...
 
const JsonValuegetGenericExtension (const std::string &extensionName) const noexcept
 Gets a generic extension with the given name as a CesiumUtility::JsonValue. More...
 
JsonValuegetGenericExtension (const std::string &extensionName) noexcept
 Gets a generic extension with the given name as a CesiumUtility::JsonValue. More...
 
template<typename T , typename... ConstructorArgumentTypes>
T & addExtension (ConstructorArgumentTypes &&... constructorArguments)
 Adds a statically-typed extension to this object. More...
 
template<typename T >
void removeExtension ()
 Removes a statically-typed extension from this object. More...
 

Detailed Description

A tile in a 3D Tiles tileset.

Definition at line 21 of file Tile.h.

Member Data Documentation

◆ refine

std::optional<std::string> Cesium3DTiles::Tile::refine

Specifies if additive or replacement refinement is used when traversing the tileset for rendering. This property is required for the root tile of a tileset; it is optional for all other tiles. The default is to inherit from the parent tile.

Known values are defined in Refine.

Definition at line 64 of file Tile.h.

◆ transform

std::vector<double> Cesium3DTiles::Tile::transform
Initial value:
=
{1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1}

A floating-point 4x4 affine transformation matrix, stored in column-major order, that transforms the tile's content–i.e., its features as well as content.boundingVolume, boundingVolume, and viewerRequestVolume–from the tile's local coordinate system to the parent tile's coordinate system, or, in the case of a root tile, from the tile's local coordinate system to the tileset's coordinate system. transform does not apply to any volume property when the volume is a region, defined in EPSG:4979 coordinates. transform scales the geometricError by the maximum scaling factor from the matrix.

Definition at line 77 of file Tile.h.


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