FCurveEditorScreenSpaceV

Utility struct used for converting to/from curve editor screen space

Choose your operating system:

Windows

macOS

Linux

Inheritance Hierarchy

FCurveEditorScreenSpaceV

FCurveEditorScreenSpace

References

Module

CurveEditor

Header

/Engine/Source/Editor/CurveEditor/Public/CurveEditorScreenSpace.h

Include

#include "CurveEditorScreenSpace.h"

Syntax

struct FCurveEditorScreenSpaceV

Remarks

Utility struct used for converting to/from curve editor screen space

Constructors

Name Description

Public function

FCurveEditorScreenSpaceV

(
    float InPixelHeight,
    double InOutputMin,
    double InOutputMax
)

Construction from a physical size, and input/output range

Functions

Name Description

Public function Const

double

 

GetOutputMax()

Get the maximum output value displayed on the screen

Public function Const

double

 

GetOutputMin()

Get the minimum output value displayed on the screen

Public function Const

float

 

GetPhysicalHeight()

Get the physical height of the screen

Public function Const

float

 

PixelsPerOutput()

Retrieve the number of slate units per output value

Public function Const

double

 

ScreenToValue

(
    float ScreenPosition
)

Convert a vertical screen position in slate units to a value

Public function Const

FCurveEditor...

 

ToCurveSpace

(
    const FTransform2D& CurveTransform
)

Transform this screen space into a curve space using the specified transform

Public function Const

float

 

ValueToScreen

(
    double InValue
)

Convert a value to a vertical screen position in slate units