MCPcopy Create free account
hub / github.com/Serial-Studio/Serial-Studio / previousFrame

Method previousFrame

app/src/Sessions/Player.cpp:656–666  ·  view source on GitHub ↗

* @brief Steps one frame back and rebuilds the trailing plot window. */

Source from the content-addressed store, hash-verified

654 * @brief Steps one frame back and rebuilds the trailing plot window.
655 */
656void Sessions::Player::previousFrame()
657{
658 if (m_framePos > 0) {
659 --m_framePos;
660 UI::Dashboard::instance().clearPlotData();
661 const int toLoad = UI::Dashboard::instance().points();
662 const int startIdx = std::max(0, m_framePos - toLoad);
663 processFrameBatch(startIdx, m_framePos);
664 updateData();
665 }
666}
667
668//--------------------------------------------------------------------------------------------------
669// Data processing

Callers

nothing calls this directly

Calls 2

clearPlotDataMethod · 0.80
pointsMethod · 0.45

Tested by

no test coverage detected