cesium-native 0.61.0
Loading...
Searching...
No Matches
Content.h
1// This file was generated by generate-classes.
2// DO NOT EDIT THIS FILE!
3#pragma once
4
5#include <Cesium3DTiles/BoundingVolume.h>
6#include <Cesium3DTiles/Library.h>
7#include <Cesium3DTiles/MetadataEntity.h>
8#include <CesiumUtility/ExtensibleObject.h>
9
10#include <cstdint>
11#include <optional>
12#include <string>
13
14namespace Cesium3DTiles {
18struct CESIUM3DTILES_API Content : public CesiumUtility::ExtensibleObject {
22 static constexpr const char* TypeName = "Content";
23
30 std::optional<Cesium3DTiles::BoundingVolume> boundingVolume;
31
36 std::string uri;
37
41 std::optional<Cesium3DTiles::MetadataEntity> metadata;
42
47 std::optional<int64_t> group;
48
55 int64_t getSizeBytes() const {
56 int64_t accum = 0;
57 accum += int64_t(sizeof(Content));
59 int64_t(sizeof(CesiumUtility::ExtensibleObject));
60 if (this->boundingVolume) {
61 accum += this->boundingVolume->getSizeBytes() -
62 int64_t(sizeof(Cesium3DTiles::BoundingVolume));
63 }
64 accum += int64_t(this->uri.capacity() * sizeof(char));
65 if (this->metadata) {
66 accum += this->metadata->getSizeBytes() -
67 int64_t(sizeof(Cesium3DTiles::MetadataEntity));
68 }
69 return accum;
70 }
71};
72} // namespace Cesium3DTiles
Classes for using 3D Tiles.
Definition Buffer.h:7
A bounding volume that encloses a tile or its content. At least one bounding volume property is requi...
Metadata about the tile's content and a link to the content.
Definition Content.h:18
std::optional< int64_t > group
The group this content belongs to. The value is an index into the array of groups that is defined for...
Definition Content.h:47
int64_t getSizeBytes() const
Calculates the size in bytes of this object, including the contents of all collections,...
Definition Content.h:55
static constexpr const char * TypeName
The original name of this type.
Definition Content.h:22
std::string uri
A uri that points to tile content. When the uri is relative, it is relative to the referring tileset ...
Definition Content.h:36
std::optional< Cesium3DTiles::BoundingVolume > boundingVolume
An optional bounding volume that tightly encloses tile content. tile.boundingVolume provides spatial ...
Definition Content.h:30
std::optional< Cesium3DTiles::MetadataEntity > metadata
Metadata that is associated with this content.
Definition Content.h:41
An object containing a reference to a class from a metadata schema, and property values that conform ...
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 ...