plot_aligned.h 1.96 KB
Newer Older
Benoit Valot's avatar
Benoit Valot committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/*
*
* MassChroQ: Mass Chromatogram Quantification software.
* Copyright (C) 2010 Olivier Langella, Edlira Nano, Benoit Valot, Michel Zivy.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program.  If not, see <http://www.gnu.org/licenses/>.
*
*/

/**
 * \file plot.h
Olivier Langella's avatar
Olivier Langella committed
23
 * \brief widget to plot alignements
Benoit Valot's avatar
Benoit Valot committed
24
25
 * \date November 23, 2011
 * \author Edlira Nano
Olivier Langella's avatar
Olivier Langella committed
26
27
28
 * 
 * it receives alignment signals from alignment workers (connected by AlignmentWidget)
 * clear display and draw new alignments
Benoit Valot's avatar
Benoit Valot committed
29
30
31
32
33
 */

#ifndef _PLOT_ALIGNED_H_
#define _PLOT_ALIGNED_H_ 1

Olivier Langella's avatar
Olivier Langella committed
34
//#include <qwt_compat.h>
Benoit Valot's avatar
Benoit Valot committed
35
36
37
#include <qwt_plot.h>
#include <qwt_plot_zoomer.h>
#include <qwt_plot_curve.h>
38
#include <qwt_point_data.h>
Benoit Valot's avatar
Benoit Valot committed
39
40
41
42
43
#include "../treatment/treatment_box_xic_extract.h"
#include "../treatment/treatment_box_xic_detect.h"
#include "../treatment/treatment_box_xic_filter.h"
#include "../treatment/treatment_box.h"
#include <vector>
Edlira Nano's avatar
Edlira Nano committed
44
#include "../../lib/alignments/monitors/monitor_alignment_plot.h"
Benoit Valot's avatar
Benoit Valot committed
45

Olivier Langella's avatar
Olivier Langella committed
46

Benoit Valot's avatar
Benoit Valot committed
47
48
49
50
51
52
53
54
55
56
57
58
59
60
class PlotAligned : public QwtPlot {
  Q_OBJECT

public:
  
  PlotAligned(QWidget * parent);
  
  virtual ~PlotAligned();

  void clear();

  void initZoomer();

public slots :
61
	void viewAlignedMsRun(const Msrun *);
Edlira Nano's avatar
Edlira Nano committed
62
	void viewAlignedMS2Peaks(const MonitorAlignmentPlot *);
Benoit Valot's avatar
Benoit Valot committed
63
64
65
66
67
	void clearPlot();
  

private:

68
	//std::vector<QwtPlotCurve *> _alignedPlots;
Olivier Langella's avatar
Olivier Langella committed
69
	QwtPlotZoomer * _zoomer;
70
71
72
	
	QwtPlotCurve * _p_curve_deltart;
	QwtPlotCurve * _p_curve_ms2;
73
	
74
    QwtPointArrayData *  _p_msms_data;
Benoit Valot's avatar
Benoit Valot committed
75
76
77
78
};


#endif // _PLOT_ALIGNED_H_
Olivier Langella's avatar
Olivier Langella committed
79