Navigation
API > API/Editor > API/Editor/MovieSceneTools
Track Editor Thumbnail, which keeps a Texture to be displayed by a viewport.
| Name | FTrackEditorThumbnail |
| Type | class |
| Header File | /Engine/Source/Editor/MovieSceneTools/Public/TrackEditorThumbnail/TrackEditorThumbnail.h |
| Include Path | #include "TrackEditorThumbnail/TrackEditorThumbnail.h" |
Syntax
class FTrackEditorThumbnail :
public ISlateViewport ,
public TSharedFromThis< FTrackEditorThumbnail >
Inheritance Hierarchy
- FSharedFromThisBase → TSharedFromThis → FTrackEditorThumbnail
Implements Interfaces
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FTrackEditorThumbnail
(
const FOnThumbnailDraw& InOnDraw, |
Create and initialize a new instance. | TrackEditorThumbnail/TrackEditorThumbnail.h |
Destructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual ~FTrackEditorThumbnail() |
Virtual destructor. | TrackEditorThumbnail/TrackEditorThumbnail.h |
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| bHasFinishedDrawing | FThreadSafeBool | True when this thumbnail has been drawn, false otherwise | TrackEditorThumbnail/TrackEditorThumbnail.h | |
| bIgnoreAlpha | bool | True to ignore alpha on this thumbnail | TrackEditorThumbnail/TrackEditorThumbnail.h | |
| SortOrder | int32 | Sort order for this thumbnail | TrackEditorThumbnail/TrackEditorThumbnail.h |
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| DesiredSize | FIntPoint | The desired size of the thumbnail on the actual UI (Not necessarily the same size as the texture) | TrackEditorThumbnail/TrackEditorThumbnail.h | |
| FadeInCurve | FCurveSequence | Fade curve to display while the thumbnail is redrawing. | TrackEditorThumbnail/TrackEditorThumbnail.h | |
| OnDraw | FOnThumbnailDraw | Delegate to use to draw the thumbnail. | TrackEditorThumbnail/TrackEditorThumbnail.h | |
| Position | double | The position we should actually render (within the above time range). | TrackEditorThumbnail/TrackEditorThumbnail.h | |
| ThumbnailRenderTarget | FSlateTextureRenderTarget2DResource * | The texture render target used for 3D rendering on to the texture. May be null. | TrackEditorThumbnail/TrackEditorThumbnail.h | |
| ThumbnailTexture | FSlateTexture2DRHIRef * | The Texture RHI that holds the thumbnail. | TrackEditorThumbnail/TrackEditorThumbnail.h | |
| TimeRange | TRange< double > | Where in time this thumbnail is a rendering of. | TrackEditorThumbnail/TrackEditorThumbnail.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void AssignFrom
(
TSharedRef< FSlateTextureData, ESPMode::ThreadSafe > InTextureData |
Assign this thumbnail from a slate texture. | TrackEditorThumbnail/TrackEditorThumbnail.h | |
void DestroyTexture() |
Destroy the texture on the next tick | TrackEditorThumbnail/TrackEditorThumbnail.h | |
void DrawThumbnail() |
Renders the thumbnail to the texture. | TrackEditorThumbnail/TrackEditorThumbnail.h | |
FIntPoint GetDesiredSize() |
Get the desired size for this thumbnail on the UI | TrackEditorThumbnail/TrackEditorThumbnail.h | |
double GetEvalPosition() |
Get the time at which this thumbnail should be drawn | TrackEditorThumbnail/TrackEditorThumbnail.h | |
float GetFadeInCurve() |
Gets the curve for fading in the thumbnail. | TrackEditorThumbnail/TrackEditorThumbnail.h | |
FSlateTextureRenderTarget2DResource * GetRenderTarget() |
Access the (potentially null) render target to be used for rendering onto this thumbnail | TrackEditorThumbnail/TrackEditorThumbnail.h | |
const TRange< double > GetTimeRange() |
Get the full time-range that this thumbnail occupies | TrackEditorThumbnail/TrackEditorThumbnail.h | |
void PlayFade() |
TrackEditorThumbnail/TrackEditorThumbnail.h | ||
void ResizeRenderTarget
(
const FIntPoint& InSize |
Ensure that this thumbnail has a render target of the specified size | TrackEditorThumbnail/TrackEditorThumbnail.h | |
void SetupFade
(
const TSharedRef< SWidget >& InWidget |
Prompt this thumbnail to fade in | TrackEditorThumbnail/TrackEditorThumbnail.h |
Overridden from ISlateViewport
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual FIntPoint GetSize() |
TrackEditorThumbnail/TrackEditorThumbnail.h | ||
virtual FSlateShaderResource * GetViewportRenderTargetTexture() |
TrackEditorThumbnail/TrackEditorThumbnail.h | ||
virtual bool RequiresVsync() |
TrackEditorThumbnail/TrackEditorThumbnail.h |