Module |
|
Header |
/Engine/Source/Runtime/MeshDescription/Public/MeshAttributeArray.h |
Include |
#include "MeshAttributeArray.h" |
template<typename ElementIDType, typename AttributeType>
class TMeshAttributesRef
This is the class used to access attribute values. It is a proxy object to a TMeshAttributeArraySet<> and should be passed by value. It is valid for as long as the owning FMeshDescription exists.
Name | Description | ||
---|---|---|---|
|
ArrayPtr |
Name | Description | |
---|---|---|
|
TMeshAttributesRef ( |
Constructor taking a pointer to a TMeshAttributeArraySet |
|
TMeshAttributesRef ( |
Implicitly construct a TMeshAttributesRef-to-const from a regular one |
Name | Description | ||
---|---|---|---|
|
Copy ( |
Copies the given attribute array and index to this index |
|
|
AttributeTyp... |
Get ( |
Get the element with the given ID from index 0 |
|
AttributeTyp... |
Get ( |
Get the element with the given ID and index |
|
AttributeTyp... |
GetDefaultValue() |
Return default value for this attribute type |
|
EMeshAttribu... |
GetFlags() |
Get the flags for this attribute array set |
|
GetNumElements() |
Get the number of elements in this attribute array |
|
|
GetNumIndices() |
Return number of indices this attribute has |
|
|
InsertIndex ( |
Inserts an attribute index |
|
|
IsValid() |
Return whether the reference is valid or not |
|
|
RemoveIndex ( |
Removes an attribute index |
|
|
Set ( |
Set the element with the given ID and index 0 to the provided value |
|
|
Set ( |
Set the element with the given ID and index to the provided value |
|
|
SetNumIndices ( |
Sets number of indices this attribute has |
Name | Description | ||
---|---|---|---|
|
AttributeTyp... |
operator[] ( |
Access elements from attribute index 0 |