Cesium for Unreal 2.12.0
Loading...
Searching...
No Matches
FCesiumFeatureIdAttribute Struct Reference

A blueprint-accessible wrapper for a feature ID attribute from a glTF model. More...

#include <CesiumFeatureIdAttribute.h>

Public Member Functions

 FCesiumFeatureIdAttribute ()
 Constructs an empty feature ID attribute instance.
 
 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.
 
int64 getAttributeIndex () const
 Gets the index of this feature ID attribute in the glTF primitive.
 

Friends

class UCesiumFeatureIdAttributeBlueprintLibrary
 

Detailed Description

A blueprint-accessible wrapper for a feature ID attribute from a glTF model.

Provides access to feature IDs which can be used with the corresponding FCesiumPropertyTable to access metadata. These feature IDs may be defined per-vertex or per-instance.

Definition at line 36 of file CesiumFeatureIdAttribute.h.

Constructor & Destructor Documentation

◆ FCesiumFeatureIdAttribute() [1/3]

FCesiumFeatureIdAttribute::FCesiumFeatureIdAttribute ( )
inline

Constructs an empty feature ID attribute instance.

Empty feature ID attributes can be constructed while trying to convert a FCesiumFeatureIdSet that is not an attribute. In this case, the status reports it is an invalid attribute.

Definition at line 46 of file CesiumFeatureIdAttribute.h.

◆ FCesiumFeatureIdAttribute() [2/3]

FCesiumFeatureIdAttribute::FCesiumFeatureIdAttribute ( const CesiumGltf::Model & Model,
const CesiumGltf::MeshPrimitive & Primitive,
const int64 FeatureIDAttribute,
const FString & PropertyTableName )

Constructs a feature ID attribute instance.

Parameters
ModelThe model.
PrimitiveThe mesh primitive containing the feature ID attribute.
FeatureIDAttributeThe attribute index specified by the FeatureId.
PropertyTableNameThe name of the property table this attribute corresponds to, if one exists, for backwards compatibility.

◆ FCesiumFeatureIdAttribute() [3/3]

FCesiumFeatureIdAttribute::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.

Parameters
ModelThe model.
NodeThe node containing the feature ID attribute.
FeatureIDAttributeThe attribute index specified by the FeatureId.
PropertyTableNameThe name of the property table this attribute corresponds to, if one exists, for backwards compatibility.

Member Function Documentation

◆ getAttributeIndex()

int64 FCesiumFeatureIdAttribute::getAttributeIndex ( ) const
inline

Gets the index of this feature ID attribute in the glTF primitive.

Definition at line 85 of file CesiumFeatureIdAttribute.h.

Friends And Related Symbol Documentation

◆ UCesiumFeatureIdAttributeBlueprintLibrary

Definition at line 95 of file CesiumFeatureIdAttribute.h.


The documentation for this struct was generated from the following file: