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

Structure used for movie scene evaluation templates contained within a track. 更多...

#include <MovieSceneEvalTemplate.h>

+ 类 FMovieSceneEvalTemplate 继承关系图:

Public 成员函数

virtual void Evaluate (const FMovieSceneEvaluationOperand &Operand, const FMovieSceneContext &Context, const FPersistentEvaluationData &PersistentData, FMovieSceneExecutionTokens &ExecutionTokens) const
 Evaluate this template, adding any execution tokens to the specified list 更多...
 
virtual void EvaluateSwept (const FMovieSceneEvaluationOperand &Operand, const FMovieSceneContext &Context, const TRange< FFrameNumber > &SweptRange, const FPersistentEvaluationData &PersistentData, FMovieSceneExecutionTokens &ExecutionTokens) const
 Evaluate this template over the given swept range, adding any execution tokens to the specified list. 更多...
 
 FMovieSceneEvalTemplate ()
 Default Constructor
 
EMovieSceneCompletionMode GetCompletionMode () const
 Check whether we should restore any pre-animated state that was supplied by this template when it is no longer evaluated 更多...
 
const UMovieSceneSection * GetSourceSection () const
 Get the source section from which this template originated 更多...
 
virtual void Initialize (const FMovieSceneEvaluationOperand &Operand, const FMovieSceneContext &Context, FPersistentEvaluationData &PersistentData, IMovieScenePlayer &Player) const
 Initialize this template, copying any data required for evaluation into the specified state block. 更多...
 
virtual void Interrogate (const FMovieSceneContext &Context, FMovieSceneInterrogationData &Container, UObject *BindingOverride) const
 Interrogate this template for its output. 更多...
 
virtual void Interrogate (const FMovieSceneContext &Context, TRange< FFrameNumber > SweptRange, FMovieSceneInterrogationData &Container, UObject *BindingOverride) const
 Interrogate this template for its output. 更多...
 
bool RequiresInitialization () const
 Check whether this template mandates Initialize being called. 更多...
 
void SetCompletionMode (EMovieSceneCompletionMode InCompletionMode)
 Set this template's completion mode 更多...
 
void SetSourceSection (const UMovieSceneSection *InSourceSection)
 Set the source section from which this template originated 更多...
 
- Public 成员函数 继承自 FMovieSceneEvalTemplateBase
 FMovieSceneEvalTemplateBase ()
 Default constructor
 
UScriptStruct & GetScriptStruct () const
 Access the most derived script struct type of this instance for serialization purposes
 
FORCEINLINE void OnBeginEvaluation (FPersistentEvaluationData &PersistentData, IMovieScenePlayer &Player) const
 Called before this template is evaluated for the first time, or since OnEndEvaluation has been called 更多...
 
FORCEINLINE void OnEndEvaluation (FPersistentEvaluationData &PersistentData, IMovieScenePlayer &Player) const
 Called after this template is no longer being evaluated 更多...
 
FORCEINLINE bool RequiresSetup () const
 Check whether this entity requires set up when it is first evaluated
 
FORCEINLINE bool RequiresTearDown () const
 Check whether this entity requires tear up when it no longer being evaluated
 
virtual void SetupOverrides ()
 Called after construction to enable overridden functions required by this type. 更多...
 
virtual ~FMovieSceneEvalTemplateBase ()
 Virtual destruction
 

Protected 类型

enum  EOverrideMask
 Enum evaluation flag structure defining which functions are to be called in implementations of this struct
 
- Protected 类型 继承自 FMovieSceneEvalTemplateBase
enum  EOverrideMask
 Base class flag mask that should be considered by any implementations of FMovieSceneEvalTemplateBase
 

Protected 成员函数

MOVIESCENE_API float EvaluateEasing (FFrameTime CurrentTime) const
 Evaluate this template's easing functions based on the specified time
 
- Protected 成员函数 继承自 FMovieSceneEvalTemplateBase
void EnableOverrides (uint8 OverrideFlag)
 Enable the overrides referred to by the specified flag mask
 
virtual UScriptStruct & GetScriptStructImpl () const
 Retrieve the script struct pertaining to the most-derived type of this instance. 更多...
 
virtual void Setup (FPersistentEvaluationData &PersistentData, IMovieScenePlayer &Player) const
 Called before this template is evaluated for the first time, or since OnEndEvaluation has been called. 更多...
 
virtual void TearDown (FPersistentEvaluationData &PersistentData, IMovieScenePlayer &Player) const
 Called after this template is no longer being evaluated. 更多...
 

Protected 属性

EMovieSceneCompletionMode CompletionMode
 Enumeration value signifying whether we should restore any animated state stored by this entity when this eval tempalte is no longer evaluated
 
TWeakObjectPtr< const UMovieSceneSection > SourceSectionPtr
 The section from which this template originates
 
- Protected 属性 继承自 FMovieSceneEvalTemplateBase
uint8 OverrideMask
 Mask of overridden properties - not serialized, but setup in SetupOverrides
 

详细描述

Structure used for movie scene evaluation templates contained within a track.

Typically these are defined as one per-section. Serialized into a FMovieSceneEvaluationTemplate contained within the sequence itself (for fast initialization at runtime). Templates are executed in a 3-phase algorithm: 1) Initialize: (opt-in) Called at the start of the frame. Able to access mutable state from the playback context. Used to initialize any persistent state required for the evaluation pass. 2) Evaluate: Potentially called on a thread. Should (where possible) perform all costly evaluation logic, accumulating into execution tokens which will be executed at a later time on the game thread. 3) Execute: Called on all previously submitted execution tokens to apply the evaluated state to the movie scene player

成员函数说明

◆ Evaluate()

virtual void FMovieSceneEvalTemplate::Evaluate ( const FMovieSceneEvaluationOperand &  Operand,
const FMovieSceneContext &  Context,
const FPersistentEvaluationData &  PersistentData,
FMovieSceneExecutionTokens &  ExecutionTokens 
) const
inlinevirtual

Evaluate this template, adding any execution tokens to the specified list

注解
Only called when the containing template has an evaluation method of EEvaluationMethod::Static This function should perform any expensive or costly evaluation logic required to calculate the final animated state. Potentially called on a thread, and as such has no access to the current evaluation environment.
参数
OperandUnique handle to the operand on which we are to operate. Only to be used as a reference, or forwarded throgh to an execution token.
ContextEvaluation context specifying the current evaluation time, sub sequence transform and other relevant information.
PersistentDataPersistent data store which can be used to access arbitrary data pertaining to the current template that should have been set up in initialize.
ExecutionTokensStack of execution tokens that will be used to apply animated state to the environment at a later time.

◆ EvaluateSwept()

virtual void FMovieSceneEvalTemplate::EvaluateSwept ( const FMovieSceneEvaluationOperand &  Operand,
const FMovieSceneContext &  Context,
const TRange< FFrameNumber > &  SweptRange,
const FPersistentEvaluationData &  PersistentData,
FMovieSceneExecutionTokens &  ExecutionTokens 
) const
inlinevirtual

Evaluate this template over the given swept range, adding any execution tokens to the specified list.

注解
Only called when the containing template has an evaluation method of EEvaluationMethod::Swept This function should perform any expensive or costly evaluation logic required to calculate the final animated state. Potentially called on a thread, and as such has no access to the current evaluation environment.
参数
OperandUnique handle to the operand on which we are to operate. Only to be used as a reference, or forwarded throgh to an execution token.
ContextEvaluation context specifying the current evaluation time, sub sequence transform and other relevant information.
SweptRangeThe range this is to be swept in this evaluation - always fully contained by the context's range
PersistentDataPersistent data store which can be used to access arbitrary data pertaining to the current template that should have been set up in initialize.
ExecutionTokensStack of execution tokens that will be used to apply animated state to the environment at a later time.

◆ GetCompletionMode()

EMovieSceneCompletionMode FMovieSceneEvalTemplate::GetCompletionMode ( ) const
inline

Check whether we should restore any pre-animated state that was supplied by this template when it is no longer evaluated

注解
Pre-animated state bound to evaluation templates is reference counted across all similar animation types for a given object. This ensures that pre-animated state restores correctly for overlapping templates.

◆ GetSourceSection()

const UMovieSceneSection * FMovieSceneEvalTemplate::GetSourceSection ( ) const
inline

Get the source section from which this template originated

返回
The source section from which this template originated

◆ Initialize()

virtual void FMovieSceneEvalTemplate::Initialize ( const FMovieSceneEvaluationOperand &  Operand,
const FMovieSceneContext &  Context,
FPersistentEvaluationData &  PersistentData,
IMovieScenePlayer &  Player 
) const
inlinevirtual

Initialize this template, copying any data required for evaluation into the specified state block.

注解
This function is intended to allow pre-frame set up, and should avoid mutating any state. Only called if EnableOverrides(RequiresInitializeFlag) has been called.
参数
OperandUnique handle to the operand on which we are to operate. May represent multiple objects. Resolve through IMovieScenePlayer::FindBoundObjects(Operand)
ContextEvaluation context specifying the current evaluation time, sub sequence transform and other relevant information.
PersistentDataPersistent data store which can be used to store arbitrary data pertaining to the current template that may be required in Evaluate(Swept)
PlayerThe movie scene player currently playing back this sequence

◆ Interrogate() [1/2]

virtual void FMovieSceneEvalTemplate::Interrogate ( const FMovieSceneContext &  Context,
FMovieSceneInterrogationData &  Container,
UObject *  BindingOverride 
) const
inlinevirtual

Interrogate this template for its output.

Should not have any side effects.

参数
ContextEvaluation context specifying the current evaluation time, sub sequence transform and other relevant information.
ContainerContainer to populate with the desired output from this track
BindingOverrideOptional binding to specify the object that is being animated by this track

◆ Interrogate() [2/2]

virtual void FMovieSceneEvalTemplate::Interrogate ( const FMovieSceneContext &  Context,
TRange< FFrameNumber >  SweptRange,
FMovieSceneInterrogationData &  Container,
UObject *  BindingOverride 
) const
inlinevirtual

Interrogate this template for its output.

Should not have any side effects.

参数
ContextEvaluation context specifying the current evaluation time, sub sequence transform and other relevant information.
SweptRangeThe range to sweep, where this template evaluates with 'swept' evaluation
ContainerContainer to populate with the desired output from this track
BindingOverrideOptional binding to specify the object that is being animated by this track

◆ RequiresInitialization()

bool FMovieSceneEvalTemplate::RequiresInitialization ( ) const
inline

Check whether this template mandates Initialize being called.

Defines whether a pointer to this track will be added to the initialization section of template evaluation.

返回
Boolean representing whether this template mandates Initialize being called

◆ SetCompletionMode()

void FMovieSceneEvalTemplate::SetCompletionMode ( EMovieSceneCompletionMode  InCompletionMode)
inline

Set this template's completion mode

注解
Pre-animated state bound to evaluation templates is reference counted across all similar animation types for a given object. This ensures that pre-animated state restores correctly for overlapping templates.

◆ SetSourceSection()

void FMovieSceneEvalTemplate::SetSourceSection ( const UMovieSceneSection *  InSourceSection)
inline

Set the source section from which this template originated

参数
SourceSectionThe source section

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