engine
 
载入中...
搜索中...
未找到
Public 成员函数 | Protected 属性 | 友元 | 所有成员列表
TMeshAttributeArraySet< AttributeType > 模板类 参考

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

#include <MeshAttributeArray.h>

+ 类 TMeshAttributeArraySet< AttributeType > 继承关系图:

Public 成员函数

virtual TUniquePtr< FMeshAttributeArraySetBase > Clone () const
 Creates a copy of itself and returns a TUniquePtr to it
 
FORCEINLINE const TMeshAttributeArrayBase< AttributeType > & GetArrayForIndex (const int32 Index) const
 Return the TMeshAttributeArrayBase corresponding to the given attribute index
 
FORCEINLINE AttributeType GetDefaultValue () const
 Return default value for this attribute type
 
virtual int32 GetNumIndices () const
 Return number of indices this attribute has
 
virtual void Initialize (const int32 Count)
 Sets the number of elements to the exact number provided, and initializes them to the default value
 
virtual void Insert (const int32 Index)
 Insert the element at the given index
 
virtual void InsertIndex (const int32 Index)
 Insert a new attribute index
 
virtual void Remap (const TSparseArray< int32 > &IndexRemap)
 Performs an element index remap according to the passed array
 
virtual void Remove (const int32 Index)
 Remove the element at the given index, replacing it with a default value
 
virtual void RemoveIndex (const int32 Index)
 Remove the array at the given index
 
virtual void Serialize (FArchive &Ar)
 Polymorphic serialization
 
virtual void SetNumIndices (const int32 NumIndices)
 Sets number of indices this attribute has
 
FORCEINLINE TMeshAttributeArraySet (const int32 NumberOfIndices=0, const AttributeType &InDefaultValue=AttributeType(), const EMeshAttributeFlags InFlags=EMeshAttributeFlags::None, const int32 InNumberOfElements=0)
 Constructor
 
- Public 成员函数 继承自 FMeshAttributeArraySetBase
FORCEINLINE FMeshAttributeArraySetBase (const uint32 InType, const EMeshAttributeFlags InFlags, const int32 InNumberOfElements)
 Constructor
 
FORCEINLINE EMeshAttributeFlags GetFlags () const
 Get the flags for this attribute array set
 
FORCEINLINE int32 GetNumElements () const
 Return number of elements each attribute index has
 
FORCEINLINE uint32 GetType () const
 Get the type index of this attribute array set
 
template<typename T >
FORCEINLINE bool HasType () const
 Determine whether this attribute array set is of the given type
 
FORCEINLINE void SetFlags (const EMeshAttributeFlags InFlags)
 Set the flags for this attribute array set
 
virtual ~FMeshAttributeArraySetBase ()=default
 Virtual interface
 

Protected 属性

TArray< TMeshAttributeArrayBase< AttributeType > > ArrayForIndices
 An array of MeshAttributeArrays, one per attribute index
 
AttributeType DefaultValue
 The default value for an attribute of this name
 
- Protected 属性 继承自 FMeshAttributeArraySetBase
EMeshAttributeFlags Flags
 Implementation-defined attribute name flags
 
int32 NumElements
 Number of elements in each index
 
uint32 Type
 Type of the attribute array (based on the tuple element index from AttributeTypes)
 

友元

FArchive & operator<< (FArchive &Ar, TMeshAttributeArraySet &AttributeArraySet)
 Serializer
 

详细描述

template<typename AttributeType>
class TMeshAttributeArraySet< AttributeType >

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


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