FMeshAttributeArraySetBase

This is the base class for an attribute array set.

Windows
MacOS
Linux

Inheritance Hierarchy

FMeshAttributeArraySetBase

TMeshAttributeArraySet

TAttributeIndicesArray

References

Module

MeshDescription

Header

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

Include

#include "MeshAttributeArray.h"

Syntax

class FMeshAttributeArraySetBase

Remarks

This is the base class for an attribute array set. An attribute array set is a container which holds attribute arrays, one per attribute index. Many attributes have only one index, while others (such as texture coordinates) may want to define many.

All attribute array set instances will be of derived types; this type exists for polymorphism purposes, so that they can be managed by a generic TUniquePtr<FMeshAttributeArraySetBase>.

In general, we avoid accessing them via virtual dispatch by insisting that their type be passed as a template parameter in the accessor. This can be checked against the Type field to ensure that we are accessing an instance by its correct type.

Variables

Name Description

Protected variable

EMeshAttributeF...

 

Flags

Implementation-defined attribute name flags

Protected variable

int32

 

NumElements

Number of elements in each index

Protected variable

uint32

 

Type

Type of the attribute array (based on the tuple element index from AttributeTypes)

Constructors

Name Description

Public function

FMeshAttributeArraySetBase

(
    const uint32 InType,
    const EMeshAttributeFlags InFlags,
    const int32 InNumberOfElements
)

Constructor

Destructors

Name Description

Public function Virtual

~FMeshAttributeArraySetBase()

Virtual interface

Functions

Name Description

Public function Const

TUniquePtr< ...

 

Clone()

Public function Const

EMeshAttribu...

 

GetFlags()

Get the flags for this attribute array set

Public function Const

uint32

 

GetHash()

Public function Const

int32

 

GetNumElements()

Return number of elements each attribute index has

Public function Const

int32

 

GetNumIndices()

Public function Const

uint32

 

GetType()

Get the type index of this attribute array set

Public function Const

bool

 

HasType()

Determine whether this attribute array set is of the given type

Public function

void

 

Initialize

(
    const int32 Count
)

Public function

void

 

Insert

(
    const int32 Index
)

Public function

void

 

InsertIndex

(
    const int32 Index
)

Public function

void

 

Remap

(
    const TSparseArray< int32 >& Index...
)

Public function

void

 

Remove

(
    const int32 Index
)

Public function

void

 

RemoveIndex

(
    const int32 Index
)

Public function

void

 

Serialize

(
    FArchive& Ar
)

Public function

void

 

SetFlags

(
    const EMeshAttributeFlags InFlags
)

Set the flags for this attribute array set

Public function

void

 

SetNumIndices

(
    const int32 NumIndices
)

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