Navigation
API > API/Plugins > API/Plugins/MeshModelingTools
Inheritance Hierarchy
- UObject
- IInputBehaviorSource
- UInteractiveTool
- UDrawAndRevolveTool
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
| Type | Name | Description | |
|---|---|---|---|
| bool | bProfileCurveComplete | ||
| FViewCameraState | CameraState | ||
| TObjectPtr< UCurveControlPointsMechanic > | ControlPointsMechanic | ||
| UE::Geometry::FFrame3d | InitialDrawFrame | The initial frame, used in tool setup to place the axis. | |
| TObjectPtr< UNewMeshMaterialProperties > | MaterialProperties | ||
| TObjectPtr< UCreateMeshObjectTypeProperties > | OutputTypeProperties | Property set for type of output object (StaticMesh, Volume, etc) | |
| TObjectPtr< UConstructionPlaneMechanic > | PlaneMechanic | ||
| TObjectPtr< UMeshOpPreviewWithBackgroundCompute > | Preview | ||
| FVector3d | RevolutionAxisDirection | ||
| 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. | |
| TObjectPtr< URevolveToolProperties > | Settings | ||
| UWorld * | TargetWorld |
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | GenerateAsset
(
const FDynamicMeshOpResult& Result |
||
| void | |||
| void | SetInitialDrawFrame
(
UE::Geometry::FFrame3d InFrame |
||
| void | SetWorld
(
UWorld* World |
||
| void | StartPreview () |
||
| void | Uses the settings currently stored in the properties object to update the revolution axis. |
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 | RegisterActions
(
FInteractiveToolActionSet& ActionSet |
Override this function to register the set of Actions this Tool supports, using FInteractiveToolActionSet::RegisterAction. | |
| 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 | |
| void | Shutdown
(
EToolShutdownType ShutdownType |
Called by ToolManager to shut down the Tool |