Navigation
API > API/Plugins > API/Plugins/MLDeformerFrameworkEditor
The editor model related to the runtime UMLDeformerMorphModel class, or models inherited from that.
| Name | FMLDeformerMorphModelEditorModel |
| Type | class |
| Header File | /Engine/Plugins/Animation/MLDeformer/MLDeformerFramework/Source/MLDeformerFrameworkEditor/Public/MLDeformerMorphModelEditorModel.h |
| Include Path | #include "MLDeformerMorphModelEditorModel.h" |
Syntax
class FMLDeformerMorphModelEditorModel : public UE::MLDeformer::FMLDeformerGeomCacheEditorModel
Inheritance Hierarchy
- FGCObject → FMLDeformerEditorModel → FMLDeformerGeomCacheEditorModel → FMLDeformerMorphModelEditorModel
- FSharedFromThisBase → TSharedFromThis → FMLDeformerEditorModel → FMLDeformerGeomCacheEditorModel → FMLDeformerMorphModelEditorModel
Derived Classes
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void AddRequiredBones
(
const FReferenceSkeleton& RefSkel, |
Add any required bone to the mask. | MLDeformerMorphModelEditorModel.h | |
void ApplyBoneToMask
(
int32 SkeletonBoneIndex, |
Add bone influences to the mask. | MLDeformerMorphModelEditorModel.h | |
void ApplyGeneratedMaskToVertexAttributes
(
USkeletalMesh* SkeletalMesh, |
Apply a generated mask to a specific vertex attribute. | MLDeformerMorphModelEditorModel.h | |
void ApplyMaskInfoToBuffer
(
const USkeletalMesh* SkeletalMesh, |
Apply the mask info to the mask buffer of floats. | MLDeformerMorphModelEditorModel.h | |
TArray< int32 > BuildVirtualParentTable
(
const FReferenceSkeleton& RefSkel, |
Build a mapping table that tells us the virtual parent for each bone in the ref skeleton. | MLDeformerMorphModelEditorModel.h | |
void FillMaskValues
(
TArrayView< float > ItemMaskBuffer, |
Fill the mask buffer for a given item with a specific value. | MLDeformerMorphModelEditorModel.h | |
int32 FindVirtualParentIndex
(
const FReferenceSkeleton& RefSkel, |
Find the virtual parent for a given bone. | MLDeformerMorphModelEditorModel.h | |
virtual const TArrayView< const float > GetMaskForMorphTarget
(
int32 MorphTargetIndex |
Get the mask buffer for a given morph target. | MLDeformerMorphModelEditorModel.h | |
UMLDeformerMorphModel * GetMorphModel() |
Helpers. | MLDeformerMorphModelEditorModel.h | |
UMLDeformerMorphModelVizSettings * GetMorphModelVizSettings() |
MLDeformerMorphModelEditorModel.h | ||
virtual bool IsInputMaskingSupported () |
Check if input masking is supported in this model. | MLDeformerMorphModelEditorModel.h | |
virtual bool IsMorphWeightClampingSupported () |
Returns whether this model supports morph output weight clamping or not. | MLDeformerMorphModelEditorModel.h | |
void RecursiveAddBoneToMaskDownwards
(
const FReferenceSkeleton& RefSkel, |
MLDeformerMorphModelEditorModel.h | ||
void RecursiveAddBoneToMaskDownwards
(
const FReferenceSkeleton& RefSkel, |
Recursively add bone masks for this bone and its children. | MLDeformerMorphModelEditorModel.h | |
void RecursiveAddBoneToMaskUpwards
(
const FReferenceSkeleton& RefSkel, |
Recursively add bone masks for this bone and its parents. | MLDeformerMorphModelEditorModel.h | |
void RecursiveAddBoneToMaskUpwards
(
const FReferenceSkeleton& RefSkel, |
MLDeformerMorphModelEditorModel.h |
Overridden from FMLDeformerEditorModel
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void CopyBaseSettingsFromModel
(
const FMLDeformerEditorModel* SourceEditorModel |
Copy the common property values from a source model into this model. | MLDeformerMorphModelEditorModel.h | |
virtual FString GetHeatMapDeformerGraphDualQuatPath() |
Get the path to the heat map deformer graph asset, when using dual quaternion skinning. | MLDeformerMorphModelEditorModel.h | |
virtual FString GetHeatMapDeformerGraphPath() |
Get the path to the heat map deformer graph asset, when using linear skinning. | MLDeformerMorphModelEditorModel.h | |
virtual void OnMaxNumLODsChanged () |
Executed when the maximum number of LOD levels changed. | MLDeformerMorphModelEditorModel.h | |
virtual void OnObjectModified
(
UObject* Object |
Called whenever an engine object is being modified. | MLDeformerMorphModelEditorModel.h | |
virtual void OnPostTraining
(
ETrainingResult TrainingResult, |
This method is executed after training. | MLDeformerMorphModelEditorModel.h | |
virtual void OnPreTraining () |
This is called just before we start the training process. | MLDeformerMorphModelEditorModel.h | |
virtual void OnPropertyChanged
(
FPropertyChangedEvent& PropertyChangedEvent |
This is called whenever a property value changes in the UI. | MLDeformerMorphModelEditorModel.h | |
virtual void Render
(
const FSceneView* View, |
Render additional (debug) things in the viewport. | MLDeformerMorphModelEditorModel.h |
Overridden from FGCObject
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual FString GetReferencerName() |
MLDeformerMorphModelEditorModel.h |
Protected
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
float CalcGlobalMaskWeight
(
int32 RenderVertexIndex, |
MLDeformerMorphModelEditorModel.h | ||
TArray< float > CalcGlobalMaskWeights
(
const TArray< int32 >& VertexMap, |
Calculate the global mask weight for a specific render vertex, using a color buffer and specified mask channel settings. | MLDeformerMorphModelEditorModel.h | |
virtual void CalcMorphTargetNormals
(
int32 LOD, |
Calculate the delta normals for a given morph target. | MLDeformerMorphModelEditorModel.h | |
virtual void CalcMorphTargetNormals
(
int32 LOD, |
MLDeformerMorphModelEditorModel.h | ||
virtual void CalcMorphTargetNormals
(
int32 LOD, |
Calculate the normals for a given morph target. | MLDeformerMorphModelEditorModel.h | |
void CalcVertexNormals
(
TArrayView< const FVector3f > VertexPositions, |
Calculate the normals for each vertex, given the triangle data and positions. | MLDeformerMorphModelEditorModel.h | |
void ClampMorphTargetNumber () |
Clamp the current morph target number inside the visualization settings to a valid range. | MLDeformerMorphModelEditorModel.h | |
void CompressMorphTargets
(
FMorphTargetVertexInfoBuffers& OutMorphBuffers, |
Compress morph targets into GPU based morph buffers. | MLDeformerMorphModelEditorModel.h | |
void CreateMorphTargets
(
TArray< UMorphTarget* >& OutMorphTargets, |
Generate engine morph targets from a set of deltas. | MLDeformerMorphModelEditorModel.h | |
void DebugDrawMorphTarget
(
FPrimitiveDrawInterface* PDI, |
Debug draw specific morph targets using lines and points. | MLDeformerMorphModelEditorModel.h | |
virtual void InitEngineMorphTargets
(
const TArray< FVector3f >& Deltas |
Initialize a set of engine morph targets and compress them to GPU friendly buffers. | MLDeformerMorphModelEditorModel.h | |
bool ProcessVertexDelta
(
FVector3f& OutScaledDelta, |
Process and filter a vertex delta position and normal and apply scaling to it. | MLDeformerMorphModelEditorModel.h | |
void SetNeedsRebuildMaskBuffer() |
Tell the editor model that we should update the mask buffer on the next Tick call. | MLDeformerMorphModelEditorModel.h | |
void TransferMorphTargets
(
TArray< UMorphTarget* > MorphTargetsLODZero |
MLDeformerMorphModelEditorModel.h | ||
void UpdateMorphErrorValues
(
TArrayView< UMorphTarget* > MorphTargets |
Update the morph target error values. | MLDeformerMorphModelEditorModel.h | |
void ZeroDeltasByLengthThreshold
(
TArray< FVector3f >& Deltas, |
Zero all deltas with a length equal to, or smaller than the threshold value. | MLDeformerMorphModelEditorModel.h |
Static
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static FMLDeformerEditorModel * MakeInstance() |
We need to implement this static MakeInstance method. | MLDeformerMorphModelEditorModel.h |