cesium-native 0.66.0
Loading...
Searching...
No Matches
ExtensionModel3dTilesLayers.h
1// This file was generated by generate-classes.
2// DO NOT EDIT THIS FILE!
3#pragma once
4
5#include <CesiumGltf/Layer.h>
6#include <CesiumGltf/Library.h>
7#include <CesiumUtility/ExtensibleObject.h>
8
9#include <vector>
10
11namespace CesiumGltf {
15struct CESIUMGLTF_API ExtensionModel3dTilesLayers final
20 static constexpr const char* TypeName = "ExtensionModel3dTilesLayers";
23 static constexpr const char* ExtensionName = "3DTILES_layers";
24
28 std::vector<CesiumGltf::Layer> layers;
29
36 int64_t getSizeBytes() const {
37 int64_t accum = 0;
38 accum += int64_t(sizeof(ExtensionModel3dTilesLayers));
40 int64_t(sizeof(CesiumUtility::ExtensibleObject));
41 accum += int64_t(sizeof(CesiumGltf::Layer) * this->layers.capacity());
42 for (const CesiumGltf::Layer& value : this->layers) {
43 accum += value.getSizeBytes() - int64_t(sizeof(CesiumGltf::Layer));
44 }
45 return accum;
46 }
47};
48} // namespace CesiumGltf
Classes for working with glTF models.
glTF extension that defines layers that nodes may belong to.
static constexpr const char * TypeName
The original name of this type.
std::vector< CesiumGltf::Layer > layers
An array of layers that nodes may belong to.
static constexpr const char * ExtensionName
The official name of the extension. This should be the same as its key in the extensions object.
int64_t getSizeBytes() const
Calculates the size in bytes of this object, including the contents of all collections,...
An object defining a layer.
Definition Layer.h:12
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 ...