Navigation
API > API/Runtime > API/Runtime/Chaos > API/Runtime/Chaos/GeometryCollection > API/Runtime/Chaos/GeometryCollection/Facades
References
| Module | Chaos |
| Header | /Engine/Source/Runtime/Experimental/Chaos/Public/GeometryCollection/Facades/CollectionTransformFacade.h |
| Include | #include "GeometryCollection/Facades/CollectionTransformFacade.h" |
Syntax
class FCollectionTransformFacade
Remarks
Provides an API to read and manipulate hierarchy in a managed array collection
Constructors
| Type | Name | Description | |
|---|---|---|---|
FCollectionTransformFacade
(
FManagedArrayCollection& InCollection |
|||
FCollectionTransformFacade
(
const FManagedArrayCollection& InCollection |
Functions
| Type | Name | Description | |
|---|---|---|---|
| FString | Get a bone name from the index if the facade has the attribute defined. | ||
| FMatrix | Builds a FMatrix from all the components | ||
| FTransform | Builds a FTransform from all the components | ||
| FTransform | ComputeCollectionSpaceTransform
(
int32 BoneIdx |
Returns the transform for transforming from bone space to collection space for specified bone Vertex(inCollectionSpace) = TransformComputed.TransformPosition(Vertex(inBoneSpace)) | |
| TArray< FTransform > | Returns array of transforms for transforming from bone space to collection space Vertex(inCollectionSpace) = TransformComputed.TransformPosition(Vertex(inBoneSpace)) | ||
| void | DefineSchema () |
Creates the facade attributes. | |
| void | EnforceSingleRoot
(
const FString& RootName |
Adds a Identity transform and nests all roots under the new transform | |
| const TManagedArray< FString > * | Returns the bone names from the collection. Null if not initialized. | ||
| const TManagedArray< TSet< int32 > > * | FindChildren () |
Returns the child indicesfrom the collection. Null if not initialized. | |
| const TManagedArray< FTransform3f > * | Returns the child indicesfrom the collection. Null if not initialized. | ||
| const TManagedArray< int32 > * | GetParents () |
Returns the parent indices from the collection. Null if not initialized. | |
| TArray< int32 > | Gets the root index | ||
| bool | Check if the facade has the bone name attribute. | ||
| bool | HasCycle
(
const TManagedArray< int32 >& Parents, |
Does the transform heirarchy have a cycle | |
| bool | HasCycle
(
const TManagedArray< int32 >& Parents, |
Does the transform heirarchy have a cycle | |
| bool | IsConst () |
Is the facade defined constant. | |
| bool | IsValid () |
Valid if parent and children arrays are available | |
| int32 | Num () |
Get the number of transforms | |
| void | ParentTransform
(
const int32 TransformIndex, |
Parent a single transform | |
| void | ParentTransforms
(
const int32 TransformIndex, |
Parent the list of transforms to the selected index. | |
| void | SetBoneTransformToIdentity
(
int32 BoneIdx |
Sets the selected bone's transform to identity | |
| void | SetPivot
(
const FTransform& InTransform |
Transforms the pivot of a collection | |
| void | Transform
(
const FTransform& InTransform |
Transforms collection | |
| void | Transform
(
const FTransform& InTransform, |
Transforms selected bones in the collection | |
| void | UnparentTransform
(
const int32 ChildIndex |
Unparent the child index from its parent |