cesium-native 0.43.0
Loading...
Searching...
No Matches
PropertyTableProperty.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#include <CesiumUtility/JsonValue.h>
8
9#include <cstdint>
10#include <optional>
11#include <string>
12
13namespace CesiumGltf {
17struct CESIUMGLTF_API PropertyTableProperty final
22 static constexpr const char* TypeName = "PropertyTableProperty";
23
29 inline static const std::string UINT8 = "UINT8";
30
32 inline static const std::string UINT16 = "UINT16";
33
35 inline static const std::string UINT32 = "UINT32";
36
38 inline static const std::string UINT64 = "UINT64";
39 };
40
46 inline static const std::string UINT8 = "UINT8";
47
49 inline static const std::string UINT16 = "UINT16";
50
52 inline static const std::string UINT32 = "UINT32";
53
55 inline static const std::string UINT64 = "UINT64";
56 };
57
72 int32_t values = -1;
73
86 int32_t arrayOffsets = -1;
87
98 int32_t stringOffsets = -1;
99
106 std::string arrayOffsetType = ArrayOffsetType::UINT32;
107
114 std::string stringOffsetType = StringOffsetType::UINT32;
115
121 std::optional<CesiumUtility::JsonValue> offset;
122
128 std::optional<CesiumUtility::JsonValue> scale;
129
136 std::optional<CesiumUtility::JsonValue> max;
137
144 std::optional<CesiumUtility::JsonValue> min;
145
152 int64_t getSizeBytes() const {
153 int64_t accum = 0;
154 accum += int64_t(sizeof(PropertyTableProperty));
156 int64_t(sizeof(CesiumUtility::ExtensibleObject));
157
158 return accum;
159 }
160};
161} // namespace CesiumGltf
Classes for working with glTF models.
Known values for The type of values in arrayOffsets.
Known values for The type of values in stringOffsets.
An array of binary property values.
std::optional< CesiumUtility::JsonValue > max
Maximum value present in the property values. Only applicable to SCALAR, VECN, and MATN types....
std::optional< CesiumUtility::JsonValue > scale
A scale to apply to property values. Only applicable when the component type is FLOAT32 or FLOAT64,...
std::optional< CesiumUtility::JsonValue > offset
An offset to apply to property values. Only applicable when the component type is FLOAT32 or FLOAT64,...
int64_t getSizeBytes() const
Calculates the size in bytes of this object, including the contents of all collections,...
std::optional< CesiumUtility::JsonValue > min
Minimum value present in the property values. Only applicable to SCALAR, VECN, and MATN types....
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 ...