cesium-native 0.66.0
Loading...
Searching...
No Matches
ExtensionNodeExtNodeVisibilityConditions.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#include <CesiumUtility/JsonValue.h>
8
9#include <string>
10#include <unordered_map>
11
12namespace CesiumGltf {
22 static constexpr const char* TypeName =
23 "ExtensionNodeExtNodeVisibilityConditions";
26 static constexpr const char* ExtensionName = "EXT_node_visibility_conditions";
27
33 std::unordered_map<std::string, CesiumUtility::JsonValue> conditions;
34
41 int64_t getSizeBytes() const {
42 int64_t accum = 0;
43 accum += int64_t(sizeof(ExtensionNodeExtNodeVisibilityConditions));
45 int64_t(sizeof(CesiumUtility::ExtensibleObject));
46 accum += int64_t(
47 this->conditions.bucket_count() *
48 (sizeof(std::string) + sizeof(CesiumUtility::JsonValue)));
49 for (const auto& [k, v] : this->conditions) {
50 accum += int64_t(k.capacity() * sizeof(char) - sizeof(std::string));
51 accum += int64_t(sizeof(CesiumUtility::JsonValue));
52 }
53 return accum;
54 }
55};
56} // namespace CesiumGltf
A generic implementation of a value in a JSON structure.
Definition JsonValue.h:53
Classes for working with glTF models.
Defines the structure of the extension object that is associated with a KHR_node_visibility object to...
static constexpr const char * TypeName
The original name of this type.
std::unordered_map< std::string, CesiumUtility::JsonValue > conditions
Properties that define the conditions based on which the 'visible' flag becomes 'true'....
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,...
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 ...