cesium-native 0.66.0
Loading...
Searching...
No Matches
ExtensionNode3dTilesTileset.h
1// This file was generated by generate-classes.
2// DO NOT EDIT THIS FILE!
3#pragma once
4
5#include <CesiumGltf/Content.h>
6#include <CesiumGltf/Library.h>
7#include <CesiumUtility/ExtensibleObject.h>
8
9#include <optional>
10#include <string>
11
12namespace CesiumGltf {
16struct CESIUMGLTF_API ExtensionNode3dTilesTileset final
21 static constexpr const char* TypeName = "ExtensionNode3dTilesTileset";
24 static constexpr const char* ExtensionName = "3DTILES_tileset";
25
31 struct Refine {
33 inline static const std::string REPLACE = "REPLACE";
34
36 inline static const std::string ADD = "ADD";
37 };
38
49 double geometricError = double();
50
64 std::optional<std::string> refine;
65
71 std::optional<CesiumGltf::Content> content;
72
79 int64_t getSizeBytes() const {
80 int64_t accum = 0;
81 accum += int64_t(sizeof(ExtensionNode3dTilesTileset));
83 int64_t(sizeof(CesiumUtility::ExtensibleObject));
84 if (this->content) {
85 accum +=
86 this->content->getSizeBytes() - int64_t(sizeof(CesiumGltf::Content));
87 }
88 return accum;
89 }
90};
91} // namespace CesiumGltf
Classes for working with glTF models.
Content object in node-level 3DTILES_tileset extension.
Definition Content.h:15
Known values for Refinement determines the process by which a lower resolution parent tile renders wh...
Node-level 3DTILES_tileset extension.
std::optional< CesiumGltf::Content > content
An object that provides additional information about the tile's content. If the tile does not have co...
int64_t getSizeBytes() const
Calculates the size in bytes of this object, including the contents of all collections,...
double geometricError
A nonnegative number that defines the error, in meters, introduced if this tile is rendered and its c...
static constexpr const char * TypeName
The original name of this type.
std::optional< std::string > refine
Refinement determines the process by which a lower resolution parent tile renders when its higher res...
static constexpr const char * ExtensionName
The official name of the extension. This should be the same as its key in the extensions object.
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 ...