cesium-native 0.67.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 <CesiumTilesetJson/Library.h>
6#include <CesiumUtility/ExtensibleObject.h>
7
8#include <cstdint>
9#include <optional>
10
11namespace CesiumTilesetJson {
15struct CESIUMTILESETJSON_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 CesiumTilesetJson
Classes to represent a tileset.json from 3D Tiles 1.1.
Known values for Integer indicating whether all of the elements are available (1) or all are unavaila...
static constexpr int32_t AVAILABLE
AVAILABLE (1)
static constexpr int32_t UNAVAILABLE
UNAVAILABLE (0)
An object describing the availability of a set of elements.
static constexpr const char * TypeName
The original name of this type.
std::optional< int64_t > bitstream
Index of a buffer view that indicates whether each element is available. The bitstream conforms to th...
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).
int64_t getSizeBytes() const
Calculates the size in bytes of this object, including the contents of all collections,...
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 ...