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

Method setTrackerPosition

pj_plotting/widget/src/PlotWidget.cpp:765–775  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

763}
764
765void PlotWidget::setTrackerPosition(double display_time_sec) {
766 if (tracker_ == nullptr) {
767 return;
768 }
769 tracker_->setEnabled(tracker_enabled_ && !isXYPlot());
770 if (isXYPlot()) {
771 return;
772 }
773 tracker_->setPosition(QPointF(display_time_sec, 0.0));
774 replot();
775}
776
777void PlotWidget::onChangeCurveColor(const QString& curve_name, QColor new_color) {
778 CurveInfo* info = curveFromTitle(curve_name);

Callers 2

onTrackerTimeMethod · 0.80
onPlotAddedMethod · 0.80

Calls 3

QPointFClass · 0.50
setEnabledMethod · 0.45
setPositionMethod · 0.45

Tested by

no test coverage detected