Commit 15375ac3 authored by Olivier Langella's avatar Olivier Langella
Browse files

alignment view bug not fixed

parent 795271ea
......@@ -23,9 +23,6 @@ PlotAligned::PlotAligned(QWidget *parent) :
setAxisTitle(QwtPlot::yLeft, "Delta RT (s)");
// enable zooming
_zoomer = nullptr;
_p_symbol_star = new QwtSymbol(QwtSymbol::Star1, QColor(Qt::black), QColor(Qt::black),
QSize(9, 9));
_p_curve_deltart = new QwtPlotCurve("Aligned RT");
_p_curve_ms2 = new QwtPlotCurve("Common identification");
......@@ -82,10 +79,10 @@ void PlotAligned::viewAlignedMS2Peaks(const MonitorAlignmentPlot * monitorAlignm
qDebug() << "View Ms2 point";
_p_curve_ms2->detach();
_p_symbol_star = new QwtSymbol(QwtSymbol::Star1, QColor(Qt::black), QColor(Qt::black),
QSize(9, 9));
delete _p_curve_ms2;
replot();
delete (_p_curve_ms2);
_p_curve_ms2 = nullptr;
this->QwtPlot::replot();
initZoomer();
//delete _p_curve_ms2;
_p_curve_ms2 = new QwtPlotCurve("Common identification");
......@@ -93,7 +90,8 @@ void PlotAligned::viewAlignedMS2Peaks(const MonitorAlignmentPlot * monitorAlignm
//QwtPlotCurve * curve = new QwtPlotCurve("Common identification");
_p_curve_ms2->setStyle(QwtPlotCurve::Dots);
_p_curve_ms2->setRenderHint(QwtPlotItem::RenderAntialiased);
_p_curve_ms2->setSymbol(_p_symbol_star);
_p_curve_ms2->setSymbol(new QwtSymbol(QwtSymbol::Star2, QColor(Qt::black), QColor(Qt::black),
QSize(9, 9)));
//_alignedPlots.push_back(curve);
const std::map<mcq_double,mcq_double>& mapDeltaPeaks = monitorAlignment->getMs2CommonPeak();
......@@ -106,8 +104,6 @@ void PlotAligned::viewAlignedMS2Peaks(const MonitorAlignmentPlot * monitorAlignm
//_p_curve_ms2->detach();
QVector< double > x;
QVector< double > y;
_p_msms_data = new QwtPointArrayData(x,y);
_p_curve_ms2->setData(_p_msms_data);
//unsigned int plotsize(mapDeltaPeaks.size());
//mcq_double x1[plotsize], y1[plotsize];
......@@ -147,7 +143,7 @@ void PlotAligned::clear() {
}*/
//_p_curve_ms2->setSamples(QVector<QPointF>());
_p_curve_deltart->setSamples(QVector<QPointF>());
//_p_curve_ms2->detach();
_p_curve_ms2->detach();
_p_curve_deltart->detach();
......@@ -155,11 +151,6 @@ void PlotAligned::clear() {
setAxisAutoScale(QwtPlot::yLeft);
this->setTitle("");
//_msms_data.clear();
QVector< double > x;
QVector< double > y;
_p_msms_data = new QwtPointArrayData(x,y);
_p_curve_ms2->setData(_p_msms_data);
replot();
initZoomer();
......
......@@ -66,7 +66,6 @@ public slots :
private:
//std::vector<QwtPlotCurve *> _alignedPlots;
QwtSymbol * _p_symbol_star=nullptr;
QwtPlotZoomer * _zoomer;
QwtPlotCurve * _p_curve_deltart;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment