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

Method sourceDisplayOffset

pj_runtime/src/SessionManager.cpp:71–78  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

69}
70
71DisplayOffset SessionManager::sourceDisplayOffset(DatasetId dataset_id) const {
72 // The per-source ALIGNMENT shift only (display_time = raw_time - offset): the
73 // dataset's TimeDomain offset, which is exactly what the Source Timeline edits.
74 // The global "Use time offset" reference is NOT folded in here (see
75 // displayOffset), so a Timeline drag round-trips without double-counting and
76 // the bars stay put when the global frame is toggled.
77 return DisplayOffset{Duration{datasetDomainDisplayOffset(dataset_id)}};
78}
79
80DisplayOffset SessionManager::displayOffset(DatasetId dataset_id) const {
81 // Total display shift for the display axis = per-source alignment + the global

Callers 4

TESTFunction · 0.80
rebuildTracksMethod · 0.80
updateTrackOffsetsMethod · 0.80

Calls

no outgoing calls

Tested by 1

TESTFunction · 0.64