cesium-native 0.66.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 <CesiumGltf/BoundingVolume.h>
6#include <CesiumGltf/Library.h>
7#include <CesiumUtility/ExtensibleObject.h>
8
9#include <optional>
10
11namespace CesiumGltf {
15struct CESIUMGLTF_API Content final : public CesiumUtility::ExtensibleObject {
19 static constexpr const char* TypeName = "Content";
20
24 std::optional<CesiumGltf::BoundingVolume> boundingVolume;
25
32 int64_t getSizeBytes() const {
33 int64_t accum = 0;
34 accum += int64_t(sizeof(Content));
36 int64_t(sizeof(CesiumUtility::ExtensibleObject));
37 if (this->boundingVolume) {
38 accum += this->boundingVolume->getSizeBytes() -
39 int64_t(sizeof(CesiumGltf::BoundingVolume));
40 }
41 return accum;
42 }
43};
44} // namespace CesiumGltf
Classes for working with glTF models.
Content object in node-level 3DTILES_tileset extension.
Definition Content.h:15
std::optional< CesiumGltf::BoundingVolume > boundingVolume
The content bounding volume.
Definition Content.h:24
int64_t getSizeBytes() const
Calculates the size in bytes of this object, including the contents of all collections,...
Definition Content.h:32
static constexpr const char * TypeName
The original name of this type.
Definition Content.h:19
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 ...