cesium-native 0.66.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 <CesiumGltf/Library.h>
6#include <CesiumUtility/ExtensibleObject.h>
7
8#include <cstdint>
9#include <vector>
10
11namespace CesiumGltf {
15struct CESIUMGLTF_API BoundingVolume final
20 static constexpr const char* TypeName = "BoundingVolume";
21
26 std::vector<double> rotation = {0, 0, 0, 1};
27
32 std::vector<double> scale = {1, 1, 1};
33
38 int32_t shape = -1;
39
44 std::vector<double> translation = {0, 0, 0};
45
52 int64_t getSizeBytes() const {
53 int64_t accum = 0;
54 accum += int64_t(sizeof(BoundingVolume));
56 int64_t(sizeof(CesiumUtility::ExtensibleObject));
57 accum += int64_t(sizeof(double) * this->rotation.capacity());
58 accum += int64_t(sizeof(double) * this->scale.capacity());
59 accum += int64_t(sizeof(double) * this->translation.capacity());
60 return accum;
61 }
62};
63} // namespace CesiumGltf
Classes for working with glTF models.
std::vector< double > translation
The bounding volume's translation along the node's local X, Y, and Z axes.
static constexpr const char * TypeName
The original name of this type.
std::vector< double > rotation
The bounding volume's unit quaternion rotation relative to the node's local coordinate system.
int64_t getSizeBytes() const
Calculates the size in bytes of this object, including the contents of all collections,...
std::vector< double > scale
The bounding volume's scale along the rotated local X, Y, and Z axes.
int32_t shape
The index of the shape in the top-level shapes array used for this bounding volume....
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 ...