Navigation
API > API/Editor > API/Editor/SequencerCore
Utility class for efficiently drawing large numbers of keys on a track lane.
| Name | FKeyRenderer |
| Type | struct |
| Header File | /Engine/Source/Editor/SequencerCore/Public/MVVM/Views/KeyRenderer.h |
| Include Path | #include "MVVM/Views/KeyRenderer.h" |
Syntax
struct FKeyRenderer
Structs
| Name | Remarks |
|---|---|
| FCachedKeyBar | Cached parameters for drawing a single key |
| FCachedKeyDrawInformation | Container that caches the key positions for a given key area, along with those that overlap the current visible range |
| FKey | Cached parameters for drawing a single key |
| FKeyBar | |
| FKeysForModel |
Enums
Public
| Name | Remarks |
|---|---|
| EKeyBarRenderingFlags | |
| EKeyRenderingFlags | Flag enum signifying states for a particular key or group of keys |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| KeyDrawInfo | TArray< FCachedKeyDrawInformation, TInlineAllocator< 1 > > | Array of cached draw info for each of the key areas that comprise this batch | MVVM/Views/KeyRenderer.h | |
| KeyWidthInFrames | FFrameTime | Cached width of a key in frames | MVVM/Views/KeyRenderer.h | |
| PrecomputedCurve | TArray< TTuple< double, double > > | Computed final draw curve info | MVVM/Views/KeyRenderer.h | |
| PrecomputedKeyBars | TArray< FCachedKeyBar > | Computed final draw info for key bars | MVVM/Views/KeyRenderer.h | |
| PrecomputedKeys | TArray< FKey > | Computed final draw info for keys | MVVM/Views/KeyRenderer.h | |
| WeakViewModel | FWeakViewModelPtr | The model that we are drawing keys for | MVVM/Views/KeyRenderer.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
int32 Draw
(
const FKeyBatchParameters& Params, |
Draw this batch | MVVM/Views/KeyRenderer.h | |
int32 DrawCurve
(
const FKeyBatchParameters& Params, |
Draw this batch's curve | MVVM/Views/KeyRenderer.h | |
bool HasCurve() |
Returns true if this renderer has a curve, false otherwise | MVVM/Views/KeyRenderer.h | |
bool HitTestKeyBar
(
const FFrameTime& Time, |
Retrieve keys at the specified position | MVVM/Views/KeyRenderer.h | |
void HitTestKeys
(
const FFrameTime& Time, |
Retrieve keys at the specified position | MVVM/Views/KeyRenderer.h | |
void Initialize
(
const FViewModelPtr& InViewModel |
Initialize this renderer with a generic model | MVVM/Views/KeyRenderer.h | |
void Update
(
const FKeyBatchParameters& Params, |
Update any invalidated data required for drawing keys | MVVM/Views/KeyRenderer.h |