MCPcopy Create free account
hub / github.com/PCGEx/PCGExtendedToolkit / Init

Method Init

Source/PCGExtendedToolkit/Private/Sampling/PCGExSampling.cpp:11–33  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9}
10
11void FPCGExApplySamplingDetails::Init()
12{
13#define PCGEX_REGISTER_FLAG(_COMPONENT, _ARRAY) \
14if ((_COMPONENT & static_cast<uint8>(EPCGExApplySampledComponentFlags::X)) != 0){ _ARRAY.Add(0); AppliedComponents++; } \
15if ((_COMPONENT & static_cast<uint8>(EPCGExApplySampledComponentFlags::Y)) != 0){ _ARRAY.Add(1); AppliedComponents++; } \
16if ((_COMPONENT & static_cast<uint8>(EPCGExApplySampledComponentFlags::Z)) != 0){ _ARRAY.Add(2); AppliedComponents++; }
17
18 if (bApplyTransform)
19 {
20 PCGEX_REGISTER_FLAG(TransformPosition, TrPosComponents)
21 PCGEX_REGISTER_FLAG(TransformRotation, TrRotComponents)
22 PCGEX_REGISTER_FLAG(TransformScale, TrScaComponents)
23 }
24
25 if (bApplyLookAt)
26 {
27 //PCGEX_REGISTER_FLAG(LookAtPosition, LkPosComponents)
28 PCGEX_REGISTER_FLAG(LookAtRotation, LkRotComponents)
29 //PCGEX_REGISTER_FLAG(LookAtScale, LkScaComponents)
30 }
31
32#undef PCGEX_REGISTER_FLAG
33}
34
35void FPCGExApplySamplingDetails::Apply(FPCGPoint& InPoint, const FTransform& InTransform, const FTransform& InLookAt)
36{

Callers 15

ProcessMethod · 0.45
ProcessMethod · 0.45
ProcessMethod · 0.45
BootMethod · 0.45
ExecuteInternalMethod · 0.45
BootMethod · 0.45
ProcessMethod · 0.45
PCGEX_ON_STATEFunction · 0.45
BootMethod · 0.45
BootMethod · 0.45
ExecuteInternalMethod · 0.45
BootMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected