Navigation
API > API/Plugins > API/Plugins/ModelingOperators
TModelingOpTask is an FAbortableBackgroundTask that executes a modeling operator of template type OpType. OpType must implement a function with signature void CalculateResult(FProgressCancel*)
After work completes, ExtractOperator() can be used to recover the internal OpType instance, to get access to the completed work.
See TBackgroundModelingComputeSource for example usage (however this class can be used by itself)
| Name | TModelingOpTask |
| Type | class |
| Header File | /Engine/Plugins/Runtime/MeshModelingToolset/Source/ModelingOperators/Public/BackgroundModelingComputeSource.h |
| Include Path | #include "BackgroundModelingComputeSource.h" |
Syntax
template<typename OpType>
class TModelingOpTask : public UE::Geometry::FAbortableBackgroundTask
Inheritance Hierarchy
- FNonAbandonableTask → FAbortableBackgroundTask → TModelingOpTask
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
TModelingOpTask
(
TUniquePtr< OpType > OperatorIn |
BackgroundModelingComputeSource.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
TUniquePtr< OpType > ExtractOperator() |
BackgroundModelingComputeSource.h |
Protected
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void DoWork() |
FAbortableBackgroundTask API. | BackgroundModelingComputeSource.h | |
TStatId GetStatId() |
FAsyncTask framework required function. | BackgroundModelingComputeSource.h |