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

Method clearHistory

app/src/UI/Widgets/Waterfall.cpp:503–512  ·  view source on GitHub ↗

* @brief Resets the time history to the floor color. */

Source from the content-addressed store, hash-verified

501 * @brief Resets the time history to the floor color.
502 */
503void Widgets::Waterfall::clearHistory()
504{
505 m_topRow = 0;
506 m_writeRow = 0;
507 m_filledOnce = false;
508 if (!m_image.isNull())
509 m_image.fill(sampleColorMap(m_colorMap, 0.0));
510
511 update();
512}
513
514//--------------------------------------------------------------------------------------------------
515// FFT plan management

Callers

nothing calls this directly

Calls 2

updateFunction · 0.85
fillMethod · 0.45

Tested by

no test coverage detected