cesium-native 0.66.0
Loading...
Searching...
No Matches
Extension3dTilesTilesetVoxels.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 <CesiumGltf/Padding.h>
7#include <CesiumUtility/ExtensibleObject.h>
8
9#include <cstdint>
10#include <optional>
11#include <string>
12#include <vector>
13
14namespace CesiumGltf {
19struct CESIUMGLTF_API Extension3dTilesTilesetVoxels final
24 static constexpr const char* TypeName = "Extension3dTilesTilesetVoxels";
27 static constexpr const char* ExtensionName = "3DTILES_tileset_voxels";
28
32 std::vector<int64_t> dimensions;
33
37 std::optional<CesiumGltf::Padding> padding;
38
43 std::string classProperty;
44
51 int64_t getSizeBytes() const {
52 int64_t accum = 0;
53 accum += int64_t(sizeof(Extension3dTilesTilesetVoxels));
55 int64_t(sizeof(CesiumUtility::ExtensibleObject));
56 accum += int64_t(sizeof(int64_t) * this->dimensions.capacity());
57 if (this->padding) {
58 accum +=
59 this->padding->getSizeBytes() - int64_t(sizeof(CesiumGltf::Padding));
60 }
61 accum += int64_t(this->classProperty.capacity() * sizeof(char));
62 return accum;
63 }
64};
65} // namespace CesiumGltf
Classes for working with glTF models.
3D Tiles voxel content extension. Indicates the presence of voxel content and associates it with meta...
static constexpr const char * TypeName
The original name of this type.
std::string classProperty
The class that property values conform to. The value shall be a class ID declared in the classes dict...
std::optional< CesiumGltf::Padding > padding
The optional padding of the voxels.
int64_t getSizeBytes() const
Calculates the size in bytes of this object, including the contents of all collections,...
std::vector< int64_t > dimensions
Dimensions of the voxel grid.
static constexpr const char * ExtensionName
The official name of the extension. This should be the same as its key in the extensions object.
The padding around a voxel grid. Specifies how many rows of attribute data come from neighboring grid...
Definition Padding.h:16
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 ...