engine
 
载入中...
搜索中...
未找到
Public 成员函数 | 静态 Public 成员函数 | Protected 成员函数 | 所有成员列表
FGeometryCollection类 参考

FGeometryCollection (FTransformCollection) 更多...

#include <GeometryCollection.h>

+ 类 FGeometryCollection 继承关系图:

Public 成员函数

int32 AppendGeometry (const FGeometryCollection &GeometryCollection, int32 MaterialIDOffset=0, bool ReindexAllMaterials=true, const FTransform &TransformRoot=FTransform::Identity)
 Append a single geometric object to a FGeometryCollection
 
TArray< FGeometryCollectionSection > BuildMeshSections (const TArray< FIntVector > &Indices, TArray< int32 > BaseMeshOriginalIndicesIndex, TArray< FIntVector > &RetIndices) const
 Builds mesh sections for a given index buffer that could be a subset. 更多...
 
TArray< TArray< int32 > > ConnectionGraph ()
 Connection of leaf geometry
 
void Empty ()
 Empty each managed array in each group in order to reset the collection to an initial (empty) state.
 
bool HasContiguousFaces () const
 Returns true if the faces are contiguous
 
bool HasContiguousRenderFaces () const
 Returns true if the render faces are contiguous
 
bool HasContiguousVertices () const
 Returns true if the vertices are contiguous
 
bool HasVisibleGeometry () const
 Returns true if there is anything to render
 
void ReindexMaterials ()
 Reindex sections to keep polys with same materials together to reduce the number of draw calls
 
virtual void RemoveElements (const FName &Group, const TArray< int32 > &DeletionList, FProcessingParameters Params=FProcessingParameters()) override
 Remove Geometry and update dependent elements
 
virtual void ReorderElements (FName Group, const TArray< int32 > &NewOrder) override
 Reorders elements in a group. 更多...
 
void Serialize (Chaos::FChaosArchive &Ar)
 Serialize
 
void UpdateBoundingBox ()
 Update bounding box entries for the geometry
 
void UpdateGeometryVisibility (const TArray< int32 > &NodeList, bool VisibilityState)
 Update the visibility of specified geometry nodes
 
virtual void RemoveElements (const FName &Group, const TArray< int32 > &SortedDeletionList, FProcessingParameters Params=FProcessingParameters()) override
 RemoveElements Remove elements from the transform collection. 更多...
 
virtual void Serialize (Chaos::FChaosArchive &Ar) override
 Serialize
 
- Public 成员函数 继承自 FManagedArrayCollection
template<typename T >
TManagedArray< T > & AddAttribute (FName Name, FName Group, FConstructionParameters Parameters=FConstructionParameters())
 Add an attribute of Type(T) to the group 更多...
 
int32 AddElements (int32 NumberElements, FName Group)
 Add elements to a group 更多...
 
template<typename T >
void AddExternalAttribute (FName Name, FName Group, TManagedArray< T > &ValueIn, FConstructionParameters Parameters=FConstructionParameters())
 Add an external attribute of Type(T) to the group for size management. 更多...
 
void AddGroup (FName Group)
 Create a group on the collection. 更多...
 
TArray< FName > AttributeNames (FName Group) const
 List all the attributes in a group names. 更多...
 
void CopyAttribute (const FManagedArrayCollection &InCollection, FName Name, FName Group)
 Copy an attribute. 更多...
 
void CopyMatchingAttributesFrom (const FManagedArrayCollection &InCollection, const TMap< FName, TSet< FName > > *SkipList=nullptr)
 Copy attributes that match the input collection. 更多...
 
void EmptyGroup (FName Group)
 Empty the group 更多...
 
template<typename T >
TManagedArray< T > * FindAttribute (FName Name, FName Group)
 Returns attribute(Name) of Type(T) from the group 更多...
 
template<typename T >
TManagedArray< T > * FindAttributeTyped (FName Name, FName Group)
 Returns attribute(Name) of Type(T) from the group if and only if the types of T and the array match 更多...
 
template<typename T >
TManagedArray< T > & GetAttribute (FName Name, FName Group)
 Returns attribute access of Type(T) from the group 更多...
 
TArray< FName > GroupNames () const
 List all the group names.
 
bool HasAttribute (FName Name, FName Group) const
 Check for the existence of a attribute 更多...
 
FORCEINLINE bool HasGroup (FName Group) const
 Check for the existence of a group 更多...
 
void MakeDirty ()
 Updated for Render ( Mark it dirty ) question: is this the right place for this?
 
