Navigation
API > API/Runtime > API/Runtime/GeometryCore > API/Runtime/GeometryCore/Util
References
| Module | GeometryCore |
| Header | /Engine/Source/Runtime/GeometryCore/Public/Util/ProgressCancel.h |
| Include | #include "Util/ProgressCancel.h" |
Syntax
struct FGeometryResult
Remarks
FGeometryResult represents a combined "success/failure/etc" state for a geometry operation along with a set of Error and Warning codes/messages.
Variables
| Type | Name | Description | |
|---|---|---|---|
| TArray< FGeometryError > | Errors | ||
| EGeometryResultType | Result | ||
| TArray< FGeometryWarning > | Warnings |
Constructors
| Type | Name | Description | |
|---|---|---|---|
FGeometryResult
(
EGeometryResultType ResultType |
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | AddError
(
FGeometryError Error |
Append an Error to the result | |
| void | AddWarning
(
FGeometryWarning Warning |
Append a Warning to the result | |
| FGeometryResult | Cancelled () |
||
| bool | CheckAndSetCancelled
(
FProgressCancel* Progress |
Test if the given Progress has been cancelled, if so, set the Result to Cancelled | |
| FGeometryResult | Failed () |
||
| bool | HasFailed () |
||
| bool | HasResult () |
||
| void | SetCancelled () |
||
| void | SetFailed () |
||
| void | Set state of the Result to Failure, and append a FGeometryError with the given ErrorMessage and ResultCode | ||
| void | SetSuccess () |
||
| void | SetSuccess
(
bool bSuccess, |
Set to Success/Failure based on bSuccess, or Cancelled if the (optional) FProgressCancel indicates that it was Cancelled | |
| void | UpdateResultType
(
EGeometryResultType NewType |