UDocumentation
UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
ChaosVDDebugShapeDataWrapper.h
Go to the documentation of this file.
1
// Copyright Epic Games, Inc. All Rights Reserved.
2
3
#pragma once
4
#include "
ChaosVDDataSerializationMacros.h
"
5
#include "
ChaosVDParticleDataWrapper.h
"
6
7
#include "ChaosVDDebugShapeDataWrapper.generated.h"
8
9
USTRUCT
()
10
struct
FChaosVDDebugShapeDataContainer
11
{
12
GENERATED_BODY
()
13
14
TArray
<
TSharedPtr
<
FChaosVDDebugDrawBoxDataWrapper
>> RecordedDebugDrawBoxes;
15
TArray
<
TSharedPtr
<
FChaosVDDebugDrawLineDataWrapper
>> RecordedDebugDrawLines;
16
TArray
<
TSharedPtr
<
FChaosVDDebugDrawSphereDataWrapper
>> RecordedDebugDrawSpheres;
17
TArray
<
TSharedPtr
<
FChaosVDDebugDrawImplicitObjectDataWrapper
>> RecordedDebugDrawImplicitObjects;
18
};
19
20
USTRUCT
()
21
struct
FChaosVDMultiSolverDebugShapeDataContainer
22
{
23
GENERATED_BODY
()
24
25
TMap
<
int32
,
TSharedPtr
<
FChaosVDDebugShapeDataContainer
>> DataBySolverID;
26
};
27
28
USTRUCT
()
29
struct
FChaosVDDebugDrawShapeBase
:
public
FChaosVDWrapperDataBase
30
{
31
GENERATED_BODY
()
32
33
UPROPERTY
()
34
int32
SolverID =
INDEX_NONE
;
35
36
UPROPERTY
()
37
FName
Tag
=
NAME_None
;
38
39
UPROPERTY
()
40
FColor
Color
=
FColor
::
Blue
;
41
42
UPROPERTY
()
43
EChaosVDParticleContext
ThreadContext =
EChaosVDParticleContext
::
GameThread
;
44
45
protected
:
46
CHAOSVDRUNTIME_API
void
SerializeBase_Internal(
FArchive
& Ar);
47
};
48
49
USTRUCT
()
50
struct
FChaosVDDebugDrawBoxDataWrapper
:
public
FChaosVDDebugDrawShapeBase
51
{
52
GENERATED_BODY
()
53
54
CHAOSVDRUNTIME_API
static
FStringView
WrapperTypeName;
55
56
UPROPERTY
()
57
FBox
Box
=
FBox
(
ForceInitToZero
);
58
59
CHAOSVDRUNTIME_API
bool
Serialize
(
FArchive
& Ar);
60
};
61
62
CVD_IMPLEMENT_SERIALIZER
(
FChaosVDDebugDrawBoxDataWrapper
)
63
64
USTRUCT
()
65
struct
FChaosVDDebugDrawSphereDataWrapper
:
public
FChaosVDDebugDrawShapeBase
66
{
67
GENERATED_BODY
()
68
69
CHAOSVDRUNTIME_API
static
FStringView
WrapperTypeName;
70
71
UPROPERTY
()
72
FVector
Origin =
FVector
::ZeroVector;
73
74
UPROPERTY
()
75
float
Radius = 0.0f;
76
77
CHAOSVDRUNTIME_API
bool
Serialize
(
FArchive
& Ar);
78
};
79
80
CVD_IMPLEMENT_SERIALIZER
(
FChaosVDDebugDrawSphereDataWrapper
)
81
82
USTRUCT
()
83
struct
FChaosVDDebugDrawLineDataWrapper
:
public
FChaosVDDebugDrawShapeBase
84
{
85
GENERATED_BODY
()
86
87
CHAOSVDRUNTIME_API
static
FStringView
WrapperTypeName;
88
89
UPROPERTY
()
90
FVector
StartLocation =
FVector
::ZeroVector;
91
92
UPROPERTY
()
93
FVector
EndLocation =
FVector
::ZeroVector;
94
95
UPROPERTY
()
96
bool
bIsArrow =
false
;
97
98
CHAOSVDRUNTIME_API
bool
Serialize
(
FArchive
& Ar);
99
};
100
101
CVD_IMPLEMENT_SERIALIZER
(
FChaosVDDebugDrawLineDataWrapper
)
102
103
USTRUCT
()
104
struct
FChaosVDDebugDrawImplicitObjectDataWrapper
:
public
FChaosVDDebugDrawShapeBase
105
{
106
GENERATED_BODY
()
107
108
CHAOSVDRUNTIME_API
static
FStringView
WrapperTypeName;
109
110
uint32
ImplicitObjectHash = 0;
111
112
FTransform
ParentTransform =
FTransform
();
113
114
CHAOSVDRUNTIME_API
bool
Serialize
(
FArchive
& Ar);
115
};
ECborCode::Tag
@ Tag
ChaosVDDataSerializationMacros.h
CVD_IMPLEMENT_SERIALIZER
#define CVD_IMPLEMENT_SERIALIZER(Type)
Definition
ChaosVDDataSerializationMacros.h:30
ChaosVDParticleDataWrapper.h
EChaosVDParticleContext
EChaosVDParticleContext
Definition
ChaosVDParticleDataWrapper.h:656
INDEX_NONE
@ INDEX_NONE
Definition
CoreMiscDefines.h:150
ForceInitToZero
@ ForceInitToZero
Definition
CoreMiscDefines.h:156
int32
FPlatformTypes::int32 int32
A 32-bit signed integer.
Definition
Platform.h:1125
StaticCastSharedRef
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition
SharedPointer.h:127
EComponentEndOfFrameUpdateMode::GameThread
@ GameThread
UPROPERTY
#define UPROPERTY(...)
UObject definition macros.
Definition
ObjectMacros.h:744
GENERATED_BODY
#define GENERATED_BODY(...)
Definition
ObjectMacros.h:765
USTRUCT
#define USTRUCT(...)
Definition
ObjectMacros.h:746
EColorPickerChannels::Blue
@ Blue
EStructSerializerNullValuePolicies::Serialize
@ Serialize
EVariantTypes::Box
@ Box
EVariantTypes::Color
@ Color
uint32
uint32_t uint32
Definition
binka_ue_file_header.h:6
FArchive
Definition
Archive.h:1208
FName
Definition
NameTypes.h:617
TArray
Definition
Array.h:670
TMap
Definition
UnrealString.h.inl:34
TSharedPtr
Definition
SharedPointer.h:692
TStringView< TCHAR >
false
@ false
Definition
radaudio_common.h:23
FChaosVDDebugDrawBoxDataWrapper
Definition
ChaosVDDebugShapeDataWrapper.h:51
FChaosVDDebugDrawImplicitObjectDataWrapper
Definition
ChaosVDDebugShapeDataWrapper.h:105
FChaosVDDebugDrawLineDataWrapper
Definition
ChaosVDDebugShapeDataWrapper.h:84
FChaosVDDebugDrawShapeBase
Definition
ChaosVDDebugShapeDataWrapper.h:30
FChaosVDDebugDrawSphereDataWrapper
Definition
ChaosVDDebugShapeDataWrapper.h:66
FChaosVDDebugShapeDataContainer
Definition
ChaosVDDebugShapeDataWrapper.h:11
FChaosVDMultiSolverDebugShapeDataContainer
Definition
ChaosVDDebugShapeDataWrapper.h:22
FChaosVDWrapperDataBase
Definition
ChaosVDParticleDataWrapper.h:76
FColor
Definition
Color.h:486
UE::Math::TBox< double >
UE::Math::TTransform< double >
UE::Math::TVector< double >
Engine
Source
Runtime
Experimental
ChaosVisualDebugger
Public
DataWrappers
ChaosVDDebugShapeDataWrapper.h
Generated by
1.9.8