// This file was generated by generate-classes. // DO NOT EDIT THIS FILE! #pragma once #include #include #include #include #include namespace CesiumGltf { /** * @brief An attribute containing property values. */ struct CESIUMGLTF_API PropertyAttributeProperty final : public CesiumUtility::ExtensibleObject { /** * @brief The original name of this type. */ static constexpr const char* TypeName = "PropertyAttributeProperty"; /** * @brief The name of the attribute containing property values. */ std::string attribute; /** * @brief An offset to apply to property values. Only applicable when the * component type is `FLOAT32` or `FLOAT64`, or when the property is * `normalized`. Overrides the class property's `offset` if both are defined. */ std::optional offset; /** * @brief A scale to apply to property values. Only applicable when the * component type is `FLOAT32` or `FLOAT64`, or when the property is * `normalized`. Overrides the class property's `scale` if both are defined. */ std::optional scale; /** * @brief Maximum value present in the property values. Only applicable to * `SCALAR`, `VECN`, and `MATN` types. This is the maximum of all property * values, after the transforms based on the `normalized`, `offset`, and * `scale` properties have been applied. */ std::optional max; /** * @brief Minimum value present in the property values. Only applicable to * `SCALAR`, `VECN`, and `MATN` types. This is the minimum of all property * values, after the transforms based on the `normalized`, `offset`, and * `scale` properties have been applied. */ std::optional min; /** * @brief Calculates the size in bytes of this object, including the contents * of all collections, pointers, and strings. This will NOT include the size * of any extensions attached to the object. Calling this method may be slow * as it requires traversing the object's entire structure. */ int64_t getSizeBytes() const { int64_t accum = 0; accum += int64_t(sizeof(PropertyAttributeProperty)); accum += CesiumUtility::ExtensibleObject::getSizeBytes() - int64_t(sizeof(CesiumUtility::ExtensibleObject)); accum += int64_t(this->attribute.capacity() * sizeof(char)); return accum; } }; } // namespace CesiumGltf