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

Method invalidateAdapterOffsets

pj_plotting/widget/src/PlotWidget.cpp:1485–1499  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1483}
1484
1485bool PlotWidget::invalidateAdapterOffsets(std::optional<DatasetId> only) {
1486 bool changed = false;
1487 for (auto& info : curveList()) {
1488 auto* adapter = dynamic_cast<DatastoreCurveAdapter*>(info.curve->data());
1489 if (adapter == nullptr) {
1490 continue; // PointSeriesXY ignores display offset (plan §12)
1491 }
1492 if (only.has_value() && adapter->source().dataset_id != *only) {
1493 continue;
1494 }
1495 adapter->onDisplayOffsetChanged();
1496 changed = true;
1497 }
1498 return changed;
1499}
1500
1501} // namespace PJ

Callers

nothing calls this directly

Calls 3

sourceMethod · 0.80
dataMethod · 0.45

Tested by

no test coverage detected