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

Method addPlotChannel

gui/src/plotwidget.cpp:159–172  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

157}
158
159void PlotWidget::addPlotChannel(PlotChannel *ch)
160{
161 ch->init();
162 m_plotChannels.append(ch);
163 if(m_selectedChannel == nullptr) {
164 selectChannel(ch);
165 }
166
167 connect(ch, &PlotChannel::doReplot, this, &PlotWidget::replot);
168 connect(ch, &PlotChannel::attachCurve, this, [=](QwtPlotCurve *curve) { curve->attach(m_plot); });
169 m_navigator->addChannel(ch);
170 m_tracker->addChannel(ch);
171 Q_EMIT addedChannel(ch);
172}
173
174void PlotWidget::removePlotChannel(PlotChannel *ch)
175{

Callers 3

GRTimePlotAddonMethod · 0.45
GRTimeChannelAddonMethod · 0.45
ImportChannelAddonMethod · 0.45

Calls 5

appendMethod · 0.80
connectFunction · 0.50
initMethod · 0.45
attachMethod · 0.45
addChannelMethod · 0.45

Tested by

no test coverage detected