Navigation
API > API/Plugins > API/Plugins/AnimDatabaseEditor
This is a timeline widget used by the Animation Database and other editors. Lots of this code is copy-pasted from the MLDeformer timeline, which itself is based off the sequencer timeline.
The main changes here are that the data model(s) (i.e. FTimelineModel and FTimelineTracksModel) are changed to be a bit more generic and not include anything application specific, and that the timeline is now working by default in terms of frames rather than time. This is more appropriate for the Animation Database and related editors since we use a fixed frame-rate and all frames and frame-ranges are using this same fixed frame-rate.
| Name | STimeline |
| Type | class |
| Header File | /Engine/Plugins/Experimental/Animation/AnimDatabase/Source/AnimDatabaseEditor/Public/SAnimDatabaseEditorTimeline.h |
| Include Path | #include "SAnimDatabaseEditorTimeline.h" |
Syntax
class STimeline : public SCompoundWidget
Inheritance Hierarchy
- FSharedFromThisBase → TSharedFromThis → SWidget → SCompoundWidget → STimeline
- FSlateControlledConstruction → SWidget → SCompoundWidget → STimeline
Structs
| Name | Remarks |
|---|---|
| FArguments |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| Model | TWeakPtr< FTimelineModel > | Timeline model. | SAnimDatabaseEditorTimeline.h | |
| NumericTypeInterface | TSharedPtr< INumericTypeInterface< double > > | Numeric Type interface for converting between frame numbers and display formats. | SAnimDatabaseEditorTimeline.h | |
| OutlinerFillCoefficient | float | Width ratio of the outliner | SAnimDatabaseEditorTimeline.h | |
| TimelineFillCoefficient | float | Width ratio of the timeline | SAnimDatabaseEditorTimeline.h | |
| TimeSliderController | TSharedPtr< FTimeSliderController > | The controller used for the time slider | SAnimDatabaseEditorTimeline.h | |
| TopTimeSlider | TSharedPtr< ITimeSlider > | The top time slider widget. | SAnimDatabaseEditorTimeline.h | |
| TracksModel | TWeakPtr< FTimelineTracksModel > | Tracks model. | SAnimDatabaseEditorTimeline.h | |
| TransportControls | TSharedPtr< STimelineTransportControls > | The anim timeline transport controls, which contains the forward, backward and step actions. | SAnimDatabaseEditorTimeline.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void Construct
(
const FArguments& InArgs, |
Construct this widget. | SAnimDatabaseEditorTimeline.h | |
bool GetGridMetrics
(
float PhysicalWidth, |
Compute a major grid interval and number of minor divisions to display. | SAnimDatabaseEditorTimeline.h | |
TSharedPtr< ITimeSliderController > GetTimeSliderController() |
Get the time slider controller. | SAnimDatabaseEditorTimeline.h | |
void SetModel
(
const TWeakPtr< FTimelineModel >& InModel, |
Sets the model(s) to use with this timeline widget | SAnimDatabaseEditorTimeline.h |
Public Virtual
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual FReply OnMouseButtonUp
(
const FGeometry& MyGeometry, |
Callback for mouse button up | SAnimDatabaseEditorTimeline.h |