Navigation
API > API/Runtime > API/Runtime/ChaosVDData
References
| Module | ChaosVDData |
| Header | /Engine/Source/Runtime/Experimental/ChaosVDData/Public/ChaosVDRecording.h |
| Include | #include "ChaosVDRecording.h" |
Syntax
struct FChaosVDRecording
Remarks
Struct that represents a recorded Physics simulation. It is currently populated while analyzing a Trace session
Variables
| Type | Name | Description | |
|---|---|---|---|
| TArray< FChaosVDGameFrameData > | GameFrames | ||
| FChaosVDGeometryDataLoaded | GeometryDataLoaded | ||
| TMap< uint32, TSharedPtr< const Chaos::FImplicitObject > > | ImplicitObjects | Id to Ptr map of all shared geometry data required to visualize | |
| TMap< int32, TArray< FChaosVDSolverFrameData > > | RecordedFramesDataPerSolver | ||
| TMap< int32, TArray< int32 > > | RecordedKeyFramesNumberPerSolver | ||
| FChaosVDRecordingUpdated | RecordingUpdatedDelegate | ||
| FString | SessionName | Session name of the trace session used to re-build this recording |
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | AddFrameForSolver
(
const int32 SolverID, |
Adds a Solver Frame Data entry for a specific Solver ID. | |
| void | AddGameFrameData
(
FChaosVDGameFrameData&& InFrameData |
Adds a Game Frame Data entry. Creates a solver entry if it does not exist | |
| void | AddImplicitObject
(
const uint32 ID, |
Adds a shared Implicit Object to the recording | |
| void | AddImplicitObject
(
const uint32 ID, |
Adds an Implicit Object to the recording and takes ownership of it | |
| void | AddImplicitObject_Internal
(
const uint32 ID, |
||
| void | AddKeyFrameNumberForSolver
(
int32 SolverID, |
Stores a frame number of a solver that is a Key Frame - These are used when scrubbing to make sure the visualization is in sync with what was recorded | |
| int32 | FindFirstSolverKeyFrameNumberFromFrame
(
int32 SolverID, |
||
| const TArray< FChaosVDGameFrameData > & | Returns a reference to the array holding all the available game frames | ||
| int32 | Returns the current available Game Frames | ||
| int32 | GetAvailableSolverFramesNumber
(
int32 SolverID |
Returns the number of available frame data for the specified solver ID | |
| void | GetAvailableSolverIDsAtGameFrameNumber
(
int32 FrameNumber, |
Gathers all available solvers IDs at the given Game frame number | |
| const TMap< int32, TArray< FChaosVDSolverFrameData > > & | Returns a reference to the map containing the available solver data | ||
| int32 | Returns the current available recorded solvers number | ||
| FChaosVDGameFrameData * | GetGameFrameData
(
int32 FrameNumber |
Searches for a recorded Game frame at the specified cycle | |
| FChaosVDGameFrameData * | GetGameFrameDataAtCycle
(
uint64 Cycle |
Searches for a recorded Game frame at the specified cycle | |
| const TMap< uint32, TSharedPtr< const Chaos::FImplicitObject > > & | Returns a reference to the GeometryID-ImplicitObject map of this recording | ||
| FChaosVDGameFrameData * | Returns a ptr to the last recorded game frame - This is a ptr to the array element. Do not store | ||
| int32 | GetLowestGameFrameAtSolverFrameNumber
(
int32 SolverID, |
Searches and returns the lowest game frame number at the specified solver frame | |
| int32 | GetLowestGameFrameNumberAtCycle
(
uint64 Cycle |
Searches and returns the lowest game frame number at the specified cycle | |
| int32 | GetLowestSolverFrameNumberAtCycle
(
int32 SolverID, |
Searches and returns the lowest frame number of a solver at the specified cycle | |
| int32 | GetLowestSolverFrameNumberGameFrame
(
int32 SolverID, |
Searches and returns the lowest frame number of a solver at the specified cycle | |
| FChaosVDSolverFrameData * | GetSolverFrameData
(
int32 SolverID, |
Return a ptr to the existing solver frame data from the specified ID and Frame number | |
| FChaosVDSolverFrameData * | GetSolverFrameDataAtCycle
(
int32 SolverID, |
Return a ptr to the existing solver frame data from the specified ID and Frame number | |
| FString | GetSolverName
(
int32 SolverID |
Returns the name of the specified solver id | |
| FChaosVDGeometryDataLoaded & | Called each time new geometry data becomes available in the recording - Mainly when a new frame is added from the Trace analysis | ||
| FChaosVDRecordingUpdated & | Called each time the recording changes - Mainly when a new frame is added from the Trace analysis |