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< ElementIDType, TArrayView< AttributeType > >
Functions
Type | Name | Description | |
---|---|---|---|
void | Copy
(
TMeshAttributesConstRef< ElementIDType, TArrayView< AttributeType > > Src, |
Copies the given attribute array and index to this index | |
TArrayView< AttributeType > | |||
TArrayView< 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 () |
Return the extent of this attribute, i.e. the number of array elements it comprises | |
EMeshAttributeFlags | GetFlags () |
Get the flags for this attribute array set | |
int32 | Return number of channels this attribute has | ||
int32 | Get the number of elements in this attribute array | ||
int32 | |||
TArrayView< AttributeType > | GetRawArray
(
const int32 ChannelIndex |
||
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
(
const ElementIDType ElementID, |
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 | Set
(
int32 ElementIndex, |
||
void | Set
(
int32 ElementIndex, |
||
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 |
||
TMeshAttributesRef
(
const TMeshAttributesRef< int32, TArrayView< SrcAttributeType > >& InRef |
Implicitly construct a TMeshAttributesRef-to-const from a TMeshAttributesArray | ||
TMeshAttributesRef
(
const TMeshAttributesRef< ElementIDType, TArrayView< SrcAttributeType > >& InRef |
Implicitly construct a TMeshAttributesRef-to-const from a regular one | ||
TMeshAttributesRef
(
const TMeshAttributesRef< int32, TArrayView< AttributeType > >& InRef |
Implicitly construct a TMeshAttributesRef from a TMeshAttributesArray | ||
TMeshAttributesRef
(
BaseArrayType* InArrayPtr, |
Constructor taking a pointer to a TMeshAttributeArraySet |
Operators
Type | Name | Description | |
---|---|---|---|
TArrayView< AttributeType > | operator[]
(
const ElementIDType ElementID |
Access elements from attribute channel 0 | |
TArrayView< AttributeType > | operator[]
(
int32 ElementIndex |
Typedefs
Name | Description |
---|---|
BaseArrayType | |
BoundedArrayType | |
UnboundedArrayType |