Navigation
Unreal Engine C++ API Reference > Runtime > MeshDescription
References
Module | MeshDescription |
Header | /Engine/Source/Runtime/MeshDescription/Public/MeshAttributeArray.h |
Include | #include "MeshAttributeArray.h" |
Syntax
template<typename ElementIDType, typename AttributeType>
class TMeshAttributesRef
Remarks
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.
This is the default implementation which handles simple attributes, i.e. those of a simple type T. There are partial specializations which handle compound attributes below, i.e. those accessed via TArrayView
Constructors
Type | Name | Description | |
---|---|---|---|
![]() |
TMeshAttributesRef
(
const TMeshAttributesRef< ElementIDType, SrcAttributeType >& InRef |
Implicitly construct a TMeshAttributesRef-to-const from a regular one | |
![]() |
TMeshAttributesRef
(
const TMeshAttributesRef< int32, AttributeType >& InRef |
Implicitly construct a TMeshAttributesRef from a TMeshAttributesArray | |
![]() |
TMeshAttributesRef
(
const TMeshAttributesRef< int32, SrcAttributeType >& InRef |
Implicitly construct a TMeshAttributesRef-to-const from a TMeshAttributesArray | |
![]() |
TMeshAttributesRef
(
BaseArrayType* InArrayPtr, |
Constructor taking a pointer to a FMeshAttributeArraySetBase |
Functions
Type | Name | Description | |
---|---|---|---|
![]() |
void | Copy
(
TMeshAttributesRef< ElementIDType, const AttributeType > Src, |
Copies the given attribute array and channel to this channel |
![]() ![]() |
AttributeType | ||
![]() ![]() |
AttributeType | Get the element with the given ID and channel | |
![]() ![]() |
TArrayView< AttributeType > | GetArrayView
(
int32 ElementIndex, |
|
![]() ![]() |
AttributeType | Return default value for this attribute type | |
![]() ![]() |
uint32 | GetExtent () |
Get the extent for this attribute type |
![]() ![]() |
EMeshAttributeFlags | GetFlags () |
Get the flags for this attribute array set |
![]() ![]() |
int32 | Return number of indices this attribute has | |
![]() ![]() |
int32 | Get the number of elements in this attribute array | |
![]() ![]() |
int32 | ||
![]() ![]() |
TArrayView< AttributeType > | GetRawArray
(
const int32 AttributeChannel |
|
![]() ![]() |
void | InsertChannel
(
const int32 Channel |
Inserts an attribute channel |
![]() ![]() |
void | InsertIndex
(
const int32 Index |
|
![]() ![]() |
bool | IsValid () |
Return whether the reference is valid or not |
![]() ![]() |
void | RemoveChannel
(
const int32 Channel |
Removes an attribute channel |
![]() ![]() |
void | RemoveIndex
(
const int32 Index |
|
![]() ![]() |
void | Set the element with the given ID and channel to the provided value | |
![]() ![]() |
void | Set
(
const ElementIDType ElementID, |
Set the element with the given ID and index 0 to the provided value |
![]() ![]() |
void | ||
![]() ![]() |
void | ||
![]() ![]() |
void | SetArrayView
(
int32 ElementIndex, |
|
![]() ![]() |
void | SetArrayView
(
int32 ElementIndex, |
|
![]() ![]() |
void | SetNumChannels
(
const int32 NumChannels |
Sets number of channels this attribute has |
![]() ![]() |
void | SetNumIndices
(
const int32 NumChannels |
Operators
Type | Name | Description | |
---|---|---|---|
![]() ![]() |
AttributeType & | operator[]
(
const ElementIDType ElementID |
Access elements from attribute channel 0 |
![]() ![]() |
AttributeType & | operator[]
(
int32 ElementIndex |
Typedefs
Name | Description |
---|---|
ArrayType | |
BaseArrayType |