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

MovieScene evaluation context. 更多...

#include <MovieScenePlayback.h>

+ 类 FMovieSceneContext 继承关系图:

Public 成员函数

FORCEINLINE void ApplySectionPrePostRoll (bool bInLeadingRegion, bool bInTrailingRegion)
 Apply section pre and post roll based on whether we're in the leading (preroll), or trailing (postroll) region for the section, and the current play direction 更多...
 
FMovieSceneContext Clamp (TRange< FFrameTime > NewRange) const
 Clamp the current evaluation range to the specified range (in the current transform space)
 
 FMovieSceneContext ()
 Construction from an evaluation range, and a current status
 
 FMovieSceneContext (FMovieSceneEvaluationRange InRange)
 Construction from an evaluation range, and a current status
 
 FMovieSceneContext (FMovieSceneEvaluationRange InRange, EMovieScenePlayerStatus::Type InStatus)
 Construction from an evaluation range, and a current status
 
int32 GetHierarchicalBias () const
 Get the hierarchical bias for the current context 更多...
 
FFrameNumber GetPostRollStartFrame () const
 Access the time at which post roll started (or in other terms: when evaluation stopped) 更多...
 
FFrameNumber GetPreRollEndFrame () const
 Access the time at which preroll will stop, and evaluation will commence 更多...
 
FORCEINLINE const FMovieSceneSequenceTransform & GetRootToSequenceTransform () const
 Get the current root to sequence transform for the current sub sequence
 
FORCEINLINE const FMovieSceneWarpCounter & GetRootToSequenceWarpCounter () const
 Get the current root to sequence warp counter for the current sub sequence
 
FORCEINLINE FMovieSceneTimeTransform GetSequenceToRootTransform () const
 Get the inverse transform of the current sub sequence, to transform local times back to root times.
 
FORCEINLINE EMovieScenePlayerStatus::Type GetStatus () const
 Get the playback status
 
FORCEINLINE bool HasJumped () const
 Check whether we've just jumped to a different time
 
bool HasPostRollStartTime () const
 Check whether we have an externally supplied time at which postroll started. 更多...
 
bool HasPreRollEndTime () const
 Check whether we have an externally supplied time at which preroll will end. 更多...
 
bool IsPostRoll () const
 Check if we're in any kind of postroll (either postrolling section specifically, or as part of a sub-section) 更多...
 
bool IsPreRoll () const
 Check if we're in any kind of preroll (either prerolling section specifically, or as part of a sub-section) 更多...
 
FORCEINLINE bool IsSilent () const
 Check whether we're evaluating in silent mode (no audio or mutating eval)
 
void ReportOuterSectionRanges (TRange< FFrameNumber > InLeadingRange, TRange< FFrameNumber > InTrailingRange)
 Report the outer section pre and post roll ranges for the current context 更多...
 
FMovieSceneContext & SetHasJumped (bool bInHasJumped)
 Indicate that we've just jumped to a different time
 
void SetHierarchicalBias (int32 InHierarchicalBias)
 Get the hierarchical bias for the current context 更多...
 
FMovieSceneContext & SetIsSilent (bool bInIsSilent)
 Set the context to silent mode
 
FMovieSceneContext Transform (const FMovieSceneSequenceTransform &InTransform, FFrameRate NewFrameRate) const
 Transform this context to a different sub sequence space
 
- Public 成员函数 继承自 FMovieSceneEvaluationRange
 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
 

Protected 属性

bool bHasJumped: 1
 Whether this evaluation frame is happening as part of a large jump
 
bool bHasPostRollStartTime: 1
 True if the value of PrePostRollStartEndTime has been set, and refers to the time at which postroll started. 更多...
 
bool bHasPreRollEndTime: 1
 True if the value of PrePostRollStartEndTime has been set, and refers to the time at which preroll will end. 更多...
 
bool bSectionPostRoll: 1
 True if we should explicitly postroll the section. 更多...
 
bool bSectionPreRoll: 1
 True if we should explicitly preroll the section. 更多...
 
bool bSilent: 1
 Whether this evaluation should happen silently
 
int32 HierarchicalBias
 Hierachical bias. 更多...
 
FFrameNumber PrePostRollStartEndTime
 When bHasPreRollEndTime or bHasPostRollStartTime is true, this defines either the frame at which 'real' evaluation commences, or finished
 
FMovieSceneSequenceTransform RootToSequenceTransform
 The transform from the root sequence to the current sequence space
 
