cesium-native 0.67.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 <CesiumTilesetJson/Library.h>
6#include <CesiumUtility/ExtensibleObject.h>
7#include <CesiumUtility/JsonValue.h>
8
9#include <cstdint>
10#include <optional>
11#include <string>
12
13namespace CesiumTilesetJson {
19struct CESIUMTILESETJSON_API PropertyTableProperty final
24 static constexpr const char* TypeName = "PropertyTableProperty";
25
31 inline static const std::string UINT8 = "UINT8";
32
34 inline static const std::string UINT16 = "UINT16";
35
37 inline static const std::string UINT32 = "UINT32";
38
40 inline static const std::string UINT64 = "UINT64";
41 };
42
48 inline static const std::string UINT8 = "UINT8";
49
51 inline static const std::string UINT16 = "UINT16";
52
54 inline static const std::string UINT32 = "UINT32";
55
57 inline static const std::string UINT64 = "UINT64";
58 };
59
75 int64_t values = int64_t();
76
89 std::optional<int64_t> arrayOffsets;
90
101 std::optional<int64_t> stringOffsets;
102
110
118
124 std::optional<CesiumUtility::JsonValue> offset;
125
131 std::optional<CesiumUtility::JsonValue> scale;
132
139 std::optional<CesiumUtility::JsonValue> max;
140
147 std::optional<CesiumUtility::JsonValue> min;
148
155 int64_t getSizeBytes() const {
156 int64_t accum = 0;
157 accum += int64_t(sizeof(PropertyTableProperty));
159 int64_t(sizeof(CesiumUtility::ExtensibleObject));
160
161 return accum;
162 }
163};
164} // namespace CesiumTilesetJson
Classes to represent a tileset.json from 3D Tiles 1.1.
Known values for The type of values in arrayOffsets.
Known values for The type of values in stringOffsets.
An array of binary property values. This represents one column of a property table,...
std::string arrayOffsetType
The type of values in arrayOffsets.
std::optional< CesiumUtility::JsonValue > scale
A scale to apply to property values. Only applicable when the component type is FLOAT32 or FLOAT64,...
std::string stringOffsetType
The type of values in stringOffsets.
int64_t getSizeBytes() const
Calculates the size in bytes of this object, including the contents of all collections,...
std::optional< CesiumUtility::JsonValue > max
Maximum value present in the property values. Only applicable to SCALAR, VECN, and MATN types....
int64_t values
The index of the buffer view containing property values. The data type of property values is determin...
std::optional< CesiumUtility::JsonValue > offset
An offset to apply to property values. Only applicable when the component type is FLOAT32 or FLOAT64,...
std::optional< CesiumUtility::JsonValue > min
Minimum value present in the property values. Only applicable to SCALAR, VECN, and MATN types....
std::optional< int64_t > stringOffsets
The index of the buffer view containing offsets for strings. The number of offsets is equal to the nu...
std::optional< int64_t > arrayOffsets
The index of the buffer view containing offsets for variable-length arrays. The number of offsets is ...
static constexpr const char * TypeName
The original name of this type.
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 ...