5#include <Cesium3DTiles/Availability.h>
6#include <Cesium3DTiles/Buffer.h>
7#include <Cesium3DTiles/BufferView.h>
8#include <Cesium3DTiles/Library.h>
9#include <Cesium3DTiles/MetadataEntity.h>
10#include <Cesium3DTiles/PropertyTable.h>
11#include <CesiumUtility/ExtensibleObject.h>
28 static constexpr const char* TypeName =
"Subtree";
33 std::vector<Cesium3DTiles::Buffer>
buffers;
113 accum += int64_t(
sizeof(
Subtree));
136 this->contentAvailability.capacity());
141 accum += this->childSubtreeAvailability.
getSizeBytes() -
143 accum += int64_t(
sizeof(int64_t) * this->contentMetadata.capacity());
144 if (this->subtreeMetadata) {
145 accum += this->subtreeMetadata->getSizeBytes() -
Classes for using 3D Tiles.
An object describing the availability of a set of elements.
int64_t getSizeBytes() const
Calculates the size in bytes of this object, including the contents of all collections,...
A contiguous subset of a buffer.
This class is not meant to be instantiated directly. Use Buffer instead.
Properties conforming to a class, organized as property values stored in binary columnar arrays.
An object describing the availability of tiles and content in a subtree, as well as availability of c...
std::optional< Cesium3DTiles::MetadataEntity > subtreeMetadata
Subtree metadata encoded in JSON.
std::vector< Cesium3DTiles::PropertyTable > propertyTables
An array of property tables.
std::optional< int64_t > tileMetadata
Index of the property table containing tile metadata. Tile metadata only exists for available tiles a...
std::vector< Cesium3DTiles::BufferView > bufferViews
An array of buffer views.
int64_t getSizeBytes() const
Calculates the size in bytes of this object, including the contents of all collections,...
std::vector< Cesium3DTiles::Buffer > buffers
An array of buffers.
Cesium3DTiles::Availability tileAvailability
The availability of tiles in the subtree. The availability bitstream is a 1D boolean array where tile...
Cesium3DTiles::Availability childSubtreeAvailability
The availability of children subtrees. The availability bitstream is a 1D boolean array where subtree...
std::vector< Cesium3DTiles::Availability > contentAvailability
An array of content availability objects. If the tile has a single content this array will have one e...
std::vector< int64_t > contentMetadata
An array of indexes to property tables containing content metadata. If the tile has a single content ...
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 ...