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

Method setUseTimeOffset

pj_runtime/src/SessionManager.cpp:198–212  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

196}
197
198void SessionManager::setUseTimeOffset(bool use) {
199 if (use_time_offset_ == use) {
200 return;
201 }
202 use_time_offset_ = use;
203 // Flip ONLY the global frame: displayOffset() now adds globalTimeReference()
204 // (earliest raw sample across all datasets when on, 0 when off) on top of each
205 // dataset's per-source alignment. No per-source TimeDomain offset is written, so
206 // the Source Timeline's bar positions are untouched — only the numbers reframe.
207 // No topic changed, only the display->raw mapping; tell every offset reader
208 // (curve adapters, scenes, the playback seed, the Timeline) to re-resolve. This
209 // global frame change uses the no-arg overload; the per-dataset overload is
210 // reserved for single-source Timeline edits.
211 emit displayOffsetChanged();
212}
213
214std::optional<DisplayRange> SessionManager::datasetDisplayRange(DatasetId dataset_id) const {
215 const auto bounds = datasetRawBounds(dataset_id);

Callers 8

TESTFunction · 0.80
TESTFunction · 0.80
TESTFunction · 0.80
TESTFunction · 0.80
MainWindowMethod · 0.80
TESTFunction · 0.80
TESTFunction · 0.80

Calls

no outgoing calls

Tested by 6

TESTFunction · 0.64
TESTFunction · 0.64
TESTFunction · 0.64
TESTFunction · 0.64
TESTFunction · 0.64
TESTFunction · 0.64