Navigation
API > API/Plugins > API/Plugins/MeshModelingToolsEditorOnlyExp
Inheritance Hierarchy
- UObject
- IInputBehaviorSource
- UInteractiveTool
- UDrawSplineTool
References
| Module | MeshModelingToolsEditorOnlyExp |
| Header | /Engine/Plugins/Experimental/MeshModelingToolsetExp/Source/MeshModelingToolsEditorOnlyExp/Public/DrawSplineTool.h |
| Include | #include "DrawSplineTool.h" |
Syntax
UCLASS ()
class UDrawSplineTool :
public UInteractiveTool ,
public IClickBehaviorTarget ,
public IClickDragBehaviorTarget
Variables
| Type | Name | Description | |
|---|---|---|---|
| bool | bDrawTangentForLastPoint | ||
| bool | bFreeDrawPlacedPreviewPoint | ||
| bool | bNeedToRerunConstructionScript | ||
| bool | bPreviousSplineVisibility | ||
| FViewCameraState | CameraState | ||
| TObjectPtr< USingleClickOrDragInputBehavior > | ClickOrDragBehavior | ||
| int32 | FreeDrawStrokeStartIndex | ||
| TWeakObjectPtr< USplineComponent > | HiddenSpline | Used to restore visibility of previous spline when switching to a different one. | |
| TObjectPtr< UConstructionPlaneMechanic > | PlaneMechanic | ||
| TObjectPtr< AActor > | PreviewActor | The preview actor may be a duplicate of some target blueprint actor so that we can see the effects of the drawn spline immediately | |
| TObjectPtr< APreviewGeometryActor > | PreviewRootActor | PreviewRootActor either holds WorkingSpline inside it directly, or has some preview actor attached to it (so that the preview actor is hidden from outliner, like APreviewGeometryActor is). | |
| TObjectPtr< AActor > | PreviousTargetActor | Used to restore visibility of previous actor when switching to a different one. | |
| bool | PreviousTargetActorVisibility | ||
| TWeakObjectPtr< AActor > | SelectedActor | This is only used to initialize TargetActor in the settings object. | |
| TObjectPtr< UDrawSplineToolProperties > | Settings | ||
| int32 | SplineRecaptureIndex | Used for recapturing the spline when rerunning construction scripts. | |
| TWeakObjectPtr< UWorld > | TargetWorld | ||
| TWeakObjectPtr< USplineComponent > | WorkingSpline | This is the spline we add points to. |
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | AddSplinePoint
(
const FVector3d& HitLocation, |
||
| void | |||
| UWorld * | |||
| FVector3d | GetUpVectorToUse
(
const FVector3d& HitLocation, |
||
| bool | |||
| void | SetSelectedActor
(
AActor* Actor |
||
| void | |||
| 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 () |
UInteractiveTool. | |
| void | Shutdown
(
EToolShutdownType ShutdownType |
Called by ToolManager to shut down the Tool |
Overridden from IClickBehaviorTarget
| Type | Name | Description | |
|---|---|---|---|
| FInputRayHit | IsHitByClick
(
const FInputDeviceRay& ClickPos |
IClickBehaviorTarget. | |
| void | OnClicked
(
const FInputDeviceRay& ClickPos |
Notify Target that click ocurred |
Overridden from IClickDragBehaviorTarget
| Type | Name | Description | |
|---|---|---|---|
| FInputRayHit | CanBeginClickDragSequence
(
const FInputDeviceRay& PressPos |
IClickDragBehaviorTarget. | |
| void | OnClickDrag
(
const FInputDeviceRay& DragPos |
Notify Target that input position has changed | |
| void | OnClickPress
(
const FInputDeviceRay& PressPos |
Notify Target that click press ocurred | |
| void | OnClickRelease
(
const FInputDeviceRay& ReleasePos |
Notify Target that click release occurred | |
| void | Notify Target that click-drag sequence has been explicitly terminated (eg by escape key) |
Classes
| Type | Name | Description | |
|---|---|---|---|
| FSplineChange | Helper class for making undo/redo transactions, to avoid friending all the variations. |