| 19 | PCGEX_INITIALIZE_ELEMENT(MetaFilter) |
| 20 | |
| 21 | bool 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 | |
| 47 | bool FPCGExMetaFilterElement::ExecuteInternal(FPCGContext* InContext) const |
| 48 | { |