UDrawAndRevolveTool

Draws a profile curve and revolves it around an axis.

Windows
MacOS
Linux

Inheritance Hierarchy

References

Module

MeshModelingTools

Header

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

Include

#include "DrawAndRevolveTool.h"

Syntax

[UCLASS](Programming/UnrealArchitecture/Reference/Classes#classdeclaration)()
class UDrawAndRevolveTool : public UInteractiveTool

Remarks

Draws a profile curve and revolves it around an axis.

Variables

Name Description

Protected variable

IToolsContextAs...

 

AssetAPI

Protected variable

bool

 

bProfileCurveComplete

Protected variable

FViewCameraStat...

 

CameraState

Protected variable UProperty

UCurveControlPo...

 

ControlPointsMechanic

Protected variable UProperty

UNewMeshMateria...

 

MaterialProperties

Protected variable UProperty

UConstructionPl...

 

PlaneMechanic

Protected variable UProperty

UMeshOpPreviewW...

 

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

URevolveToolPro...

 

Settings

Protected variable

UWorld *

 

TargetWorld

Functions

Name Description

Protected function

void

 

GenerateAsset

(
    const FDynamicMeshOpResult& Result
)

Public function

void

 

OnBackspacePress()

Public function Virtual

void

 

SetAssetAPI

(
    IToolsContextAssetAPI* NewAsse...
)

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

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss