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

Method readPoint

pj_plotting/core/src/DatastoreCurveAdapter.cpp:242–248  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

240}
241
242QPointF DatastoreCurveAdapter::readPoint(const SeriesSample& sample) const {
243 if (sample.chunk == nullptr) {
244 return invalidPoint();
245 }
246
247 return {rawNsToDisplaySeconds(sample.timestamp, displayOffsetNow()), sample.value};
248}
249
250DisplayOffset DatastoreCurveAdapter::displayOffsetNow() const {
251 if (cached_display_offset_valid_) {

Callers

nothing calls this directly

Calls 2

rawNsToDisplaySecondsFunction · 0.85
invalidPointFunction · 0.70

Tested by

no test coverage detected