engine
 
载入中...
搜索中...
未找到
Public 成员函数 | 所有成员列表
TMeshAttributesRef< ElementIDType, AttributeType > 模板类 参考

This is the class used to access attribute values. 更多...

#include <MeshAttributeArray.h>

Public 成员函数

void Copy (TMeshAttributesRef< ElementIDType, const AttributeType > Src, const int32 DestIndex=0, const int32 SrcIndex=0)
 Copies the given attribute array and index to this index
 
FORCEINLINE AttributeType Get (const ElementIDType ElementID) const
 Get the element with the given ID from index 0
 
FORCEINLINE AttributeType Get (const ElementIDType ElementID, const int32 Index) const
 Get the element with the given ID and index
 
FORCEINLINE AttributeType GetDefaultValue () const
 Return default value for this attribute type
 
FORCEINLINE EMeshAttributeFlags GetFlags () const
 Get the flags for this attribute array set
 
FORCEINLINE int32 GetNumElements () const
 Get the number of elements in this attribute array
 
FORCEINLINE int32 GetNumIndices () const
 Return number of indices this attribute has
 
FORCEINLINE void InsertIndex (const int32 Index) const
 Inserts an attribute index
 
FORCEINLINE bool IsValid () const
 Return whether the reference is valid or not
 
FORCEINLINE AttributeType & operator[] (const ElementIDType ElementID) const
 Access elements from attribute index 0
 
FORCEINLINE void RemoveIndex (const int32 Index) const
 Removes an attribute index
 
FORCEINLINE void Set (const ElementIDType ElementID, const AttributeType &Value) const
 Set the element with the given ID and index 0 to the provided value
 
FORCEINLINE void Set (const ElementIDType ElementID, const int32 Index, const AttributeType &Value) const
 Set the element with the given ID and index to the provided value
 
FORCEINLINE void SetNumIndices (const int32 NumIndices) const
 Sets number of indices this attribute has
 
FORCEINLINE TMeshAttributesRef (ArrayType *InArrayPtr=nullptr)
 Constructor taking a pointer to a TMeshAttributeArraySet
 
template<typename T = AttributeType, typename TEnableIf< TIsSame< T, const T >::Value, int >::Type = 0>
FORCEINLINE TMeshAttributesRef (TMeshAttributesRef< ElementIDType, typename TRemoveCV< T >::Type > InRef)
 Implicitly construct a TMeshAttributesRef-to-const from a regular one
 

详细描述

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

This is the class used to access attribute values.

It is a proxy object to a TMeshAttributeArraySet<> and should be passed by value. It is valid for as long as the owning FMeshDescription exists.


该类的文档由以下文件生成: