Navigation
API > API/Runtime > API/Runtime/GeometryCore > API/Runtime/GeometryCore/DynamicMesh
Inheritance Hierarchy
- TDynamicAttributeBase
- TDynamicBoneAttributeBase
References
| Module | GeometryCore |
| Header | /Engine/Source/Runtime/GeometryCore/Public/DynamicMesh/DynamicBoneAttribute.h |
| Include | #include "DynamicMesh/DynamicBoneAttribute.h" |
| Source | /Engine/Source/Runtime/GeometryCore/Public/DynamicMesh/DynamicMeshAttributeSet.h |
Syntax
template<typename ParentType, typename AttribValueType>
class TDynamicBoneAttributeBase : public UE::Geometry::TDynamicAttributeBase< ParentType >
Remarks
TDynamicAttributeBase is a base class for storing per-bone data.
Bone Attributes
Variables
| Type | Name | Description | |
|---|---|---|---|
| TArray< AttribValueType > | AttribValues | List of per-bone values. | |
| ParentType * | Parent | The parent object (e.g. mesh, point set) this attribute belongs to. |
Constructors
| Type | Name | Description | |
|---|---|---|---|
| Create an empty attribute. | |||
TDynamicBoneAttributeBase
(
ParentType* ParentIn, |
Create an attribute for the given parent and set the number of unintialized values. | ||
TDynamicBoneAttributeBase
(
ParentType* ParentIn, |
Create an attribute for the given parent and number of bones and set all values to the InitialValue. |
Destructors
| Type | Name | Description | |
|---|---|---|---|
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | Append
(
const AttribValueType& InValue |
Add value at the end of the value array. | |
| void | Copy
(
const TDynamicBoneAttributeBase< ParentType, AttribValueType >& Copy |
Set this attribute to contain the same arrays as the copy attribute. | |
| const TArray< AttribValueType > & | |||
| const AttribValueType & | |||
| void | Initialize
(
const int32 InNumBones, |
Resize the array of values to the given max bone number and set all the values to the InitialValue. | |
| bool | IsEmpty () |
||
| bool | IsSameAs
(
const TDynamicBoneAttributeBase< FDynamicMesh3, FTransform >& Other |
FTransform doesn't support equality operator. | |
| bool | IsSameAs
(
const TDynamicBoneAttributeBase< ParentType, AttribValueType >& Other |
Assumes that the AttribValueType support equality operator. | |
| int32 | Num () |
||
| void | Resize the array of values to the given max bone number. | ||
| void | Serialization | ||
| void |
Overridden from TDynamicAttributeBase
| Type | Name | Description | |
|---|---|---|---|
| void | CompactInPlace
(
const FCompactMaps& CompactMaps |
Compact the attribute in place | |
| bool | CopyIn
(
int RawID, |
Generic function to copy data in to an attribute; it's up to the derived class to map RawID to chunks of attribute data | |
| bool | CopyOut
(
int RawID, |
Generic function to copy data out of an attribute; it's up to the derived class to map RawID to chunks of attribute data | |
| bool | CopyThroughMapping
(
const TDynamicAttributeBase< ParentType >* Source, |
Copy data from a different attribute to this one, using the mesh index mapping to determine the correspondence | |
| TDynamicAttributeBase< ParentType > * | MakeCopy
(
ParentType* ParentIn |
Allocate a new copy of the attribute layer, optionally with a different parent | |
| TDynamicAttributeBase< ParentType > * | MakeNew
(
ParentType* ParentIn |
Allocate a new empty instance of the same type of attribute layer | |
| TUniquePtr< TDynamicAttributeChangeBase< ParentType > > | |||
| void | Reparent
(
ParentType* NewParent |
Update any held pointer to the parent |