TAttributesSet

This is a version of the attributes set container which accesses elements by typesafe IDs.

Windows
MacOS
Linux

Inheritance Hierarchy

FAttributesSetBase

TAttributesSet

References

Module

MeshDescription

Header

/Engine/Source/Runtime/MeshDescription/Public/MeshAttributeArray.h

Include

#include "MeshAttributeArray.h"

Syntax

template<typename ElementIDType>
class TAttributesSet : public FAttributesSetBase

Remarks

This is a version of the attributes set container which accesses elements by typesafe IDs. This prevents access of (for example) vertex instance attributes by vertex IDs.

Functions

Name Description

Public function Const

void

 

ForEach

(
    ForEachFunc Func
)

Call the supplied function on each attribute.

Public function

void

 

ForEach

(
    ForEachFunc Func
)

Call the supplied function on each attribute.

Public function Const

void

 

ForEachAttributeIndicesArray

(
    const FuncType& Func
)

Call the supplied function on each attribute.

Public function

void

 

ForEachAttributeIndicesArray

(
    const FuncType& Func
)

Call the supplied function on each attribute.

Public function Const

AttributeTyp...

 

GetAttribute

(
    const ElementIDType ElementID,
    const FName AttributeName,
    const int32 AttributeIndex
)

Public function Const

int32

 

GetAttributeIndexCount

(
    const FName AttributeName
)

Returns the number of indices for the attribute with the given name

Public function

TMeshAttribu...

 

GetAttributes

(
    const FName AttributeName,
    const int32 AttributeIndex
)

Get a view on an attribute array with the given name, accessing elements as the given type.

Public function Const

const TMeshA...

 

GetAttributes

(
    const FName AttributeName,
    const int32 AttributeIndex
)

Get a view on an attribute array with the given name, accessing elements as the given type.

Public function Const

TMeshAttribu...

 

GetAttributesRef

(
    const FName AttributeName
)

Get an attribute array with the given type and name.

Public function

TMeshAttribu...

 

GetAttributesRef

(
    const FName AttributeName
)

Public function

TAttributeIn...

 

GetAttributesSet

(
    const FName AttributeName
)

Public function Const

const TAttri...

 

GetAttributesSet

(
    const FName AttributeName
)

Public function Const

TMeshAttribu...

 

GetAttributesView

(
    const FName AttributeName
)

Get a view on an attribute array with the given name, accessing elements as the given type.

Public function

TMeshAttribu...

 

GetAttributesView

(
    const FName AttributeName
)

Public function

void

 

Insert

(
    const ElementIDType ElementID
)

Inserts a default-initialized value for all attributes of the given ID

Public function

void

 

InsertAttributeIndex

(
    const FName AttributeName,
    const int32 Index
)

Insert a new index for the attribute with the given name

Public function

void

 

Remove

(
    const ElementIDType ElementID
)

Removes all attributes with the given ID

Public function

void

 

RemoveAttributeIndex

(
    const FName AttributeName,
    const int32 Index
)

Remove an existing index from the attribute with the given name

Public function

void

 

SetAttribute

(
    const ElementIDType ElementID,
    const FName AttributeName,
    const int32 AttributeIndex,
    const AttributeType& AttributeValu...
)

Public function

void

 

SetAttributeIndexCount

(
    const FName AttributeName,
    const int32 NumIndices
)

Sets the number of indices for the attribute with the given name

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss