cesium-native 0.43.0
Loading...
Searching...
No Matches
Availability.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 <cstdint>
9#include <optional>
10
11namespace Cesium3DTiles {
15struct CESIUM3DTILES_API Availability final
20 static constexpr const char* TypeName = "Availability";
21
26 struct Constant {
28 static constexpr int32_t UNAVAILABLE = 0;
29
31 static constexpr int32_t AVAILABLE = 1;
32 };
33
40 std::optional<int64_t> bitstream;
41
46 std::optional<int64_t> availableCount;
47
55 std::optional<int32_t> constant;
56
63 int64_t getSizeBytes() const {
64 int64_t accum = 0;
65 accum += int64_t(sizeof(Availability));
67 int64_t(sizeof(CesiumUtility::ExtensibleObject));
68
69 return accum;
70 }
71};
72} // namespace Cesium3DTiles
Classes for using 3D Tiles.
Definition Buffer.h:7
Known values for Integer indicating whether all of the elements are available (1) or all are unavaila...
An object describing the availability of a set of elements.
int64_t getSizeBytes() const
Calculates the size in bytes of this object, including the contents of all collections,...
std::optional< int64_t > availableCount
A number indicating how many 1 bits exist in the availability bitstream.
std::optional< int32_t > constant
Integer indicating whether all of the elements are available (1) or all are unavailable (0).
std::optional< int64_t > bitstream
Index of a buffer view that indicates whether each element is available. The bitstream conforms to th...
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 ...