cesium-native 0.46.0
All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Pages
Box.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 <vector>
9
10namespace CesiumGltf {
14struct CESIUMGLTF_API Box final : public CesiumUtility::ExtensibleObject {
18 static constexpr const char* TypeName = "Box";
19
23 std::vector<double> size = {1, 1, 1};
24
31 int64_t getSizeBytes() const {
32 int64_t accum = 0;
33 accum += int64_t(sizeof(Box));
35 int64_t(sizeof(CesiumUtility::ExtensibleObject));
36 accum += int64_t(sizeof(double) * this->size.capacity());
37 return accum;
38 }
39};
40} // namespace CesiumGltf
Classes for working with glTF models.
Parameters describing a box shape.
Definition Box.h:14
int64_t getSizeBytes() const
Calculates the size in bytes of this object, including the contents of all collections,...
Definition Box.h:31
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 ...