cesium-native 0.44.2
Loading...
Searching...
No Matches
ExtensionNodeMaxarMeshVariantsMappingsValue.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 <CesiumUtility/ExtensibleObject.h>
7
8#include <cstdint>
9#include <optional>
10#include <string>
11#include <vector>
12
13namespace CesiumGltf {
22 static constexpr const char* TypeName =
23 "ExtensionNodeMaxarMeshVariantsMappingsValue";
24
28 std::vector<int32_t> variants;
29
33 int32_t mesh = -1;
34
38 std::optional<std::string> name;
39
46 int64_t getSizeBytes() const {
47 int64_t accum = 0;
48 accum += int64_t(sizeof(ExtensionNodeMaxarMeshVariantsMappingsValue));
50 int64_t(sizeof(CesiumUtility::ExtensibleObject));
51 accum += int64_t(sizeof(int32_t) * this->variants.capacity());
52 if (this->name) {
53 accum += int64_t(this->name->capacity() * sizeof(char));
54 }
55 return accum;
56 }
57};
58} // namespace CesiumGltf
Classes for working with glTF models.
int64_t getSizeBytes() const
Calculates the size in bytes of this object, including the contents of all collections,...
std::optional< std::string > name
The user-defined name of this variant mesh mapping.
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 ...