MCPcopy Create free account
hub / github.com/PlotJuggler/PlotJuggler / clearAllFilters

Method clearAllFilters

pj_runtime/src/DataProcessorService.cpp:122–132  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

120}
121
122void DataProcessorService::clearAllFilters() {
123 for (const auto& [output_topic_id, recipe] : recipes_) {
124 (void)output_topic_id; // key == recipe.output_topic_id; iterate by recipe for clarity
125 // Drop the engine node, then retire the materialized output so the next
126 // CatalogModel::rebuildFromDatastore stops listing it. removeNode alone would
127 // leave a catalog zombie (it does not touch DataEngine::retired_topic_ids).
128 (void)derived_->removeNode(recipe.node_id);
129 engine_.retireTopic(recipe.output_topic_id);
130 }
131 recipes_.clear();
132}
133
134std::vector<TopicId> DataProcessorService::advanceOnCommit(const std::vector<TopicId>& changed_inputs) {
135 // Run whenever there is ANY eager node — per-curve filters OR named transforms

Callers 2

TESTFunction · 0.80
restoreDataProcessorsMethod · 0.80

Calls 3

removeNodeMethod · 0.80
retireTopicMethod · 0.80
clearMethod · 0.45

Tested by 1

TESTFunction · 0.64