Navigation
API > API/Plugins > API/Plugins/ModelingOperators
TGenericDataOperator is a base interface for operator implementations that can produce an object of arbitrary data type. Ownership is unique, ie the Operator calculates the result and then the caller takes it via ExtractResult()
| Name | TGenericDataOperator |
| Type | class |
| Header File | /Engine/Plugins/Runtime/MeshModelingToolset/Source/ModelingOperators/Public/ModelingOperators.h |
| Include Path | #include "ModelingOperators.h" |
Syntax
template<typename ResultType>
class TGenericDataOperator
Derived Classes
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
TGenericDataOperator
(
bool bCreateInitialObject |
ModelingOperators.h |
Destructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual ~TGenericDataOperator() |
ModelingOperators.h |
Typedefs
| Name | Type | Remarks | Include Path |
|---|---|---|---|
| ResultTypeName | ResultType | ModelingOperators.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void CalculateResult
(
FProgressCancel* Progress |
Calculate the result of the operator. This must populate the internal Result data | ModelingOperators.h | |
TUniquePtr< ResultType > ExtractResult() |
ModelingOperators.h | ||
void SetResult
(
TUniquePtr< ResultType >&& ResultIn |
Set the result of the Operator (generally called by CalculateResult() implementation) | ModelingOperators.h |