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

Method Boot

Source/PCGExtendedToolkit/Private/Misc/PCGExMetaFilter.cpp:21–45  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

19PCGEX_INITIALIZE_ELEMENT(MetaFilter)
20
21bool FPCGExMetaFilterElement::Boot(FPCGExContext* InContext) const
22{
23 if (!FPCGExPointsProcessorElement::Boot(InContext)) { return false; }
24
25 PCGEX_CONTEXT_AND_SETTINGS(MetaFilter)
26
27 Context->Filters.Attributes = Settings->Attributes;
28 Context->Filters.Tags = Settings->Tags;
29 Context->Filters.bTestTagsWithValues = Settings->bTestTagValues;
30 Context->Filters.Init();
31
32 Context->Inside = MakeShared<PCGExData::FPointIOCollection>(Context);
33 Context->Outside = MakeShared<PCGExData::FPointIOCollection>(Context);
34
35 Context->Inside->OutputPin = PCGExPointFilter::OutputInsideFiltersLabel;
36 Context->Outside->OutputPin = PCGExPointFilter::OutputOutsideFiltersLabel;
37
38 if (Settings->bSwap)
39 {
40 Context->Inside->OutputPin = PCGExPointFilter::OutputOutsideFiltersLabel;
41 Context->Outside->OutputPin = PCGExPointFilter::OutputInsideFiltersLabel;
42 }
43
44 return true;
45}
46
47bool FPCGExMetaFilterElement::ExecuteInternal(FPCGContext* InContext) const
48{

Callers

nothing calls this directly

Calls 1

InitMethod · 0.45

Tested by

no test coverage detected