cesium-native 0.46.0
Loading...
Searching...
No Matches
ExtensionKhrImplicitShapes.h
1// This file was generated by generate-classes.
2// DO NOT EDIT THIS FILE!
3#pragma once
4
5#include <CesiumGltf/Library.h>
6#include <CesiumGltf/Shape.h>
7#include <CesiumUtility/ExtensibleObject.h>
8
9#include <vector>
10
11namespace CesiumGltf {
15struct CESIUMGLTF_API ExtensionKhrImplicitShapes final
20 static constexpr const char* TypeName = "ExtensionKhrImplicitShapes";
23 static constexpr const char* ExtensionName = "KHR_implicit_shapes";
24
28 std::vector<CesiumGltf::Shape> shapes;
29
36 int64_t getSizeBytes() const {
37 int64_t accum = 0;
38 accum += int64_t(sizeof(ExtensionKhrImplicitShapes));
40 int64_t(sizeof(CesiumUtility::ExtensibleObject));
41 accum += int64_t(sizeof(CesiumGltf::Shape) * this->shapes.capacity());
42 for (const CesiumGltf::Shape& value : this->shapes) {
43 accum += value.getSizeBytes() - int64_t(sizeof(CesiumGltf::Shape));
44 }
45 return accum;
46 }
47};
48} // namespace CesiumGltf
Classes for working with glTF models.
std::vector< CesiumGltf::Shape > shapes
An array of shape descriptions.
int64_t getSizeBytes() const
Calculates the size in bytes of this object, including the contents of all collections,...
Parameters describing an implicit shape.
Definition Shape.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 ...