FSequencerTimeSliderController

A time slider controller for sequencer Draws and manages time data for a Sequencer

Windows
MacOS
Linux

Inheritance Hierarchy

ITimeSliderController

TSharedFromThis

FSequencerTimeSliderController

References

Module

Sequencer

Header

/Engine/Source/Editor/Sequencer/Public/SequencerTimeSliderController.h

Include

#include "SequencerTimeSliderController.h"

Syntax

class FSequencerTimeSliderController :
    public ITimeSliderController,
    public TSharedFromThis< FSequencerTimeSliderController >

Remarks

A time slider controller for sequencer Draws and manages time data for a Sequencer

Constructors

Name Description

Public function

FSequencerTimeSliderController

(
    const FTimeSliderArgs& InArgs,
    TWeakPtr< FSequencer > InWeakSequen...
)

Functions

Name Description

Public function Virtual

void

 

ClampViewRange

(
    double& NewRangeMin,
    double& NewRangeMax
)

Clamp the given range to the clamp range

Public function Const

float

 

DetermineOptimalSpacing

(
    float InPixelsPerInput,
    uint32 MinTick,
    float MinTickSpacing
)

Determines the optimal spacing between tick marks in the slider for a given pixel density Increments until a minimum amount of slate units specified by MinTick is reached

Public function

void

 

PanByDelta

(
    float InDelta
)

Pan the range by a given delta

Public function

bool

 

ZoomByDelta

(
    float InDelta,
    float ZoomBias
)

Zoom the range by a given delta.

Overridden from ITimeSliderController

Name Description

Public function Virtual Const

FAnimatedRan...

 

GetClampRange()

Get the current clamp range for this controller in seconds.

Public function Virtual Const

FFrameRate

 

GetDisplayRate()

End ITimeSliderController Interface Get the current play rate for this controller

Public function Virtual Const

TRange< FFra...

 

GetPlayRange()

Get the current play range for this controller

Public function Virtual Const

FFrameTime

 

GetScrubPosition()

Get the current time for the Scrub handle which indicates what range is being evaluated.

Public function Virtual Const

TRange< FFra...

 

GetSelectionRange()

Get the selection range

Public function Virtual Const

FFrameRate

 

GetTickResolution()

Get the current tick resolution for this controller

Public function Virtual Const

FAnimatedRan...

 

GetViewRange()

Get the current view range for this controller

Public function Virtual Const

FCursorReply

 

OnCursorQuery

(
    TSharedRef< const SWidget > WidgetO...,
    const FGeometry& MyGeometry,
    const FPointerEvent& CursorEvent
)

Public function Virtual Const

int32

 

OnPaintTimeSlider

(
    bool bMirrorLabels,
    const FGeometry& AllottedGeometry,
    const FSlateRect& MyCullingRect,
    FSlateWindowElementList& OutDrawEl...,
    int32 LayerId,
    const FWidgetStyle& InWidgetStyle,
    bool bParentEnabled
)

ITimeSliderController Interface

Public function Virtual Const

int32

 

OnPaintViewArea

(
    const FGeometry& AllottedGeometry,
    const FSlateRect& MyCullingRect,
    FSlateWindowElementList& OutDrawEl...,
    int32 LayerId,
    bool bEnabled,
    const FPaintViewAreaArgs& Args
)

Draws major tick lines in the section view

Public function Virtual

void

 

SetClampRange

(
    double NewRangeMin,
    double NewRangeMax
)

Set a new clamp range based on a min, max

Public function Virtual

void

 

SetPlayRange

(
    FFrameNumber RangeStart,
    int32 RangeDuration
)

Set a new playback range based on a min, max

Public function Virtual

void

 

SetScrubPosition

(
    FFrameTime InTime
)

Get the current time for the Scrub handle which indicates what range is being evaluated.

Public function Virtual

void

 

SetSelectionRange

(
    const TRange< FFrameNumber >& NewR...
)

Set a new selection range

Public function Virtual

void

 

SetViewRange

(
    double NewRangeMin,
    double NewRangeMax,
    EViewRangeInterpolation Interpolati...
)

Set a new range based on a min, max and an interpolation mode

Overridden from ISequencerInputHandler

Name Description

Public function Virtual

FReply

 

OnMouseButtonDown

(
    SWidget& WidgetOwner,
    const FGeometry& MyGeometry,
    const FPointerEvent& MouseEvent
)

Public function Virtual

FReply

 

OnMouseButtonUp

(
    SWidget& WidgetOwner,
    const FGeometry& MyGeometry,
    const FPointerEvent& MouseEvent
)

Public function Virtual

FReply

 

OnMouseMove

(
    SWidget& WidgetOwner,
    const FGeometry& MyGeometry,
    const FPointerEvent& MouseEvent
)

Public function Virtual

FReply

 

OnMouseWheel

(
    SWidget& WidgetOwner,
    const FGeometry& MyGeometry,
    const FPointerEvent& MouseEvent
)

Classes

Name

Description

Public struct

FDrawTickArgs

Public struct

FScrubberMetrics

Public struct

FScrubRangeToScreen

Utility struct for converting between scrub range space and local/absolute screen space

Enums

Name

Description

Private enum

DragType

If we are dragging a scrubber or dragging to set the time range

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