engine
 
载入中...
搜索中...
未找到
Public 成员函数 | 静态 Public 成员函数 | Public 属性 | 所有成员列表
FFrameRate结构体 参考

A frame rate represented as a fraction comprising 2 integers: a numerator (number of frames), and a denominator (per second) 更多...

#include <FrameRate.h>

被 FLiveLinkFrameRate 继承.

Public 成员函数

double AsDecimal () const
 Get the decimal representation of this framerate 更多...
 
FFrameNumber AsFrameNumber (double InTimeSeconds) const
 Convert the specified time in seconds to a frame number by rounding down to the nearest integer. 更多...
 
FFrameTime AsFrameTime (double InTimeSeconds) const
 Convert the specified time in seconds to a frame number by rounding down to the nearest integer. 更多...
 
double AsInterval () const
 Get the decimal representation of this framerate's interval 更多...
 
double AsSeconds (FFrameTime FrameNumber) const
 Convert the specified frame number to a floating-point number of seconds based on this framerate 更多...
 
CORE_API bool ComputeGridSpacing (const float PixelsPerSecond, double &OutMajorInterval, int32 &OutMinorDivisions, float MinTickPx=30.f, float DesiredMajorTickPx=120.f) const
 Compute a desirable grid spacing for the specified screen units 更多...
 
 FFrameRate ()
 Default construction to a frame rate of 60000 frames per second (0.0166 ms)
 
bool IsFactorOf (FFrameRate Other) const
 Check whether this frame rate is a factor of another
 
bool IsMultipleOf (FFrameRate Other) const
 Check whether this frame rate is a multiple of another
 
bool IsValid () const
 Verify that this frame rate is valid to use
 
CORE_API double MaxSeconds () const
 Get the maximum number of seconds representable with this framerate
 
FFrameRate Reciprocal () const
 Get the reciprocal of this frame rate
 
CORE_API FText ToPrettyText () const
 Convert this frame rate to a prettified text string. 更多...
 

静态 Public 成员函数

static FFrameTime Snap (FFrameTime SourceTime, FFrameRate SourceRate, FFrameRate SnapToRate)
 Snap a time specified in one framerate, to another 更多...
 
static FFrameTime TransformTime (FFrameTime SourceTime, FFrameRate SourceRate, FFrameRate DestinationRate)
 Convert the specified time from one framerate to another framerate 更多...
 

Public 属性

int32 Denominator
 The denominator of the framerate represented as a number of frames per second (e.g. 更多...
 
int32 Numerator
 The numerator of the framerate represented as a number of frames per second (e.g. 更多...
 

详细描述

A frame rate represented as a fraction comprising 2 integers: a numerator (number of frames), and a denominator (per second)

成员函数说明

◆ AsDecimal()

double FFrameRate::AsDecimal ( ) const
inline

Get the decimal representation of this framerate

返回
The number of frames per second

◆ AsFrameNumber()

FFrameNumber FFrameRate::AsFrameNumber ( double  InTimeSeconds) const
inline

Convert the specified time in seconds to a frame number by rounding down to the nearest integer.

参数
InTimeSecondsThe time to convert in seconds
返回
A frame number that represents the supplied time. Rounded down to the nearest integer.

◆ AsFrameTime()

FFrameTime FFrameRate::AsFrameTime ( double  InTimeSeconds) const
inline

Convert the specified time in seconds to a frame number by rounding down to the nearest integer.

参数
InTimeSecondsThe time to convert in seconds
返回
A frame number that represents the supplied time. Rounded down to the nearest integer.

◆ AsInterval()

double FFrameRate::AsInterval ( ) const
inline

Get the decimal representation of this framerate's interval

返回
The time in seconds for a single frame under this frame rate

◆ AsSeconds()

double FFrameRate::AsSeconds ( FFrameTime  FrameNumber) const
inline

Convert the specified frame number to a floating-point number of seconds based on this framerate

参数
FrameNumberThe frame number to convert
返回
The number of seconds that the specified frame number represents

◆ ComputeGridSpacing()

CORE_API bool FFrameRate::ComputeGridSpacing ( const float  PixelsPerSecond,
double &  OutMajorInterval,
int32 &  OutMinorDivisions,
float  MinTickPx = 30.f,
float  DesiredMajorTickPx = 120.f 
) const

Compute a desirable grid spacing for the specified screen units

参数
PixelsPerSecondThe number of pixels representing a second of time
OutMajorInterval(Out) The interval in seconds at which to draw major grid lines
OutMinorDivisions(Out) The number of divisions to draw between major tick lines
MinTickPx(Optional) The smallest size in pixels that is desirable between ticks
DesiredMajorTickPx(Optional) The desired size to compute major tick lines from
返回
True if a valid grid spacing was computed, false otherwise.

◆ Snap()

FFrameTime FFrameRate::Snap ( FFrameTime  SourceTime,
FFrameRate  SourceRate,
FFrameRate  SnapToRate 
)
inlinestatic

Snap a time specified in one framerate, to another

参数
SourceTimeThe frame number to convert
SourceRateThe source frame rate
SnapToRateThe destination frame rate
返回
A frame time in the destination frame rate

◆ ToPrettyText()

CORE_API FText FFrameRate::ToPrettyText ( ) const

Convert this frame rate to a prettified text string.

注解
: Does not check against decorated frame rate names in FCommonFrameRates

◆ TransformTime()

FFrameTime FFrameRate::TransformTime ( FFrameTime  SourceTime,
FFrameRate  SourceRate,
FFrameRate  DestinationRate 
)
inlinestatic

Convert the specified time from one framerate to another framerate

参数
SourceTimeThe frame number to convert
SourceRateThe source frame rate
DestinationRateThe destination frame rate
返回
A frame time in the destination frame rate

类成员变量说明

◆ Denominator

int32 FFrameRate::Denominator

The denominator of the framerate represented as a number of frames per second (e.g.

1 for 60 fps)

◆ Numerator

int32 FFrameRate::Numerator

The numerator of the framerate represented as a number of frames per second (e.g.

60 for 60 fps)


该结构体的文档由以下文件生成: