cesium-native 0.48.0
Loading...
Searching...
No Matches
Extension3dTilesBoundingVolumeCylinder.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 {
14struct CESIUM3DTILES_API Extension3dTilesBoundingVolumeCylinder final
19 static constexpr const char* TypeName =
20 "Extension3dTilesBoundingVolumeCylinder";
23 static constexpr const char* ExtensionName =
24 "3DTILES_bounding_volume_cylinder";
25
30 double minRadius = double();
31
36 double maxRadius = double();
37
41 double height = double();
42
48 double minAngle = -3.14159265359;
49
55 double maxAngle = 3.14159265359;
56
60 std::vector<double> translation = {0, 0, 0};
61
66 std::vector<double> rotation = {0, 0, 0, 1};
67
74 int64_t getSizeBytes() const {
75 int64_t accum = 0;
76 accum += int64_t(sizeof(Extension3dTilesBoundingVolumeCylinder));
78 int64_t(sizeof(CesiumUtility::ExtensibleObject));
79 accum += int64_t(sizeof(double) * this->translation.capacity());
80 accum += int64_t(sizeof(double) * this->rotation.capacity());
81 return accum;
82 }
83};
84} // namespace Cesium3DTiles
Classes for using 3D Tiles.
Definition Buffer.h:7
3D Tiles extension for cylinder region bounding volumes.
double minAngle
The minimum angle of the cylinder region in radians. In other words, this is the angle where the cyli...
double maxAngle
The maximum angle of the cylinder region in radians. In other words, this is the angle where the cyli...
double maxRadius
The outer radius of the cylinder region along the x and y axes, in meters.
double height
The height of the cylinder in meters along the z-axis, in meters.
int64_t getSizeBytes() const
Calculates the size in bytes of this object, including the contents of all collections,...
std::vector< double > translation
The cylinder's translation along the x, y, and z axes.
double minRadius
The inner radius of the cylinder region along the x and y axes, in meters.
static constexpr const char * TypeName
The original name of this type.
std::vector< double > rotation
The cylinder's rotation, represented by a unit quaternion in the order (x, y, z, w),...
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 ...