5#include <CesiumTilesetJson/BoundingVolume.h>
6#include <CesiumTilesetJson/Content.h>
7#include <CesiumTilesetJson/ImplicitTiling.h>
8#include <CesiumTilesetJson/Library.h>
9#include <CesiumTilesetJson/MetadataEntity.h>
10#include <CesiumUtility/ExtensibleObject.h>
20struct CESIUMTILESETJSON_API
Tile final
25 static constexpr const char*
TypeName =
"Tile";
35 inline static const std::string
ADD =
"ADD";
38 inline static const std::string
REPLACE =
"REPLACE";
83 {1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1};
90 std::optional<CesiumTilesetJson::Content>
content;
96 std::vector<CesiumTilesetJson::Content>
contents;
101 std::optional<CesiumTilesetJson::MetadataEntity>
metadata;
124 accum += int64_t(
sizeof(
Tile));
129 if (this->viewerRequestVolume) {
130 accum += this->viewerRequestVolume->getSizeBytes() -
133 accum += int64_t(
sizeof(
double) * this->transform.capacity());
135 accum += this->content->getSizeBytes() -
144 if (this->metadata) {
145 accum += this->metadata->getSizeBytes() -
148 if (this->implicitTiling) {
149 accum += this->implicitTiling->getSizeBytes() -
Classes to represent a tileset.json from 3D Tiles 1.1.
A bounding volume that encloses a tile or its content. At least one bounding volume property is requi...
int64_t getSizeBytes() const
Calculates the size in bytes of this object, including the contents of all collections,...
Metadata about the tile's content and a link to the content.
This object allows a tile to be implicitly subdivided. Tile and content availability and metadata is ...
Known values for Specifies if additive or replacement refinement is used when traversing the tileset ...
static const std::string ADD
ADD
static const std::string REPLACE
REPLACE
A tile in a 3D Tiles tileset.
std::vector< CesiumTilesetJson::Content > contents
An array of contents. When this is defined, then content shall be undefined.
CesiumTilesetJson::BoundingVolume boundingVolume
The bounding volume that encloses the tile.
std::vector< CesiumTilesetJson::Tile > children
An array of objects that define child tiles. Each child tile content is fully enclosed by its parent ...
double geometricError
The error, in meters, introduced if this tile is rendered and its children are not....
static constexpr const char * TypeName
The original name of this type.
std::optional< CesiumTilesetJson::MetadataEntity > metadata
A metadata entity that is associated with this tile.
std::optional< CesiumTilesetJson::Content > content
Metadata about the tile's content and a link to the content. When this is omitted the tile is just us...
std::vector< double > transform
A floating-point 4x4 affine transformation matrix, stored in column-major order, that transforms the ...
std::optional< CesiumTilesetJson::BoundingVolume > viewerRequestVolume
Optional bounding volume that defines the volume the viewer shall be inside of before the tile's cont...
std::optional< std::string > refine
Specifies if additive or replacement refinement is used when traversing the tileset for rendering....
int64_t getSizeBytes() const
Calculates the size in bytes of this object, including the contents of all collections,...
std::optional< CesiumTilesetJson::ImplicitTiling > implicitTiling
An object that describes the implicit subdivision of this tile.
The base class for objects that have extensions and extras.
int64_t getSizeBytes() const
Calculates the size in bytes of this ExtensibleObject, including all of its extras but NOT including ...