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)
|
inline |
Get the decimal representation of this framerate
|
inline |
Convert the specified time in seconds to a frame number by rounding down to the nearest integer.
| InTimeSeconds | The time to convert in seconds |
|
inline |
Convert the specified time in seconds to a frame number by rounding down to the nearest integer.
| InTimeSeconds | The time to convert in seconds |
|
inline |
Get the decimal representation of this framerate's interval
|
inline |
Convert the specified frame number to a floating-point number of seconds based on this framerate
| FrameNumber | The frame number to convert |
| 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
| PixelsPerSecond | The 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 |
|
inlinestatic |
Snap a time specified in one framerate, to another
| SourceTime | The frame number to convert |
| SourceRate | The source frame rate |
| SnapToRate | The destination frame rate |
| CORE_API FText FFrameRate::ToPrettyText | ( | ) | const |
Convert this frame rate to a prettified text string.
|
inlinestatic |
Convert the specified time from one framerate to another framerate
| SourceTime | The frame number to convert |
| SourceRate | The source frame rate |
| DestinationRate | The destination frame rate |
| int32 FFrameRate::Denominator |
The denominator of the framerate represented as a number of frames per second (e.g.
1 for 60 fps)
| int32 FFrameRate::Numerator |
The numerator of the framerate represented as a number of frames per second (e.g.
60 for 60 fps)