| 9 | } |
| 10 | |
| 11 | void FPCGExApplySamplingDetails::Init() |
| 12 | { |
| 13 | #define PCGEX_REGISTER_FLAG(_COMPONENT, _ARRAY) \ |
| 14 | if ((_COMPONENT & static_cast<uint8>(EPCGExApplySampledComponentFlags::X)) != 0){ _ARRAY.Add(0); AppliedComponents++; } \ |
| 15 | if ((_COMPONENT & static_cast<uint8>(EPCGExApplySampledComponentFlags::Y)) != 0){ _ARRAY.Add(1); AppliedComponents++; } \ |
| 16 | if ((_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 | |
| 35 | void FPCGExApplySamplingDetails::Apply(FPCGPoint& InPoint, const FTransform& InTransform, const FTransform& InLookAt) |
| 36 | { |
no outgoing calls
no test coverage detected