Cesium for Unreal 2.12.0
Loading...
Searching...
No Matches
UCesiumPrimitiveFeaturesBlueprintLibrary Class Reference

#include <CesiumPrimitiveFeatures.h>

Inheritance diagram for UCesiumPrimitiveFeaturesBlueprintLibrary:

Static Public Member Functions

static const FCesiumPrimitiveFeaturesGetPrimitiveFeatures (const UPrimitiveComponent *component)
 Gets the primitive features of a glTF primitive component.
 
static const TArray< FCesiumFeatureIdSet > & GetFeatureIDSets (UPARAM(ref) const FCesiumPrimitiveFeatures &PrimitiveFeatures)
 Gets all the feature ID sets that are associated with the primitive.
 
static const TArray< FCesiumFeatureIdSetGetFeatureIDSetsOfType (UPARAM(ref) const FCesiumPrimitiveFeatures &PrimitiveFeatures, ECesiumFeatureIdSetType Type)
 Gets all the feature ID sets of the given type.
 
static int64 GetVertexCount (UPARAM(ref) const FCesiumPrimitiveFeatures &PrimitiveFeatures)
 Get the number of vertices in the primitive.
 
static int64 GetFirstVertexFromFace (UPARAM(ref) const FCesiumPrimitiveFeatures &PrimitiveFeatures, int64 FaceIndex)
 Gets the index of the first vertex that makes up a given face of this primitive.
 
static int64 GetFeatureIDFromFace (UPARAM(ref) const FCesiumPrimitiveFeatures &PrimitiveFeatures, int64 FaceIndex, int64 FeatureIDSetIndex=0)
 Gets the feature ID associated with the given face.
 
static int64 GetFeatureIDFromInstance (UPARAM(ref) const FCesiumPrimitiveFeatures &InstanceFeatures, int64 InstanceIndex, int64 FeatureIDSetIndex=0)
 Gets the feature ID associated with the instance at the given index.
 
static int64 GetFeatureIDFromHit (UPARAM(ref) const FCesiumPrimitiveFeatures &PrimitiveFeatures, const FHitResult &Hit, int64 FeatureIDSetIndex=0)
 Gets the feature ID from the given line trace hit, assuming it has hit a glTF primitive component containing this CesiumPrimitiveFeatures.
 

Detailed Description

Definition at line 72 of file CesiumPrimitiveFeatures.h.

Member Function Documentation

◆ GetFeatureIDFromFace()

static int64 UCesiumPrimitiveFeaturesBlueprintLibrary::GetFeatureIDFromFace ( UPARAM(ref) const FCesiumPrimitiveFeatures & PrimitiveFeatures,
int64 FaceIndex,
int64 FeatureIDSetIndex = 0 )
static

Gets the feature ID associated with the given face.

Parameters
PrimitiveFeaturesThe primitive.
FaceIndexThe index of the face to obtain the feature ID of.
FeatureIDSetIndexA primitive may have multiple feature ID sets, so this allows a feature ID set to be specified by index. This value should index into the array of CesiumFeatureIdSets in the CesiumPrimitiveFeatures. If the specified feature ID set index is invalid, this returns -1.

◆ GetFeatureIDFromHit()

static int64 UCesiumPrimitiveFeaturesBlueprintLibrary::GetFeatureIDFromHit ( UPARAM(ref) const FCesiumPrimitiveFeatures & PrimitiveFeatures,
const FHitResult & Hit,
int64 FeatureIDSetIndex = 0 )
static

Gets the feature ID from the given line trace hit, assuming it has hit a glTF primitive component containing this CesiumPrimitiveFeatures.

Parameters
PrimitiveFeaturesThe primitive.
HitThe line trace hit to try to obtain a feature ID from.
FeatureIDSetIndexA primitive may have multiple feature ID sets, so this allows a feature ID set to be specified by index. This value should index into the array of CesiumFeatureIdSets in the CesiumPrimitiveFeatures. If the specified feature ID set index is invalid, this returns -1.

◆ GetFeatureIDFromInstance()

static int64 UCesiumPrimitiveFeaturesBlueprintLibrary::GetFeatureIDFromInstance ( UPARAM(ref) const FCesiumPrimitiveFeatures & InstanceFeatures,
int64 InstanceIndex,
int64 FeatureIDSetIndex = 0 )
static

Gets the feature ID associated with the instance at the given index.

◆ GetFeatureIDSets()

static const TArray< FCesiumFeatureIdSet > & UCesiumPrimitiveFeaturesBlueprintLibrary::GetFeatureIDSets ( UPARAM(ref) const FCesiumPrimitiveFeatures & PrimitiveFeatures)
static

Gets all the feature ID sets that are associated with the primitive.

Parameters
PrimitiveFeaturesThe primitive.

◆ GetFeatureIDSetsOfType()

static const TArray< FCesiumFeatureIdSet > UCesiumPrimitiveFeaturesBlueprintLibrary::GetFeatureIDSetsOfType ( UPARAM(ref) const FCesiumPrimitiveFeatures & PrimitiveFeatures,
ECesiumFeatureIdSetType Type )
static

Gets all the feature ID sets of the given type.

Parameters
PrimitiveFeaturesThe primitive.
TypeThe type of feature ID set to obtain. If the primitive has no sets of that type, the returned array will be empty.

◆ GetFirstVertexFromFace()

static int64 UCesiumPrimitiveFeaturesBlueprintLibrary::GetFirstVertexFromFace ( UPARAM(ref) const FCesiumPrimitiveFeatures & PrimitiveFeatures,
int64 FaceIndex )
static

Gets the index of the first vertex that makes up a given face of this primitive.

Parameters
PrimitiveFeaturesThe primitive.
FaceIndexThe index of the face.

◆ GetPrimitiveFeatures()

static const FCesiumPrimitiveFeatures & UCesiumPrimitiveFeaturesBlueprintLibrary::GetPrimitiveFeatures ( const UPrimitiveComponent * component)
static

Gets the primitive features of a glTF primitive component.

If component is not a Cesium glTF primitive component, the returned features are empty.

Parameters
componentThe component to get the features of.

◆ GetVertexCount()

static int64 UCesiumPrimitiveFeaturesBlueprintLibrary::GetVertexCount ( UPARAM(ref) const FCesiumPrimitiveFeatures & PrimitiveFeatures)
static

Get the number of vertices in the primitive.

Parameters
PrimitiveFeaturesThe primitive.

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