初始提交: UE5.3项目基础框架
This commit is contained in:
80
Plugins/CesiumForUnreal/Source/ThirdParty/include/CesiumGltf/FeatureId.h
vendored
Normal file
80
Plugins/CesiumForUnreal/Source/ThirdParty/include/CesiumGltf/FeatureId.h
vendored
Normal file
@ -0,0 +1,80 @@
|
||||
// This file was generated by generate-classes.
|
||||
// DO NOT EDIT THIS FILE!
|
||||
#pragma once
|
||||
|
||||
#include <CesiumGltf/FeatureIdTexture.h>
|
||||
#include <CesiumGltf/Library.h>
|
||||
#include <CesiumUtility/ExtensibleObject.h>
|
||||
|
||||
#include <cstdint>
|
||||
#include <optional>
|
||||
#include <string>
|
||||
|
||||
namespace CesiumGltf {
|
||||
/**
|
||||
* @brief Feature IDs stored in an attribute or texture.
|
||||
*/
|
||||
struct CESIUMGLTF_API FeatureId final : public CesiumUtility::ExtensibleObject {
|
||||
/**
|
||||
* @brief The original name of this type.
|
||||
*/
|
||||
static constexpr const char* TypeName = "FeatureId";
|
||||
|
||||
/**
|
||||
* @brief The number of unique features in the attribute or texture.
|
||||
*/
|
||||
int64_t featureCount = int64_t();
|
||||
|
||||
/**
|
||||
* @brief A value that indicates that no feature is associated with this
|
||||
* vertex or texel.
|
||||
*/
|
||||
std::optional<int64_t> nullFeatureId;
|
||||
|
||||
/**
|
||||
* @brief A label assigned to this feature ID set. Labels must be alphanumeric
|
||||
* identifiers matching the regular expression `^[a-zA-Z_][a-zA-Z0-9_]*$`.
|
||||
*/
|
||||
std::optional<std::string> label;
|
||||
|
||||
/**
|
||||
* @brief An integer value used to construct a string in the format
|
||||
* `_FEATURE_ID_<set index>` which is a reference to a key in
|
||||
* `mesh.primitives.attributes` (e.g. a value of `0` corresponds to
|
||||
* `_FEATURE_ID_0`).
|
||||
*/
|
||||
std::optional<int64_t> attribute;
|
||||
|
||||
/**
|
||||
* @brief A texture containing feature IDs.
|
||||
*/
|
||||
std::optional<CesiumGltf::FeatureIdTexture> texture;
|
||||
|
||||
/**
|
||||
* @brief The index of the property table containing per-feature property
|
||||
* values. Only applicable when using the `EXT_structural_metadata` extension.
|
||||
*/
|
||||
int32_t propertyTable = -1;
|
||||
|
||||
/**
|
||||
* @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(FeatureId));
|
||||
accum += CesiumUtility::ExtensibleObject::getSizeBytes() -
|
||||
int64_t(sizeof(CesiumUtility::ExtensibleObject));
|
||||
if (this->label) {
|
||||
accum += int64_t(this->label->capacity() * sizeof(char));
|
||||
}
|
||||
if (this->texture) {
|
||||
accum += this->texture->getSizeBytes() -
|
||||
int64_t(sizeof(CesiumGltf::FeatureIdTexture));
|
||||
}
|
||||
return accum;
|
||||
}
|
||||
};
|
||||
} // namespace CesiumGltf
|
||||
Reference in New Issue
Block a user