FTrackScaleInfo

Utility struct for converting between curve space and local/absolute screen space.

Windows
MacOS
Linux

References

Module

UnrealEd

Header

/Engine/Source/Editor/UnrealEd/Public/SCurveEditor.h

Include

#include "SCurveEditor.h"

Syntax

struct FTrackScaleInfo

Remarks

Utility struct for converting between curve space and local/absolute screen space. The input domain is traditionally the time axis of the curve, and the output domain is traditionally the value axis.

Variables

Name Description

Public variable

float

 

PixelsPerInput

Public variable

float

 

PixelsPerOutput

Public variable

float

 

ViewInputRange

Public variable

float

 

ViewMaxInput

Public variable

float

 

ViewMaxOutput

Public variable

float

 

ViewMinInput

Public variable

float

 

ViewMinOutput

Public variable

float

 

ViewOutputRange

Public variable

FVector2D

 

WidgetSize

Constructors

Name Description

Public function

FTrackScaleInfo

(
    float InViewMinInput,
    float InViewMaxInput,
    float InViewMinOutput,
    float InViewMaxOutput,
    const FVector2D InWidgetSize
)

Functions

Name Description

Public function Const

float

 

GetTrackCenterY()

Public function Const

float

 

InputToLocalX

(
    float Input
)

Curve Input domain -> local Widget Space

Public function Const

float

 

LocalXToInput

(
    float ScreenX
)

Local Widget Space -> Curve Input domain.

Public function Const

float

 

LocalYToOutput

(
    float ScreenY
)

Local Widget Space -> Curve Output domain.

Public function Const

float

 

OutputToLocalY

(
    float Output
)

Curve Output domain -> local Widget Space

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