@@ -367,48 +367,58 @@ void PlotManager::_addCurve(QwtPlotCurve
plot = plotWidgets[0];
}
if (_stream != nullptr) // not displaying snapshot
{
QVector<const StreamChannel*> dispChannels;
if (isMulti)
dispChannels = QVector<const StreamChannel*>(1, _stream->channel(index));
else
dispChannels = _stream->allChannels();
plot->setDispChannels(dispChannels);
// show the curve
curve->attach(plot);
plot->replot();
void PlotManager::removeCurves(unsigned number)
if (! isMulti)
plotWidgets[0]->setDispChannels(dispChannels);
for (unsigned i = 0; i < number; i++)
if (!curves.isEmpty())
delete curves.takeLast();
if (isMulti) // delete corresponding widget as well
delete plotWidgets.takeLast();
unsigned PlotManager::numOfCurves()
return curves.size();
Plot* PlotManager::plotWidget(unsigned curveIndex)
return plotWidgets[curveIndex];
Status change: