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

Method moveChannel

gui/src/plotmanager.cpp:148–157  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

146}
147
148void PlotManager::moveChannel(ChannelComponent *c, uint32_t uuid)
149{
150 c->removeChannelFromPlot();
151 c->plotChannelCmpt()->plotComponent()->removeChannel(c);
152 PlotComponent *plt = plot(uuid);
153 c->plotChannelCmpt()->initPlotComponent(plt);
154 c->addChannelToPlot();
155 plt->addChannel(c);
156 plt->replot();
157}
158
159PlotComponent *PlotManager::plot(uint32_t uuid)
160{

Callers 1

PlotManagerComboboxMethod · 0.80

Calls 8

plotChannelCmptMethod · 0.80
removeChannelFromPlotMethod · 0.45
removeChannelMethod · 0.45
plotComponentMethod · 0.45
initPlotComponentMethod · 0.45
addChannelToPlotMethod · 0.45
addChannelMethod · 0.45
replotMethod · 0.45

Tested by

no test coverage detected