USequencerPivotTool

Pivot tool class

Choose your operating system:

Windows

macOS

Linux

Inheritance Hierarchy

References

Module

SequencerAnimTools

Header

/Engine/Plugins/Editor/SequencerAnimTools/Source/SequencerAnimTools/Public/SequencerAnimEditPivotTool.h

Include

#include "SequencerAnimEditPivotTool.h"

Syntax

UCLASS()
class USequencerPivotTool :
    public UMultiSelectionTool,
    public IClickBehaviorTarget,
    public IBaseSequencerAnimTool

Remarks

Pivot tool class

Variables

Name Description

Protected variable

TArray< FActorS...

 

ActorDrags

Protected variable

TArray< TWeakOb...

 

Actors

Protected variable

bool

 

bCtrlPressedWhenStarted

Protected variable

bool

 

bGizmoBeingDragged

Protected variable

bool

 

bManipulatorMadeChange

Protected variable

bool

 

bPickingPivotLocation

Protected variable

bool

 

bShiftPressedWhenStarted

Protected variable UProperty

TObjectPtr< USi...

 

ClickBehavior

Protected variable

TArray< FContro...

 

ControlRigDrags

Protected variable

TArray< TWeakOb...

 

ControlRigs

Protected variable

int32

 

CtrlModifierId

Protected variable

UInteractiveGiz...

 

GizmoManager

Protected variable

FTransform

 

GizmoTransform

Protected variable

ULevelSequence ...

 

LevelSequence

Since we are selection based we can cache this

Protected variable

FDelegateHandle

 

OnEditorSelectionChangedHandle

Protected variable

TWeakPtr< ISequ...

 

SequencerPtr

Protected variable

FTransform

 

StartDragTransform

Protected variable

UWorld *

 

TargetWorld

Protected variable

int32

 

TransactionIndex

Protected variable UProperty

TObjectPtr< UCo...

 

TransformGizmo

Protected variable UProperty

TObjectPtr< UTr...

 

TransformProxy

Functions

Name Description

Protected function

void

 

DeactivateMe()

Selection delegates

Protected function

FInputRayHit

 

FindRayHit

(
    const FRay& WorldRay,
    FVector& HitPos
)

Protected function

void

 

GizmoTransformChanged

(
    UTransformProxy* Proxy,
    FTransform Transform
)

Callbacks we'll receive from the gizmo proxy.

Protected function

void

 

GizmoTransformEnded

(
    UTransformProxy* Proxy
)

Protected function

void

 

GizmoTransformStarted

(
    UTransformProxy* Proxy
)

Protected function

void

 

HandleControlSelected

(
    UControlRig* Subject,
    FRigControlElement* InControl,
    bool bSelected
)

Protected function

void

 

OnEditorSelectionChanged

(
    UObject* NewSelection
)

Protected function

void

 

RemoveDelegates()

Protected function

void

 

SaveLastSelected()

Protected function

void

 

SavePivotTransforms()

Handle Selection and Pivot Location.

Protected function

bool

 

SetGizmoBasedOnSelection

(
    bool bUseSaved
)

Public function Virtual

void

 

SetWorld

(
    UWorld* World,
    UInteractiveGizmoManager* Gizm...
)

Protected function

void

 

UpdateGizmoTransform()

Protected function

void

 

UpdateGizmoVisibility()

Protected function

void

 

UpdateTransformAndSelectionOnEntering()

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

 

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

Overridden from IClickBehaviorTarget

Name Description

Public function Virtual

FInputRayHit

 

IsHitByClick

(
    const FInputDeviceRay& ClickPos
)

Test if target is hit by a click

Public function Virtual

void

 

OnClicked

(
    const FInputDeviceRay& ClickPos
)

Notify Target that click ocurred

Overridden from IBaseSequencerAnimTool

Name Description

Public function Virtual Const

bool

 

ProcessCommandBindings

(
    const FKey Key,
    const bool bRepeat
)

IBaseSequencerAnimTool.

Constants