TMeshUnboundedAttributeArraySet

This is a type-specific attribute array, which is actually instanced in the attribute set.

Choose your operating system:

Windows

macOS

Linux

Inheritance Hierarchy

FMeshAttributeArraySetBase

TMeshUnboundedAttributeArraySet

References

Module

MeshDescription

Header

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

Include

#include "MeshAttributeArray.h"

Syntax

template<typename AttributeType>
class TMeshUnboundedAttributeArraySet : public FMeshAttributeArraySetBase

Remarks

This is a type-specific attribute array, which is actually instanced in the attribute set.

Variables

Name Description

Protected variable

TArray< TAttrib...

 

ArrayForChannels

An array of UnboundedArrays, one per channel

Protected variable

AttributeType

 

DefaultValue

The default value for an attribute of this name

Constructors

Name Description

Public function

TMeshUnboundedAttributeArraySet()

Constructors

Public function

TMeshUnboundedAttributeArraySet

(
    const int32 NumberOfChannels,
    const AttributeType& InDefaultValu...,
    const EMeshAttributeFlags InFlags,
    const int32 InNumberOfElements
)

Functions

Name Description

Public function

TAttributeAr...

 

GetArrayForChannel

(
    const int32 Index
)

Public function Const

const TAttri...

 

GetArrayForChannel

(
    const int32 Index
)

Return the TMeshAttributeArrayBase corresponding to the given attribute channel

Public function Const

AttributeTyp...

 

GetDefaultValue()

Return default value for this attribute type

Overridden from FMeshAttributeArraySetBase

Name Description

Public function Virtual Const

TUniquePtr< ...

 

Clone()

Creates a copy of itself and returns a TUniquePtr to it

Public function Virtual Const

uint32

 

GetHash()

Public function Virtual Const

int32

 

GetNumChannels()

Return number of channels this attribute has

Public function Virtual

void

 

Initialize

(
    const int32 Count
)

Sets the number of elements to the exact number provided, and initializes them to the default value

Public function Virtual

void

 

Insert

(
    const int32 Index
)

Insert the element at the given index

Public function Virtual

void

 

InsertChannel

(
    const int32 Index
)

Insert a new attribute channel

Public function Virtual

void

 

Remap

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

Performs an element index remap according to the passed array

Public function Virtual

void

 

Remove

(
    const int32 Index
)

Remove the element at the given index, replacing it with a default value

Public function Virtual

void

 

RemoveChannel

(
    const int32 Index
)

Remove the channel at the given index

Public function Virtual

void

 

Serialize

(
    FArchive& Ar
)

Polymorphic serialization

Public function Virtual

void

 

SetNumChannels

(
    const int32 NumChannels
)

Sets number of channels this attribute has

Public function Virtual

void

 

SetNumElements

(
    const int32 Count
)

Sets the number of elements to the exact number provided, preserving existing elements if the number is bigger

Typedefs

Name

Description

Super

Deprecated Functions

Name Description

Public function Virtual Const

int32

 

GetNumIndices()

Please use GetNumChannels().

Public function Virtual

void

 

InsertIndex

(
    const int32 Index
)

Please use InsertChannel().

Public function Virtual

void

 

RemoveIndex

(
    const int32 Index
)

Please use RemoveChannel().

Public function Virtual

void

 

SetNumIndices

(
    const int32 NumIndices
)

Please use SetNumChannels().