5#include <CesiumGltf/Library.h>
6#include <CesiumUtility/ExtensibleObject.h>
7#include <CesiumUtility/JsonValue.h>
21 static constexpr const char* TypeName =
"PropertyAttributeProperty";
33 std::optional<CesiumUtility::JsonValue>
offset;
40 std::optional<CesiumUtility::JsonValue>
scale;
48 std::optional<CesiumUtility::JsonValue>
max;
56 std::optional<CesiumUtility::JsonValue>
min;
69 accum += int64_t(this->attribute.capacity() *
sizeof(
char));
Classes for working with glTF models.
An attribute containing property values.
std::string attribute
The name of the attribute containing property values.
std::optional< CesiumUtility::JsonValue > max
Maximum value present in the property values. Only applicable to SCALAR, VECN, and MATN types....
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....
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 > scale
A scale to apply to property values. Only applicable when the component type is FLOAT32 or FLOAT64,...
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 ...