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

Select Skin
Light
Dark

Welcome to the new Unreal Engine 4 Documentation site!

We're working on lots of new features including a feedback system so you can tell us how we are doing. It's not quite ready for use in the wild yet, so head over to the Documentation Feedback forum to tell us about this page or call out any issues you are encountering in the meantime.

We'll be sure to let you know when the new system is up and running.

Post Feedback