MCPcopy Create free account
hub / github.com/analogdevicesinc/scopy / replot

Method replot

tmp/grutil/src/grtimeplotaddon.cpp:328–346  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

326}
327
328void GRTimePlotAddon::replot()
329{
330 if(!time_sink)
331 return;
332#ifdef GUI_THREAD_SAMPLING
333 time_sink->updateData();
334 drawPlot();
335 if(m_refreshTimerRunning)
336 m_plotTimer->start();
337#else
338 refillFuture = QtConcurrent::run([=]() {
339 // qInfo(CAT_GRTIMEPLOT)<<"UpdateData";
340 std::unique_lock lock(refillMutex);
341
342 time_sink->updateData();
343 });
344 fw->setFuture(refillFuture);
345#endif
346}
347
348void GRTimePlotAddon::updateBufferPreviewer() { m_bufferPreviewer->updateBufferPreviewer(); }
349

Callers 7

createYAxisMenuMethod · 0.45
GRTimePlotAddonMethod · 0.45
drawPlotMethod · 0.45
enableMethod · 0.45
disableMethod · 0.45
GRTimeChannelAddonMethod · 0.45
ImportChannelAddonMethod · 0.45

Calls 2

updateDataMethod · 0.45
startMethod · 0.45

Tested by

no test coverage detected