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.
| void FMotionVectorSimulation::ClearPreviousTransform | ( | USceneComponent * | Component | ) |
Clear the simulated previous transform for the specified component
| Component | The Component to clear the previous transform for |
|
static |
Access the singleton instance for motion vector simulation
| 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.
| Component | The Component to retrieve a previous transform for |
| bool FMotionVectorSimulation::GetPreviousTransform | ( | USceneComponent * | Component, |
| FTransform * | OutTransform | ||
| ) | const |
Check if the specified scene component has a simulated transform, setting the specified transform if so.
| Component | The Component to retrieve a previous transform for |
| OutTransform | A valid (non-null) pointer to a transform to receive the simulated transform if possible. |
|
static |
Check whether motion vector simulation is enabled.
When disabled, no transforms will be returned.
| void FMotionVectorSimulation::SetPreviousTransform | ( | USceneComponent * | Component, |
| const FTransform & | SimulatedPreviousTransform | ||
| ) |
Assign a simulated previous frame transform for the specified component.
Overwrites any existing simulated transform.
| Component | The Component to assign the previous transform to |
| SimulatedPreviousTransform | The simulated transform that this component had on the last frame |