FMovieSceneWarpCounter RootToSequenceWarpCounter
 The current warp count for any sub-sequence in the current sequence's hierarchy
 
EMovieScenePlayerStatus::Type Status
 The current playback status
 
- Protected 属性 继承自 FMovieSceneEvaluationRange
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)
 

额外继承的成员函数

- 静态 Public 成员函数 继承自 FMovieSceneEvaluationRange
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
 

详细描述

MovieScene evaluation context.

Should remain bitwise copyable, and contain no external state since this has the potential to be used on a thread

成员函数说明

◆ ApplySectionPrePostRoll()

FORCEINLINE void FMovieSceneContext::ApplySectionPrePostRoll ( bool  bInLeadingRegion,
bool  bInTrailingRegion 
)
inline

Apply section pre and post roll based on whether we're in the leading (preroll), or trailing (postroll) region for the section, and the current play direction

参数
bInLeadingRegionWhether we are considered to be in the section's leading (aka preroll) region
bInTrailingRegionWhether we are considered to be in the section's trailing (aka postroll) region

◆ GetHierarchicalBias()

int32 FMovieSceneContext::GetHierarchicalBias ( ) const
inline

Get the hierarchical bias for the current context

返回
The current hierarchical bias

◆ GetPostRollStartFrame()

FFrameNumber FMovieSceneContext::GetPostRollStartFrame ( ) const
inline

Access the time at which post roll started (or in other terms: when evaluation stopped)

注解
: Only valid to call when HasPostRollStartTime() is true

◆ GetPreRollEndFrame()

FFrameNumber FMovieSceneContext::GetPreRollEndFrame ( ) const
inline

Access the time at which preroll will stop, and evaluation will commence

注解
: Only valid to call when HasPreRollEndTime() is true

◆ HasPostRollStartTime()

bool FMovieSceneContext::HasPostRollStartTime ( ) const
inline

Check whether we have an externally supplied time at which postroll started.

注解
When not set (and IsPostRoll() is true), preroll ends at either the start or end of section bounds, depending on play direction.

◆ HasPreRollEndTime()

bool FMovieSceneContext::HasPreRollEndTime ( ) const
inline

Check whether we have an externally supplied time at which preroll will end.

注解
When not set (and IsPreRoll() is true), preroll ends at either the start or end of section bounds, depending on play direction.

◆ IsPostRoll()

bool FMovieSceneContext::IsPostRoll ( ) const
inline

Check if we're in any kind of postroll (either postrolling section specifically, or as part of a sub-section)

注解
Play direction has already been considered in the calculation of this function, so needs no extra consideration.

◆ IsPreRoll()

bool FMovieSceneContext::IsPreRoll ( ) const
inline

Check if we're in any kind of preroll (either prerolling section specifically, or as part of a sub-section)

注解
Play direction has already been considered in the calculation of this function, so needs no extra consideration.

◆ ReportOuterSectionRanges()

void FMovieSceneContext::ReportOuterSectionRanges ( TRange< FFrameNumber >  InLeadingRange,
TRange< FFrameNumber >  InTrailingRange 
)
inline

Report the outer section pre and post roll ranges for the current context

参数
InLeadingRangeThe leading (preroll) range in front of the outer section, in the current transformation's time space
InTrailingRangeThe trailing (postroll) range at the end of the outer section, in the current transformation's time space

◆ SetHierarchicalBias()

void FMovieSceneContext::SetHierarchicalBias ( int32  InHierarchicalBias)
inline

Get the hierarchical bias for the current context

参数
InHierarchicalBiasThe current hierarchical bias

类成员变量说明

◆ bHasPostRollStartTime

bool FMovieSceneContext::bHasPostRollStartTime
protected

True if the value of PrePostRollStartEndTime has been set, and refers to the time at which postroll started.

Already reconciled with play direction.

◆ bHasPreRollEndTime

bool FMovieSceneContext::bHasPreRollEndTime
protected

True if the value of PrePostRollStartEndTime has been set, and refers to the time at which preroll will end.

Already reconciled with play direction.

◆ bSectionPostRoll

bool FMovieSceneContext::bSectionPostRoll
protected

True if we should explicitly postroll the section.

Already reconciled with play direction.

◆ bSectionPreRoll

bool FMovieSceneContext::bSectionPreRoll
protected

True if we should explicitly preroll the section.

Already reconciled with play direction.

◆ HierarchicalBias

int32 FMovieSceneContext::HierarchicalBias
protected

Hierachical bias.

Higher bias should take precedence.


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