TMeshAttributesView

This is a derived version with typesafe element accessors, which is returned by TAttributesSet<>.

Windows
MacOS
Linux

Inheritance Hierarchy

TMeshAttributesViewBase

TMeshAttributesView

References

Module

MeshDescription

Header

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

Include

#include "MeshAttributeArray.h"

Syntax

template<typename ElementIDType, typename ViewType>
class TMeshAttributesView : public TMeshAttributesViewBase< ViewType >

Remarks

This is a derived version with typesafe element accessors, which is returned by TAttributesSet<>.

Constructors

Name Description

Public function

TMeshAttributesView

(
    typename Super::ArrayType* InA...
)

Constructor taking a pointer to a FMeshAttributeArraySetBase

Public function

TMeshAttributesView

(
    TMeshAttributesView< ElementIDType,...
)

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

Functions

Name Description

Public function Const

ViewType

 

Get

(
    const ElementIDType ElementID
)

Get the element with the given ID from index 0. This version has a typesafe element ID accessor.

Public function Const

ViewType

 

Get

(
    const ElementIDType ElementID,
    const int32 Index
)

Get the element with the given ID and index. This version has a typesafe element ID accessor.

Public function Const

void

 

InsertIndex

(
    const int32 Index
)

Inserts an attribute index

Public function Const

void

 

RemoveIndex

(
    const int32 Index
)

Removes an attribute index

Public function Const

void

 

Set

(
    const ElementIDType ElementID,
    const ViewType& Value
)

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

Public function Const

void

 

Set

(
    const ElementIDType ElementID,
    const int32 Index,
    const ViewType& Value
)

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

Public function Const

void

 

SetNumIndices

(
    const int32 NumIndices
)

Sets number of indices this attribute has

Typedefs

Name

Description

Super

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss