engine
 
载入中...
搜索中...
未找到
Public 成员函数 | 静态 Public 成员函数 | 所有成员列表
FMotionVectorSimulation类 参考

Singleton class used for optionally overriding previous transforms for motion vector computation. 更多...

#include <MotionVectorSimulation.h>

+ 类 FMotionVectorSimulation 继承关系图:

Public 成员函数

void ClearPreviousTransform (USceneComponent *Component)
 Clear the simulated previous transform for the specified component 更多...
 
TOptional< FTransform > GetPreviousTransform (USceneComponent *Component) const
 Check if the specified scene component has a simulated transform and return the result as an optional transform. 更多...
 
bool GetPreviousTransform (USceneComponent *Component, FTransform *OutTransform) const
 Check if the specified scene component has a simulated transform, setting the specified transform if so. 更多...
 
void SetPreviousTransform (USceneComponent *Component, const FTransform &SimulatedPreviousTransform)
 Assign a simulated previous frame transform for the specified component. 更多...
 
- Public 成员函数 继承自 FTickableGameObject
 FTickableGameObject ()
 Registers this instance with the static array of tickable objects. 更多...
 
virtual bool IsTickableInEditor () const
 Used to determine whether the object should be ticked in the editor. 更多...
 
virtual bool IsTickableWhenPaused () const
 Used to determine if an object should be ticked when the game is paused. 更多...
 
virtual ~FTickableGameObject ()
 Removes this instance from the static array of tickable objects.
 
- Public 成员函数 继承自 FTickableObjectBase
virtual TStatId GetStatId () const =0
 return the stat id to use for this tickable
 
virtual ETickableTickType GetTickableTickType () const
 Virtual that can be overloaded by the inheriting class. 更多...
 
virtual bool IsTickable () const
 Virtual that can be overloaded by the inheriting class. 更多...
 
virtual void Tick (float DeltaTime)=0
 Pure virtual that must be overloaded by the inheriting class. 更多...
 
- Public 成员函数 继承自 FUObjectArray::FUObjectDeleteListener
virtual void NotifyUObjectDeleted (const class UObjectBase *Object, int32 Index)=0
 Provides notification that a UObjectBase has been removed from the uobject array 更多...
 
virtual void OnUObjectArrayShutdown ()=0
 Called when UObject Array is being shut down, this is where all listeners should be removed from it
 

静态 Public 成员函数

static FMotionVectorSimulation & Get ()
 Access the singleton instance for motion vector simulation 更多...
 
static bool IsEnabled ()
 Check whether motion vector simulation is enabled. 更多...
 

详细描述

Singleton class used for optionally overriding previous transforms for motion vector computation.

This predominantly used by Sequencer on camera cut frames to forcibly inform the renderer of simulated trajectories for primitive components and cameras. Transforms are stored in an unintrusive sparse map per-component to avoid paying a memory cost for all components. Simulated transforms are only valid for the frame that they were added, and are removed on a subsequent tick.

成员函数说明

◆ ClearPreviousTransform()

void FMotionVectorSimulation::ClearPreviousTransform ( USceneComponent *  Component)

Clear the simulated previous transform for the specified component

参数
ComponentThe Component to clear the previous transform for

◆ Get()

static FMotionVectorSimulation & FMotionVectorSimulation::Get ( )
static

Access the singleton instance for motion vector simulation

返回
the singleton instance

◆ GetPreviousTransform() [1/2]

TOptional< FTransform > FMotionVectorSimulation::GetPreviousTransform ( USceneComponent *  Component) const

Check if the specified scene component has a simulated transform and return the result as an optional transform.

注解
: Previous simulated transforms are only valid for the frame on which they were added, and are removed on the next frame
参数
ComponentThe Component to retrieve a previous transform for
返回
An optional transform that is set if the specified component has a previous simulated transform, otherwise an empty optional.

◆ GetPreviousTransform() [2/2]

bool FMotionVectorSimulation::GetPreviousTransform ( USceneComponent *  Component,
FTransform *  OutTransform 
) const

Check if the specified scene component has a simulated transform, setting the specified transform if so.

注解
: Previous simulated transforms are only valid for the frame on which they were added, and are removed on the next frame
参数
ComponentThe Component to retrieve a previous transform for
OutTransformA valid (non-null) pointer to a transform to receive the simulated transform if possible.
返回
True if OutTransform was overwritten with a valid transform, false otherwise.

◆ IsEnabled()

static bool FMotionVectorSimulation::IsEnabled ( )
static

Check whether motion vector simulation is enabled.

When disabled, no transforms will be returned.

返回
Whether motion vector simulation is currently enabled or not.

◆ SetPreviousTransform()

void FMotionVectorSimulation::SetPreviousTransform ( USceneComponent *  Component,
const FTransform &  SimulatedPreviousTransform 
)

Assign a simulated previous frame transform for the specified component.

Overwrites any existing simulated transform.

注解
: Previous simulated transforms are only valid for the frame on which they were added, and are removed on the next frame
参数
ComponentThe Component to assign the previous transform to
SimulatedPreviousTransformThe simulated transform that this component had on the last frame

该类的文档由以下文件生成: