TModelingOpTask

[TModelingOpTask](API\Plugins\ModelingOperators\TModelingOpTask) is an [FAbortableBackgroundTask](API\Plugins\ModelingOperators\FAbortableBackgroundTask) that executes a modeling operator of template type OpType.

Windows
MacOS
Linux

Inheritance Hierarchy

References

Module

ModelingOperators

Header

/Engine/Plugins/Experimental/MeshModelingToolset/Source/ModelingOperators/Public/BackgroundModelingComputeSource.h

Include

#include "BackgroundModelingComputeSource.h"

Syntax

template<typename OpType>
class TModelingOpTask : public FAbortableBackgroundTask

Remarks

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)

Variables

Name Description

Protected variable

TUniquePtr< OpT...

 

Operator

Constructors

Name Description

Public function

TModelingOpTask

(
    TUniquePtr< OpType > OperatorIn
)

Functions

Name Description

Protected function

void

 

DoWork()

FAbortableBackgroundTask API.

Public function

TUniquePtr< ...

 

ExtractOperator()

Protected function Const

TStatId

 

GetStatId()

FAsyncTask framework required function.

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss