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

Method applyPreviewDisplay

pj_plotting/widget/src/FilterEditorPanel.cpp:332–342  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

330}
331
332void FilterEditorPanel::applyPreviewDisplay() {
333 if (preview_plot_ == nullptr) {
334 return;
335 }
336 // Plot-level setters mirror how a real plot pens its curves — correct dot vs line
337 // pen widths, inherited by curves added later — so the preview matches the origin
338 // plot faithfully. They re-pen every curve, so ghost dashes must be re-applied after.
339 preview_plot_->setGridVisible(preview_grid_);
340 preview_plot_->setDefaultStyle(preview_curve_style_);
341 preview_plot_->setLineWidth(preview_line_width_);
342}
343
344void FilterEditorPanel::applyGhostPens() {
345 for (const PreviewSeries& entry : preview_series_) {

Callers

nothing calls this directly

Calls 3

setDefaultStyleMethod · 0.80
setGridVisibleMethod · 0.45
setLineWidthMethod · 0.45

Tested by

no test coverage detected