Navigation
API > API/Runtime > API/Runtime/GeometryCore
Base class for attributes that live on a dynamic mesh (or similar dynamic object)
Subclasses can override the On* functions to ensure the attribute remains up to date through changes to the dynamic object
| Name | TDynamicAttributeBase |
| Type | class |
| Header File | /Engine/Source/Runtime/GeometryCore/Public/DynamicMesh/DynamicAttribute.h |
| Include Path | #include "DynamicMesh/DynamicAttribute.h" |
Syntax
template<typename ParentType>
class TDynamicAttributeBase
Derived Classes
- TDynamicBoneAttributeBase
- TDynamicMeshTriangleAttribute
- TDynamicVertexAttribute
- TDynamicVertexSkinWeightsAttribute
Destructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual ~TDynamicAttributeBase() |
DynamicMesh/DynamicAttribute.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
bool Append
(
const TDynamicAttributeBase& Source, |
Add elements from the Source attribute, using the AppendInfo to determine the range to copy. | DynamicMesh/DynamicAttribute.h | |
void AppendDefaulted
(
const FDynamicMesh3::FAppendInfo& AppendInfo |
Add default-valued elements, using the AppendInfo to determine the range to add. | DynamicMesh/DynamicAttribute.h | |
virtual bool CheckValidity
(
bool bAllowNonmanifold, |
Check validity of attribute | DynamicMesh/DynamicAttribute.h | |
void CompactInPlace
(
const FCompactMaps& CompactMaps |
Compact the attribute in place | DynamicMesh/DynamicAttribute.h | |
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 | DynamicMesh/DynamicAttribute.h | |
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 | DynamicMesh/DynamicAttribute.h | |
bool CopyThroughMapping
(
const TDynamicAttributeBase* Source, |
Copy data from a different attribute to this one, using the mesh index mapping to determine the correspondence | DynamicMesh/DynamicAttribute.h | |
virtual SIZE_T GetByteCount() |
DynamicMesh/DynamicAttribute.h | ||
FName GetName() |
Get optional identifier for this attribute set. | DynamicMesh/DynamicAttribute.h | |
virtual TDynamicAttributeBase * MakeCompactCopy
(
const FCompactMaps& CompactMaps, |
Allocate a new compact copy of the attribute layer, optionally with a different parent. | DynamicMesh/DynamicAttribute.h | |
TDynamicAttributeBase * MakeCopy
(
ParentType* ParentIn |
Allocate a new copy of the attribute layer, optionally with a different parent | DynamicMesh/DynamicAttribute.h | |
TDynamicAttributeBase * MakeNew
(
ParentType* ParentIn |
Allocate a new empty instance of the same type of attribute layer | DynamicMesh/DynamicAttribute.h | |
TUniquePtr< TDynamicAttributeChangeBase< ParentType > > NewBlankChange() |
DynamicMesh/DynamicAttribute.h | ||
virtual void OnCollapseEdge
(
const DynamicMeshInfo::FEdgeCollapseInfo& CollapseInfo |
Update to reflect an edge collapse in the parent mesh | DynamicMesh/DynamicAttribute.h | |
virtual void OnFlipEdge
(
const DynamicMeshInfo::FEdgeFlipInfo& FlipInfo |
Update to reflect an edge flip in the parent mesh | DynamicMesh/DynamicAttribute.h | |
virtual void OnMergeEdges
(
const DynamicMeshInfo::FMergeEdgesInfo& MergeInfo |
Update to reflect an edge merge in the parent mesh | DynamicMesh/DynamicAttribute.h | |
virtual void OnMergeVertices
(
const DynamicMeshInfo::FMergeVerticesInfo& MergeInfo |
Update to reflect a vertex merge that does not resolve as a collapse or edge merge (i.e. a vertex merge that resolves as bowtie creation). | DynamicMesh/DynamicAttribute.h | |
virtual void OnNewTriangle
(
int TriangleID, |
DynamicMesh/DynamicAttribute.h | ||
virtual void OnNewVertex
(
int VertexID, |
DynamicMesh/DynamicAttribute.h | ||
virtual void OnPokeTriangle
(
const DynamicMeshInfo::FPokeTriangleInfo& PokeInfo |
Update to reflect a face poke in the parent mesh | DynamicMesh/DynamicAttribute.h | |
virtual void OnRemoveTriangle
(
int TriangleID |
DynamicMesh/DynamicAttribute.h | ||
virtual void OnRemoveVertex
(
int VertexID |
DynamicMesh/DynamicAttribute.h | ||
virtual void OnReverseTriOrientation
(
int TriangleID |
DynamicMesh/DynamicAttribute.h | ||
virtual void OnSplitEdge
(
const DynamicMeshInfo::FEdgeSplitInfo& SplitInfo |
Update to reflect an edge split in the parent mesh | DynamicMesh/DynamicAttribute.h | |
virtual void OnSplitVertex
(
const DynamicMeshInfo::FVertexSplitInfo& SplitInfo, |
Update to reflect an edge merge in the parent mesh | DynamicMesh/DynamicAttribute.h | |
void Reparent
(
ParentType* NewParent |
Update any held pointer to the parent | DynamicMesh/DynamicAttribute.h | |
void Serialize
(
FArchive& Ar |
Serialize to and from an archive. | DynamicMesh/DynamicAttribute.h | |
void SetName
(
FName NameIn |
Set optional identifier for this attribute set. | DynamicMesh/DynamicAttribute.h |
Protected
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void CopyParentClassData
(
const TDynamicAttributeBase< ParentType >& Other |
Implementation of parent-class copy. | DynamicMesh/DynamicAttribute.h |