5#include "Kismet/BlueprintFunctionLibrary.h"
6#include <CesiumGltf/AccessorUtility.h>
7#include "CesiumFeatureIdAttribute.generated.h"
37 GENERATED_USTRUCT_BODY()
49 _attributeIndex(-1) {}
63 const int64 FeatureIDAttribute,
64 const FString& PropertyTableName);
79 const int64 FeatureIDAttribute,
80 const FString& PropertyTableName);
90 int64 _attributeIndex;
93 FString _propertyTableName;
100 : public UBlueprintFunctionLibrary {
104 PRAGMA_DISABLE_DEPRECATION_WARNINGS
116 "Use GetPropertyTableIndex on a CesiumFeatureIdSet instead."))
117 static const FString&
120 PRAGMA_ENABLE_DEPRECATION_WARNINGS
129 Category =
"Cesium|Features|FeatureIDAttribute")
145 Category = "Cesium|Features|FeatureIDAttribute")
161 Category = "Cesium|Features|FeatureIDAttribute")
ECesiumFeatureIdAttributeStatus
Reports the status of a FCesiumFeatureIdAttribute.
static int64 GetFeatureID(UPARAM(ref) const FCesiumFeatureIdAttribute &FeatureIDAttribute, int64 Index)
Gets the feature ID at the given index.
static PRAGMA_ENABLE_DEPRECATION_WARNINGS ECesiumFeatureIdAttributeStatus GetFeatureIDAttributeStatus(UPARAM(ref) const FCesiumFeatureIdAttribute &FeatureIDAttribute)
Gets the status of the feature ID attribute.
static int64 GetCount(UPARAM(ref) const FCesiumFeatureIdAttribute &FeatureIDAttribute)
Gets the number of elements in the attribute.
static PRAGMA_DISABLE_DEPRECATION_WARNINGS const FString & GetFeatureTableName(UPARAM(ref) const FCesiumFeatureIdAttribute &FeatureIDAttribute)
Get the name of the feature table corresponding to this feature ID attribute.
std::variant< AccessorView< int8_t >, AccessorView< uint8_t >, AccessorView< int16_t >, AccessorView< uint16_t >, AccessorView< uint32_t >, AccessorView< float > > FeatureIdAccessorType
A blueprint-accessible wrapper for a feature ID attribute from a glTF model.
int64 getAttributeIndex() const
Gets the index of this feature ID attribute in the glTF primitive.
FCesiumFeatureIdAttribute(const CesiumGltf::Model &Model, const CesiumGltf::MeshPrimitive &Primitive, const int64 FeatureIDAttribute, const FString &PropertyTableName)
Constructs a feature ID attribute instance.
FCesiumFeatureIdAttribute(const CesiumGltf::Model &Model, const CesiumGltf::Node &Node, const int64 FeatureIDAttribute, const FString &PropertyTableName)
Constructs a feature ID attribute instance from EXT_instance_features data.
FCesiumFeatureIdAttribute()
Constructs an empty feature ID attribute instance.