Language:
Discover
By Skill Level
By Category

FMouseDeltaTracker

Choose your OS:

Syntax

class FMouseDeltaTracker

Remarks

Keeps track of mouse movement deltas in the viewports.

Constructors

Destructors

Name Description

Public function

~FMouseDeltaTracker()

Functions

Name Description

Public function

void

 

AbsoluteTranslationConvertMouseToDragRot

(
    FSceneView * InView,
    FEditorViewportClient * InViewp...,
    FVector & OutDrag,
    FRotator & OutRotation,
    FVector & OutScale
)

Absolute Translation conversion from mouse position on the screen to widget axis movement/rotation.

Public function

void[UNREALED](API\Editor\UnrealEd\Commandlets\UNREALED_API_2)...

 

AddDelta

(
    FEditorViewportClient * InViewp...,
    FKey InKey,
    const int32 InDelta,
    bool InNudge
)

Adds delta movement into the tracker.

Public function

void[UNREALED](API\Editor\UnrealEd\Commandlets\UNREALED_API_2)...

 

ConvertMovementDeltaToDragRot

(
    FEditorViewportClient * InViewp...,
    FVector & InDragDelta,
    FVector & OutDrag,
    FRotator & OutRotation,
    FVector & OutScale
)

Converts the delta movement to drag/rotation/scale based on the viewport type or widget axis.

Public function

bool [UNREALE](API\Editor\UnrealEd\Commandlets\UNREALED_API_2)...

 

EndTracking

(
    FEditorViewportClient * InViewp...
)

Called when a mouse button has been released.

Public function

const FVecto ...

 

GetAbsoluteDelta()

Returns the absolute delta since dragging started.

Public function

const FVecto ...

 

GetAbsoluteDeltaSnapped()

Returns the absolute snapped delta since dragging started.

Public function

const FVecto ...

 

GetDelta()

Returns the current delta.

Public function

const FVecto ...

 

GetDeltaSnapped()

Returns the current snapped delta.

Public function

const FVecto ...

 

GetDragStartPos()

Returns the unsnapped start position of the current mouse drag.

Public function

const FVecto ...

 

GetRawDelta()

Returns the raw mouse delta in pixels since dragging started.

Public function

const FVecto ...

 

GetScreenDelta()

Returns the screen space delta since dragging started.

Public function

FWidget::EWi ...

 

GetTrackingWidgetMode()

The widget mode last time this tracker object started tracking

Public function

const bool

 

GetUsedDragModifier()

Returns if the user used a modifier to drag a selected item. (Rather than using a widget handle)

Public function

bool

 

HasReceivedDelta()

True if any mouse movement has happened since tracking started

Public function

void[UNREALED](API\Editor\UnrealEd\Commandlets\UNREALED_API_2)...

 

ReduceBy

(
    const FVector & In
)

Subtracts the specified value from End and EndSnapped.

Public function

void

 

Render3DDragTool

(
    const FSceneView * View,
    FPrimitiveDrawInterface * PDI
)

Renders the drag tool. Does nothing if no drag tool exists.

Public function

void

 

RenderDragTool

(
    const FSceneView * View,
    FCanvas * Canvas
)

Renders the drag tool. Does nothing if no drag tool exists.

Public function

void

 

ResetUsedDragModifier()

Resets the UsedDragModifier flag

Public function

void

 

SetExternalMovement()

Marks that something caused the equivalent of mouse dragging, but with other means (keyboard short cut, mouse wheel).

Public function

void[UNREALED](API\Editor\UnrealEd\Commandlets\UNREALED_API_2)...

 

StartTracking

(
    FEditorViewportClient * InViewp...,
    const int32 InX,
    const int32 InY,
    const FInputEventState & InInputSta...,
    bool bNudge,
    bool bResetDragToolState
)

Begin tracking at the specified location for the specified viewport.

Public function

bool

 

UsingDragTool()

True if a drag tool is being used by the tracker, false otherwise.

Public function

bool

 

WasExternalMovement()

True if something caused external movement of the mouse (keyboard, mouse wheel)

References

Module

UnrealEd

Header

Editor/UnrealEd/Public/MouseDeltaTracker.h