Navigation
API > API/Plugins > API/Plugins/NearestNeighborModelEditor
Inheritance Hierarchy
- TSharedFromThis
- FGCObject
- FMLDeformerEditorModel
- FMLDeformerGeomCacheEditorModel
- FMLDeformerMorphModelEditorModel
- FNearestNeighborEditorModel
References
| Module | NearestNeighborModelEditor |
| Header | /Engine/Plugins/Animation/MLDeformer/NearestNeighborModel/Source/NearestNeighborModelEditor/Public/NearestNeighborEditorModel.h |
| Include | #include "NearestNeighborEditorModel.h" |
Syntax
class FNearestNeighborEditorModel : public UE::MLDeformer::FMLDeformerMorphModelEditorModel
Functions
| Type | Name | Description | |
|---|---|---|---|
| FMLDeformerEditorModel * | MakeInstance () |
We need to implement this static MakeInstance method. |
Overridden from FMLDeformerEditorModel
| Type | Name | Description | |
|---|---|---|---|
| void | CreateActors
(
const TSharedRef< IPersonaPreviewScene >& InPersonaPreviewScene |
Create the editor actors. | |
| FMLDeformerEditorActor * | CreateEditorActor
(
const FMLDeformerEditorActor::FConstructSettings& Settings |
Create an actor in the editor viewport. | |
| FMLDeformerSampler * | Create the vertex delta sampler object. | ||
| int32 | Get the number of training frames. | ||
| FString | Get the onnx file name of the trained network. | ||
| void | Init
(
const InitSettings& Settings |
Initialize the model. | |
| void | InitInputInfo
(
UMLDeformerInputInfo* InputInfo |
Initialize the input information, which basically describes what the inputs to the neural network are going to be. | |
| bool | IsTrained () |
Check whether our model is trained or not. | |
| bool | Load the trained network from an onnx file. | ||
| void | OnPostTraining
(
ETrainingResult TrainingResult, |
This method is executed after training. | |
| void | OnPropertyChanged
(
FPropertyChangedEvent& PropertyChangedEvent |
This is called whenever a property value changes in the UI. | |
| void | Tick
(
FEditorViewportClient* ViewportClient, |
Tick the editor viewport. | |
| ETrainingResult | Train () |
Launch the training. |
Overridden from FGCObject
| Type | Name | Description | |
|---|---|---|---|
| FString | Overload this method to report a name for your referencer |