| FManagedArrayCollection
|
Module |
|
Header |
/Engine/Source/Runtime/Experimental/Chaos/Public/GeometryCollection/ManagedArrayCollection.h |
Include |
#include "GeometryCollection/ManagedArrayCollection.h" |
class FManagedArrayCollection
ManagedArrayCollection
The ManagedArrayCollection is an entity system that implements a homogeneous, dynamically allocated, manager of primitive TArray structures. The collection stores groups of TArray attributes, where each attribute within a group is the same length. The collection will make use of the TManagedArray class, providing limited interaction with the underlying TArray.
For example:
FManagedArrayCollection* Collection(NewObject<FManagedArrayCollection>()); Collection->AddElements(10, "GroupBar"); // Create a group GroupBar and add 10 elements. Collection->AddAttribute<FVector>("AttributeFoo", "GroupBar"); // Add a FVector array named AttributeFoo to GroupBar. TManagedArray<FVector>& Foo = Collection->GetAttribute<FVector>("AttributeFoo", "GroupBar"); // Get AttributeFoo for (int32 i = 0; i < Foo.Num(); i++) { Foo[i] = FVector(i, i, i); // Update AttribureFoo's elements }
Name | Description | ||
---|---|---|---|
|
Version |
Version to indicate need for conditioning to current expected data layout during serialization loading. |
Name | Description | |
---|---|---|
|
FManagedArrayCollection() |
|
|
FManagedArrayCollection ( |
|
|
FManagedArrayCollection |
Name | Description | |
---|---|---|
|
~FManagedArrayCollection() |
Name | Description | ||
---|---|---|---|
|
TManagedArra... |
AddAttribute ( |
Add an attribute of Type(T) to the group |
|
AddElements |
Add elements to a group |
|
|
AddExternalAttribute ( |
Add an external attribute of Type(T) to the group for size management. |
|
|
AddGroup ( |
Create a group on the collection. Adding attribute will also create unknown groups. |
|
|
AttributeNames ( |
List all the attributes in a group names. |
|
|
CopyAttribute ( |
Copy an attribute. |
|
|
CopyMatchingAttributesFrom ( |
Copy attributes that match the input collection. This is a utility to easily sync collections |
|
|
EmptyGroup ( |
Empty the group |
|
|
const TManag... |
FindAttribute |
|
|
TManagedArra... |
FindAttribute |
Returns attribute(Name) of Type(T) from the group |
|
const TManag... |
FindAttributeTyped |
|
|
TManagedArra... |
FindAttributeTyped |
Returns attribute(Name) of Type(T) from the group if and only if the types of T and the array match |
|
const TManag... |
GetAttribute |
|
|
TManagedArra... |
GetAttribute |
Returns attribute access of Type(T) from the group |
|
GroupNames() |
List all the group names. |
|
|
HasAttribute |
Check for the existence of a attribute |
|
|
HasGroup ( |
Check for the existence of a group |
|
|
IsDirty() |
||
|
MakeClean() |
||
|
MakeDirty() |
Updated for Render ( Mark it dirty ) question: is this the right place for this? |
|
|
NumElements ( |
Number of elements in a group |
|
|
RemoveAttribute |
Remove the attribute from the collection. |
|
|
RemoveDependencyFor ( |
||
|
RemoveElements ( |
Remove the element at index and reindex the dependent arrays |
|
|
RemoveGroup ( |
Remove the group from the collection. |
|
|
ReorderElements |
Reorders elements in a group. NewOrder must be the same length as the group. |
|
|
Reserve |
Reserve a group |
|
|
Resize |
Resize a group |
|
|
Serialize ( |
Serialize |
|
|
SetDependency |
||
|
SyncGroupSizeFrom ( |
Size and order a group so that it matches the group found in the input collection. |
|
|
ToString() |
Dump the contents to a FString |
Name | Description | ||
---|---|---|---|
|
FManagedArra... |
operator= |
|
|
FManagedArra... |
operator= ( |
Name |
Description |
|
---|---|---|
|
FConstructionParameters |
|
|
FProcessingParameters |
Name |
Description |
---|---|
EArrayType |
|
FKeyType |
Name |
Description |
---|---|
Invalid |