Navigation
API > API/Plugins > API/Plugins/MeshModelingToolsEditorOnlyExp
Inheritance Hierarchy
- USingleSelectionMeshEditingTool
- IDynamicMeshOperatorFactory
- IClickBehaviorTarget
- IHoverBehaviorTarget
- UPolygonOnMeshTool
References
| Module | MeshModelingToolsEditorOnlyExp |
| Header | /Engine/Plugins/Experimental/MeshModelingToolsetExp/Source/MeshModelingToolsEditorOnlyExp/Public/PolygonOnMeshTool.h |
| Include | #include "PolygonOnMeshTool.h" |
Syntax
UCLASS&40;&41;
class UPolygonOnMeshTool :
public USingleSelectionMeshEditingTool,
public UE::Geometry::IDynamicMeshOperatorFactory,
public IClickBehaviorTarget,
public IHoverBehaviorTarget
Remarks
Simple Mesh Plane Cutting Tool
Variables
| Type | Name | Description | |
|---|---|---|---|
| TObjectPtr< UPolygonOnMeshToolActionPropertySet > | ActionProperties | ||
| UE::Geometry::FPolygon2d | ActivePolygon | ||
| TObjectPtr< UPolygonOnMeshToolProperties > | BasicProperties | ||
| bool | bOperationSucceeded | ||
| FViewCameraState | CameraState | ||
| TObjectPtr< ULineSetComponent > | DrawnLineSet | ||
| UE::Geometry::FFrame3d | DrawPlaneWorld | ||
| TObjectPtr< UCollectSurfacePathMechanic > | DrawPolygonMechanic | ||
| TArray< int > | EdgesOnFailure | ||
| TArray< int > | EmbeddedEdges | ||
| UE::Geometry::FPolygon2d | LastDrawnPolygon | ||
| TSharedPtr< UE::Geometry::FDynamicMesh3, ESPMode::ThreadSafe > | OriginalDynamicMesh | ||
| EPolygonOnMeshToolActions | PendingAction | ||
| TObjectPtr< UConstructionPlaneMechanic > | PlaneMechanic | ||
| TObjectPtr< UMeshOpPreviewWithBackgroundCompute > | Preview | ||
| UWorld * | TargetWorld | ||
| FTransform3d | WorldTransform |
Constructors
| Type | Name | Description | |
|---|---|---|---|
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | |||
| void | |||
| void | GenerateAsset
(
const TArray< FDynamicMeshOpResult >& Results |
||
| bool | HitTest
(
const FRay& Ray, |
Support for hover and click, for drawing polygon. | |
| void | RequestAction
(
EPolygonOnMeshToolActions ActionType |
||
| void | SetupPreview () |
||
| void | |||
| void | |||
| void |
Overridden from USingleSelectionMeshEditingTool
| Type | Name | Description | |
|---|---|---|---|
| void | OnShutdown
(
EToolShutdownType ShutdownType |
||
| void |
Overridden from UInteractiveTool
| Type | Name | Description | |
|---|---|---|---|
| bool | CanAccept () |
||
| bool | HasAccept () |
||
| bool | HasCancel () |
||
| void | OnPropertyModified
(
UObject* PropertySet, |
Automatically called by UInteractiveToolPropertySet.OnModified delegate to notify Tool of child property set changes | |
| void | OnTick
(
float DeltaTime |
Allow the Tool to do any necessary processing on Tick | |
| void | Render
(
IToolsContextRenderAPI* RenderAPI |
Allow the Tool to do any custom drawing (ie via PDI/RHI) | |
| void | Setup () |
Called by ToolManager to initialize the Tool after ToolBuilder::BuildTool() has been called |
Overridden from IDynamicMeshOperatorFactory
| Type | Name | Description | |
|---|---|---|---|
| TUniquePtr< UE::Geometry::FDynamicMeshOperator > | IDynamicMeshOperatorFactory API. |
Overridden from IClickBehaviorTarget
| Type | Name | Description | |
|---|---|---|---|
| FInputRayHit | IsHitByClick
(
const FInputDeviceRay& ClickPos |
IClickBehaviorTarget API. | |
| void | OnClicked
(
const FInputDeviceRay& ClickPos |
Notify Target that click ocurred |
Overridden from IHoverBehaviorTarget
| Type | Name | Description | |
|---|---|---|---|
| FInputRayHit | BeginHoverSequenceHitTest
(
const FInputDeviceRay& PressPos |
IHoverBehaviorTarget API. | |
| void | OnBeginHover
(
const FInputDeviceRay& DevicePos |
Initialize hover sequence at given position | |
| void | OnEndHover () |
Terminate active hover sequence | |
| bool | OnUpdateHover
(
const FInputDeviceRay& DevicePos |
Update active hover sequence with new input position |