int32 NumElements (FName Group) const
 Number of elements in a group 更多...
 
void RemoveAttribute (FName Name, FName Group)
 Remove the attribute from the collection. 更多...
 
virtual void RemoveElements (const FName &Group, const TArray< int32 > &SortedDeletionList, FProcessingParameters Params=FProcessingParameters())
 Remove the element at index and reindex the dependent arrays
 
void RemoveGroup (FName Group)
 Remove the group from the collection. 更多...
 
virtual void ReorderElements (FName Group, const TArray< int32 > &NewOrder)
 Reorders elements in a group. 更多...
 
void Reserve (int32 Size, FName Group)
 Reserve a group 更多...
 
void Resize (int32 Size, FName Group)
 Resize a group 更多...
 
virtual void Serialize (Chaos::FChaosArchive &Ar)
 Serialize 更多...
 
FString ToString () const
 Dump the contents to a FString
 

静态 Public 成员函数

static FGeometryCollection * NewGeometryCollection (const TArray< float > &RawVertexArray, const TArray< int32 > &RawIndicesArray, bool ReverseVertexOrder=true)
 Create a GeometryCollection from Vertex and Indices arrays
 
static FGeometryCollection * NewGeometryCollection (const TArray< float > &RawVertexArray, const TArray< int32 > &RawIndicesArray, const TArray< int32 > &RawBoneMapArray, const TArray< FTransform > &RawTransformArray, const TManagedArray< int32 > &RawLevelArray, const TManagedArray< int32 > &RawParentArray, const TManagedArray< TSet< int32 > > &RawChildrenArray, const TManagedArray< int32 > &RawSimulationTypeArray, const TManagedArray< int32 > &RawStatusFlagsArray)
 Create a GeometryCollection from Vertex, Indices, BoneMap, Transform, BoneHierarchy arrays
 

Protected 成员函数

void RemoveGeometryElements (const TArray< int32 > &SortedGeometryIndicesToDelete)
 Remove Geometry elements i.e. 更多...
 
void ReorderGeometryElements (const TArray< int32 > &NewOrder)
 Reorder geometry elements. 更多...
 
void ReorderTransformElements (const TArray< int32 > &NewOrder)
 Reorder geometry elements based on the new transform order. 更多...
 
void UpdateFaceGroupElements ()
 Update Face Attributes based on changes in the group.
 
void UpdateVerticesGroupElements ()
 Update Vertex Attributes based on changes in the group.
 
- Protected 成员函数 继承自 FTransformCollection
void Construct ()
 Construct
 
- Protected 成员函数 继承自 FManagedArrayCollection
void SyncGroupSizeFrom (const FManagedArrayCollection &InCollection, FName Group)
 Size and order a group so that it matches the group found in the input collection. 更多...
 

详细描述

FGeometryCollection (FTransformCollection)

see : https://wiki.it.epicgames.net/display/~Brice.Criswell/Geometry+Collections

成员函数说明

◆ BuildMeshSections()

TArray< FGeometryCollectionSection > FGeometryCollection::BuildMeshSections ( const TArray< FIntVector > &  Indices,
TArray< int32 >  BaseMeshOriginalIndicesIndex,
TArray< FIntVector > &  RetIndices 
) const

Builds mesh sections for a given index buffer that could be a subset.

Currently, this call assumes that the indices are ordered by MaterialID #todo(dmp): Refactor this and ReindexMaterials to share code

◆ RemoveGeometryElements()

void FGeometryCollection::RemoveGeometryElements ( const TArray< int32 > &  SortedGeometryIndicesToDelete)
protected

Remove Geometry elements i.e.

verts, faces, etc, leaving the transform nodes intact

◆ ReorderElements()

virtual void FGeometryCollection::ReorderElements ( FName  Group,
const TArray< int32 > &  NewOrder 
)
overridevirtual

Reorders elements in a group.

NewOrder must be the same length as the group.

重载 FManagedArrayCollection .

◆ ReorderGeometryElements()

void FGeometryCollection::ReorderGeometryElements ( const TArray< int32 > &  NewOrder)
protected

Reorder geometry elements.

i.e. verts faces etc are reordered so we can get contiguous memory access

◆ ReorderTransformElements()

void FGeometryCollection::ReorderTransformElements ( const TArray< int32 > &  NewOrder)
protected

Reorder geometry elements based on the new transform order.

i.e. verts faces etc are reordered so we can get contiguous memory access


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