TMeshAttributesViewBase

This is the class used to provide a 'view' of the specified type on an attribute array.

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 ViewType>
class TMeshAttributesViewBase

Remarks

This is the class used to provide a 'view' of the specified type on an attribute array. Like TMeshAttributesRef, it is a proxy object which is valid for as long as the owning FMeshDescription exists, and should be passed by value.

This is the base class, and shouldn't be instanced directly.

Variables

Name Description

Protected variable

ArrayType *

 

ArrayPtr

Constructors

Name Description

Protected function

TMeshAttributesViewBase

(
    ArrayType* InArrayPtr
)

Constructor taking a pointer to a FMeshAttributeArraySetBase

Functions

Name Description

Protected function Const

ViewType

 

GetByIndex

(
    const int32 ElementIndex
)

Get the element with the given ID from index 0

Protected function Const

ViewType

 

GetByIndex

(
    const int32 ElementIndex,
    const int32 AttributeIndex
)

Get the element with the given element and attribute indices

Public function Const

ViewType

 

GetDefaultValue()

Return default value for this attribute type

Public function Const

int32

 

GetNumElements()

Get the number of elements in this attribute array

Public function Const

int32

 

GetNumIndices()

Return number of indices this attribute has

Public function Const

bool

 

IsValid()

Return whether the reference is valid or not

Protected function Const

void

 

SetByIndex

(
    const int32 ElementIndex,
    const ViewType& Value
)

Set the attribute index 0 element with the given index to the provided value

Protected function Const

void

 

SetByIndex

(
    const int32 ElementIndex,
    const int32 AttributeIndex,
    const ViewType& Value
)

Set the element with the given element and attribute indices to the provided value

Typedefs

Name

Description

ArrayType

Type

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