Navigation
API > API/Runtime > API/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 | Get
(
int32 ElementIndex, |
||
| AttributeType | Get
(
const ElementIDType ElementID, |
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 | ||
| TArrayView< AttributeType > | GetRawArray
(
const int32 AttributeChannel |
||
| void | InsertChannel
(
const int32 Channel |
Inserts an attribute channel | |
| bool | IsValid () |
Return whether the reference is valid or not | |
| void | RemoveChannel
(
const int32 Channel |
Removes an attribute channel | |
| 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 |
Operators
| Type | Name | Description | |
|---|---|---|---|
| AttributeType & | operator[]
(
const ElementIDType ElementID |
Access elements from attribute channel 0 | |
| AttributeType & | operator[]
(
int32 ElementIndex |
Typedefs
| Name | Description |
|---|---|
| ArrayType | |
| BaseArrayType |
Deprecated Functions
| Type | Name | Description | |
|---|---|---|---|
| int32 | Please use GetNumChannels(). | ||
| void | InsertIndex
(
const int32 Index |
Please use InsertChannel(). | |
| void | RemoveIndex
(
const int32 Index |
Please use RemoveChannel(). | |
| void | SetNumIndices
(
const int32 NumChannels |
Please use SetNumChannels(). |