Language:
Discover
By Skill Level
By Category

FTrackScaleInfo

Choose your OS:

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

float

 

GetTrackCenterY()

Public function

float

 

InputToLocalX

(
    float Input
)

Curve Input domain -> local Widget Space

Public function

float

 

LocalXToInput

(
    float ScreenX
)

Local Widget Space -> Curve Input domain.

Public function

float

 

LocalYToOutput

(
    float ScreenY
)

Local Widget Space -> Curve Output domain.

Public function

float

 

OutputToLocalY

(
    float Output
)

Curve Output domain -> local Widget Space

References

Module

UnrealEd

Header

Editor/UnrealEd/Public/SCurveEditor.h