Commit 795271ea authored by Olivier Langella's avatar Olivier Langella
Browse files

quanti is OK

parent b5e88007
......@@ -81,8 +81,15 @@ void PlotAligned::viewAlignedMS2Peaks(const MonitorAlignmentPlot * monitorAlignm
return;
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();
initZoomer();
//delete _p_curve_ms2;
//_p_curve_ms2 = new QwtPlotCurve("Common identification");
_p_curve_ms2 = new QwtPlotCurve("Common identification");
_p_curve_ms2->attach(this);
//QwtPlotCurve * curve = new QwtPlotCurve("Common identification");
_p_curve_ms2->setStyle(QwtPlotCurve::Dots);
_p_curve_ms2->setRenderHint(QwtPlotItem::RenderAntialiased);
......@@ -96,11 +103,12 @@ void PlotAligned::viewAlignedMS2Peaks(const MonitorAlignmentPlot * monitorAlignm
//_p_msms_data->clear();
//_msms_data.clear();
//_p_curve_ms2->detach();
QVector< double > x;
QVector< double > y;
_p_msms_data = new QwtPointArrayData(x,y);
_p_curve_ms2->setData(_p_msms_data);
replot();
//unsigned int plotsize(mapDeltaPeaks.size());
//mcq_double x1[plotsize], y1[plotsize];
std::map<mcq_double,mcq_double>::const_iterator it;
......@@ -119,7 +127,7 @@ void PlotAligned::viewAlignedMS2Peaks(const MonitorAlignmentPlot * monitorAlignm
_p_msms_data = new QwtPointArrayData(x,y);
_p_curve_ms2->setData(_p_msms_data);
_p_curve_ms2->attach(this);
this->replot();
initZoomer();
qDebug() << "PlotAligned::viewAlignedMS2Peaks end";
......
......@@ -108,9 +108,8 @@ void Plot::updatedPeaks(const TreatmentBoxXicDetect * p_treatment) {
curve = new QwtPlotCurve("Detected Peaks");
curve->setStyle(QwtPlotCurve::Dots);
curve->setRenderHint(QwtPlotItem::RenderAntialiased);
QwtSymbol symbol(QwtSymbol::Star1, getNewColors(),
getNewColors(), QSize(9, 9));
curve->setSymbol(&symbol);
curve->setSymbol(new QwtSymbol(QwtSymbol::Star1, QColor(Qt::red), QColor(Qt::red),
QSize(9, 9)));
_xicPlots.insert(
std::pair<const TreatmentBox*, QwtPlotCurve *>(p_treatment,
curve));
......
......@@ -61,6 +61,9 @@ private:
std::map<const TreatmentBox *, QwtPlotCurve *> _xicPlots;
QwtPlotZoomer * _zoomer;
// QwtSymbol * _p_symbol;
};
......
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