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

Method nextFrame

app/src/Sessions/Player.cpp:641–651  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

639 * @brief Advances one frame and rebuilds the trailing plot window.
640 */
641void Sessions::Player::nextFrame()
642{
643 if (m_framePos < frameCount() - 1) {
644 ++m_framePos;
645 UI::Dashboard::instance().clearPlotData();
646 const int toLoad = UI::Dashboard::instance().points();
647 const int startIdx = std::max(0, m_framePos - toLoad);
648 processFrameBatch(startIdx, m_framePos);
649 updateData();
650 }
651}
652
653/**
654 * @brief Steps one frame back and rebuilds the trailing plot window.

Callers

nothing calls this directly

Calls 2

clearPlotDataMethod · 0.80
pointsMethod · 0.45

Tested by

no test coverage detected