Navigation
API > API/Plugins > API/Plugins/MeshModelingToolsEditorOnly
Simple Mesh Plane Cutting Tool
| Name | UPolygonOnMeshTool |
| Type | class |
| Header File | /Engine/Plugins/Runtime/MeshModelingToolset/Source/MeshModelingToolsEditorOnly/Public/PolygonOnMeshTool.h |
| Include Path | #include "PolygonOnMeshTool.h" |
Syntax
UCLASS ()
class UPolygonOnMeshTool :
public USingleSelectionMeshEditingTool ,
public UE::Geometry::IDynamicMeshOperatorFactory ,
public IClickBehaviorTarget ,
public IHoverBehaviorTarget
Inheritance Hierarchy
- UObjectBase → UObjectBaseUtility → UObject → UInteractiveTool → USingleSelectionTool → USingleSelectionMeshEditingTool → UPolygonOnMeshTool
Implements Interfaces
- IClickBehaviorTarget
- IModifierToggleBehaviorTarget
- IHoverBehaviorTarget
- IInputBehaviorSource
- IInteractiveToolCameraFocusAPI
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
UPolygonOnMeshTool() |
PolygonOnMeshTool.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual bool HitTest
(
const FRay& Ray, |
Support for hover and click, for drawing polygon. | PolygonOnMeshTool.h | |
virtual void RequestAction
(
EPolygonOnMeshToolActions ActionType |
PolygonOnMeshTool.h |
Overridden from USingleSelectionMeshEditingTool
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void OnShutdown
(
EToolShutdownType ShutdownType |
PolygonOnMeshTool.h | ||
virtual void SetWorld
(
UWorld* World |
PolygonOnMeshTool.h |
Overridden from UInteractiveTool
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual bool CanAccept() |
PolygonOnMeshTool.h | ||
virtual bool HasAccept() |
PolygonOnMeshTool.h | ||
virtual bool HasCancel() |
PolygonOnMeshTool.h | ||
| PolygonOnMeshTool.h | |||
virtual void OnTick
(
float DeltaTime |
PolygonOnMeshTool.h | ||
virtual void Render
(
IToolsContextRenderAPI* RenderAPI |
PolygonOnMeshTool.h | ||
virtual void Setup() |
PolygonOnMeshTool.h |
Overridden from IDynamicMeshOperatorFactory
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual TUniquePtr< UE::Geometry::FDynamicMeshOperator > MakeNewOperator() |
IDynamicMeshOperatorFactory API. | PolygonOnMeshTool.h |
Overridden from IClickBehaviorTarget
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual FInputRayHit IsHitByClick
(
const FInputDeviceRay& ClickPos |
IClickBehaviorTarget API. | PolygonOnMeshTool.h | |
virtual void OnClicked
(
const FInputDeviceRay& ClickPos |
PolygonOnMeshTool.h |
Overridden from IHoverBehaviorTarget
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual FInputRayHit BeginHoverSequenceHitTest
(
const FInputDeviceRay& PressPos |
IHoverBehaviorTarget API. | PolygonOnMeshTool.h | |
virtual void OnBeginHover
(
const FInputDeviceRay& DevicePos |
PolygonOnMeshTool.h | ||
virtual void OnEndHover() |
PolygonOnMeshTool.h | ||
virtual bool OnUpdateHover
(
const FInputDeviceRay& DevicePos |
PolygonOnMeshTool.h |
Protected
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void BeginDrawPolygon() |
PolygonOnMeshTool.h | ||
void CompleteDrawPolygon() |
PolygonOnMeshTool.h | ||
void GenerateAsset
(
const TArray< FDynamicMeshOpResult >& Results |
PolygonOnMeshTool.h | ||
void SetupPreview() |
PolygonOnMeshTool.h | ||
void UpdateDrawPlane() |
PolygonOnMeshTool.h | ||
void UpdatePolygonType() |
PolygonOnMeshTool.h | ||
void UpdateVisualization() |
PolygonOnMeshTool.h |