cesium-native 0.43.0
Loading...
Searching...
No Matches
BoundingVolume.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 <vector>
9
10namespace Cesium3DTiles {
16struct CESIUM3DTILES_API BoundingVolume final
21 static constexpr const char* TypeName = "BoundingVolume";
22
31 std::vector<double> box;
32
43 std::vector<double> region;
44
51 std::vector<double> sphere;
52
59 int64_t getSizeBytes() const {
60 int64_t accum = 0;
61 accum += int64_t(sizeof(BoundingVolume));
63 int64_t(sizeof(CesiumUtility::ExtensibleObject));
64 accum += int64_t(sizeof(double) * this->box.capacity());
65 accum += int64_t(sizeof(double) * this->region.capacity());
66 accum += int64_t(sizeof(double) * this->sphere.capacity());
67 return accum;
68 }
69};
70} // namespace Cesium3DTiles
Classes for using 3D Tiles.
Definition Buffer.h:7
A bounding volume that encloses a tile or its content. At least one bounding volume property is requi...
int64_t getSizeBytes() const
Calculates the size in bytes of this object, including the contents of all collections,...
std::vector< double > region
An array of six numbers that define a bounding geographic region in EPSG:4979 coordinates with the or...
std::vector< double > sphere
An array of four numbers that define a bounding sphere. The first three elements define the x,...
std::vector< double > box
An array of 12 numbers that define an oriented bounding box. The first three elements define the x,...
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 ...