cesium-native 0.48.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
107
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.
static constexpr const char * TypeName
The original name of this type.
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,...
int32_t stringOffsets
The index of the buffer view containing offsets for strings. The number of offsets is equal to the nu...
int32_t arrayOffsets
The index of the buffer view containing offsets for variable-length arrays. The number of offsets is ...
int32_t values
The index of the buffer view containing property values. The data type of property values is determin...
std::optional< CesiumUtility::JsonValue > min
Minimum value present in the property values. Only applicable to SCALAR, VECN, and MATN types....
std::string arrayOffsetType
The type of values in arrayOffsets.
std::string stringOffsetType
The type of values in stringOffsets.
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 ...