MovieScene evaluation context. 更多...
#include <MovieScenePlayback.h>
类 FMovieSceneEvaluationRange 继承关系图:Public 成员函数 | |
| FMovieSceneEvaluationRange (FFrameTime InCurrentTime, FFrameTime InPreviousTime, FFrameRate InFrameRate, bool bInclusivePreviousTime=false) | |
| Construct this range from 2 times, and whether the range should include the previous time or not | |
| FMovieSceneEvaluationRange (FFrameTime InTime, FFrameRate InFrameRate) | |
| Construct this range from a single fixed time | |
| FMovieSceneEvaluationRange (TRange< FFrameTime > InRange, FFrameRate InFrameRate, EPlayDirection InDirection) | |
| Construct this range from a raw range and a direction | |
| FORCEINLINE FFrameTime | GetDelta () const |
| Get the absolute amount of time that has passed since the last update (will always be >= 0) | |
| FORCEINLINE EPlayDirection | GetDirection () const |
| Get the direction to evaluate our range | |
| FORCEINLINE TRange< FFrameNumber > | GetFrameNumberRange () const |
| Get the range of frame numbers traversed over this evaluation range, not including partial frames | |
| FORCEINLINE FFrameRate | GetFrameRate () const |
| Get the framerate that this context's times are in 更多... | |
| FORCEINLINE FFrameTime | GetOffsetTime (FFrameTime InOffset) const |
| Get the current time offset by the specified amount in the direction of play | |
| FORCEINLINE FFrameTime | GetPreviousTime () const |
| Get the previous time of evaluation. 更多... | |
| FORCEINLINE TRange< FFrameTime > | GetRange () const |
| Get the range that we should be evaluating | |
| FORCEINLINE FFrameTime | GetTime () const |
| Get the current time of evaluation. | |
| TRange< FFrameNumber > | GetTraversedFrameNumberRange () const |
| Get the range of frame numbers traversed over this evaluation range by flooring the lower bound, and ceiling the upper bound. 更多... | |
| FORCEINLINE void | OverrideTime (FFrameNumber InTimeOverride) |
| Override the time that we're actually evaluating at | |
静态 Public 成员函数 | |
| static TRange< FFrameTime > | NumberRangeToTimeRange (const TRange< FFrameNumber > &InFrameTimeRange) |
| Convert a frame number range to a frame time range | |
| static TRange< FFrameNumber > | TimeRangeToNumberRange (const TRange< FFrameTime > &InFrameTimeRange) |
| Convert a frame time range to a frame number range comprising all the frame numbers traversed in the range | |
Protected 属性 | |
| FFrameRate | CurrentFrameRate |
| The framerate of the current sequence. | |
| EPlayDirection | Direction |
| Whether to evaluate the range forwards, or backwards | |
| TRange< FFrameTime > | EvaluationRange |
| The range to evaluate | |
| FFrameNumber | TimeOverride |
| Overridden current time (doesn't manipulate the actual evaluated range) | |
MovieScene evaluation context.
Should remain bitwise copyable, and contain no external state since this has the potential to be used on a thread
|
inline |
Get the framerate that this context's times are in
|
inline |
Get the previous time of evaluation.
Should not generally be used. Prefer GetRange instead.
| TRange< FFrameNumber > FMovieSceneEvaluationRange::GetTraversedFrameNumberRange | ( | ) | const |
Get the range of frame numbers traversed over this evaluation range by flooring the lower bound, and ceiling the upper bound.
For example: a time range of [1.5, 5.6] will yield the equivalent of [1, 6). A time range of (2.0, 2.9) will yield the equivalent of [2,3).