cesium-native 0.45.0
Loading...
Searching...
No Matches
Extension3dTilesEllipsoid.h
1// This file was generated by generate-classes.
2// DO NOT EDIT THIS FILE!
3#pragma once
4
5#include <Cesium3DTiles/Library.h>
6#include <CesiumUtility/ExtensibleObject.h>
7
8#include <optional>
9#include <string>
10#include <vector>
11
12namespace Cesium3DTiles {
16struct CESIUM3DTILES_API Extension3dTilesEllipsoid final
21 static constexpr const char* TypeName = "Extension3dTilesEllipsoid";
24 static constexpr const char* ExtensionName = "3DTILES_ellipsoid";
25
29 std::optional<std::string> body;
30
35 std::vector<double> radii;
36
43 int64_t getSizeBytes() const {
44 int64_t accum = 0;
45 accum += int64_t(sizeof(Extension3dTilesEllipsoid));
47 int64_t(sizeof(CesiumUtility::ExtensibleObject));
48 if (this->body) {
49 accum += int64_t(this->body->capacity() * sizeof(char));
50 }
51 accum += int64_t(sizeof(double) * this->radii.capacity());
52 return accum;
53 }
54};
55} // namespace Cesium3DTiles
Classes for using 3D Tiles.
Definition Buffer.h:7
3DTILES_ellipsoid extension data to define the referenced ellipsoid
std::optional< std::string > body
Name of the body the ellipsoid represents, or 'none'.
std::vector< double > radii
An array of three numbers that define the X, Y and Z radii values in meters for the ellipsoid.
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 ...