UDrawAndRevolveTool

Draws a profile curve and revolves it around an axis.

Choose your operating system:

Windows

macOS

Linux

Inheritance Hierarchy

References

Module

MeshModelingTools

Header

/Engine/Plugins/Runtime/MeshModelingToolset/Source/MeshModelingTools/Public/DrawAndRevolveTool.h

Include

#include "DrawAndRevolveTool.h"

Syntax

UCLASS()
class UDrawAndRevolveTool : public UInteractiveTool

Remarks

Draws a profile curve and revolves it around an axis.

Variables

Name Description

Protected variable

bool

 

bProfileCurveComplete

Protected variable

FViewCameraStat...

 

CameraState

Protected variable UProperty

TObjectPtr< UCu...

 

ControlPointsMechanic

Protected variable UProperty

TObjectPtr< UNe...

 

MaterialProperties

Protected variable UProperty

TObjectPtr< UCr...

 

OutputTypeProperties

Property set for type of output object (StaticMesh, Volume, etc)

Protected variable UProperty

TObjectPtr< UCo...

 

PlaneMechanic

Protected variable UProperty

TObjectPtr< UMe...

 

Preview

Protected variable

FVector3d

 

RevolutionAxisDirection

Protected variable

FVector3d

 

RevolutionAxisOrigin

This information is replicated in the user-editable transform in the settings and in the PlaneMechanic plane, but the tool turned out to be much easier to write and edit with this decoupling.

Protected variable UProperty

TObjectPtr< URe...

 

Settings

Protected variable

UWorld *

 

TargetWorld

Functions

Name Description

Protected function

void

 

GenerateAsset

(
    const FDynamicMeshOpResult& Result
)

Public function Virtual

void

 

OnPointDeletionKeyPress()

Public function Virtual

void

 

SetWorld

(
    UWorld* World
)

Protected function

void

 

StartPreview()

Protected function

void

 

UpdateRevolutionAxis()

Uses the settings currently stored in the properties object to update the revolution axis.

Overridden from UInteractiveTool

Name Description

Public function Virtual Const

bool

 

CanAccept()

Public function Virtual Const

bool

 

HasAccept()

Public function Virtual Const

bool

 

HasCancel()

Public function Virtual

void

 

OnPropertyModified

(
    UObject* PropertySet,
    FProperty* Property
)

Automatically called by UInteractiveToolPropertySet.OnModified delegate to notify Tool of child property set changes

Public function Virtual

void

 

OnTick

(
    float DeltaTime
)

Action support/system

Public function Virtual

void

 

RegisterActions

(
    FInteractiveToolActionSet& ActionS...
)

Override this function to register the set of Actions this Tool supports, using FInteractiveToolActionSet::RegisterAction.

Public function Virtual

void

 

Render

(
    IToolsContextRenderAPI* Render...
)

Allow the Tool to do any custom drawing (ie via PDI/RHI)

Public function Virtual

void

 

Setup()

Called by ToolManager to initialize the Tool after ToolBuilder::BuildTool() has been called

Public function Virtual

void

 

Shutdown

(
    EToolShutdownType ShutdownType
)

Called by ToolManager to shut down the Tool