TMeshAttributesRef< ElementIDType, TArrayAttribute< AttributeType > >

Choose your operating system:

Windows

macOS

Linux

References

Module

MeshDescription

Header

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

Include

#include "MeshAttributeArray.h"

Syntax

template<typename ElementIDType, typename AttributeType>
class TMeshAttributesRef< ElementIDType, TArrayAttribute< AttributeType > >

Functions

Name Description

Public function

void

 

Copy

(
    TMeshAttributesConstRef< ElementIDT...,
    const int32 DestChannel,
    const int32 SrcChannel
)

Copies the given attribute array and index to this index

Public function Const

TArrayAttrib...

 

Get

(
    const ElementIDType ElementID,
    const int32 Channel
)

Get the element with the given ID and channel

Public function Const

TArrayAttrib...

 

Get

(
    int32 ElementIndex,
    const int32 Channel
)

Public function Const

TArrayView< ...

 

GetArrayView

(
    int32 ElementIndex,
    const int32 Channel
)

Public function Const

AttributeTyp...

 

GetDefaultValue()

Return default value for this attribute type

Public function Const

EMeshAttribu...

 

GetFlags()

Get the flags for this attribute array set

Public function Const

int32

 

GetNumChannels()

Return number of channels this attribute has

Public function Const

int32

 

GetNumElements()

Get the number of elements in this attribute array

Public function Const

const TAttri...

 

GetRawArray

(
    const int32 AttributeChannel
)

In this specialization, GetRawArray returns a pointer to the attribute array container holding the attributes and their index pointers

Public function Const

void

 

InsertChannel

(
    const int32 Index
)

Inserts an attribute channel

Public function Const

bool

 

IsValid()

Return whether the reference is valid or not

Public function Const

void

 

RemoveChannel

(
    const int32 Index
)

Removes an attribute channel

Public function Const

void

 

Set

(
    const ElementIDType ElementID,
    TArrayAttribute< const AttributeTyp...
)

Set the element with the given ID and index 0 to the provided value

Public function Const

void

 

Set

(
    int32 ElementIndex,
    TArrayAttribute< const AttributeTyp...
)

Public function Const

void

 

Set

(
    const ElementIDType ElementID,
    const int32 Channel,
    TArrayAttribute< const AttributeTyp...
)

Set the element with the given ID and channel to the provided value

Public function Const

void

 

Set

(
    int32 ElementIndex,
    const int32 Channel,
    TArrayAttribute< const AttributeTyp...
)

Public function Const

void

 

SetArrayView

(
    int32 ElementIndex,
    TArrayView< const AttributeType > V...
)

Public function Const

void

 

SetArrayView

(
    int32 ElementIndex,
    const int32 Channel,
    TArrayView< const AttributeType > V...
)

Public function Const

void

 

SetNumChannels

(
    const int32 NumChannels
)

Sets number of channels this attribute has

Public function

 

TMeshAttributesRef

(
    TMeshAttributesRef< ElementIDType, ...
)

Implicitly construct a TMeshAttributesRef-to-const from a regular one

Public function

 

TMeshAttributesRef

Implicitly construct a TMeshAttributesRef from a TMeshAttributesArray

Public function

 

TMeshAttributesRef

Implicitly construct a TMeshAttributesRef-to-const from a TMeshAttributesArray

Public function

 

TMeshAttributesRef

(
    BaseArrayType* InArrayPtr,
    uint32 InExtent
)

Constructor taking a pointer to a TMeshUnboundedAttributeArraySet

Operators

Name Description

Public function Const

TArrayAttrib...

 

operator[]

(
    int32 ElementIndex
)

Public function Const

TArrayAttrib...

 

operator[]

(
    const ElementIDType ElementID
)

Access elements from attribute channel 0

Typedefs

Name

Description

ArrayType

BaseArrayType