cesium-native 0.43.0
Loading...
Searching...
No Matches
PropertyAttributeProperty.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 <optional>
10#include <string>
11
12namespace CesiumGltf {
16struct CESIUMGLTF_API PropertyAttributeProperty final
21 static constexpr const char* TypeName = "PropertyAttributeProperty";
22
26 std::string attribute;
27
33 std::optional<CesiumUtility::JsonValue> offset;
34
40 std::optional<CesiumUtility::JsonValue> scale;
41
48 std::optional<CesiumUtility::JsonValue> max;
49
56 std::optional<CesiumUtility::JsonValue> min;
57
64 int64_t getSizeBytes() const {
65 int64_t accum = 0;
66 accum += int64_t(sizeof(PropertyAttributeProperty));
68 int64_t(sizeof(CesiumUtility::ExtensibleObject));
69 accum += int64_t(this->attribute.capacity() * sizeof(char));
70 return accum;
71 }
72};
73} // namespace CesiumGltf
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 ...