QtiPlot
0.9.8.2
Main Page
Related Pages
Classes
Files
File List
File Members
qtiplot
src
core
MultiPeakFitTool.h
Go to the documentation of this file.
1
/***************************************************************************
2
File : MultiPeakFitTool.h
3
Project : QtiPlot
4
--------------------------------------------------------------------
5
Copyright : (C) 2006,2007 by Ion Vasilief, Knut Franke
6
Email (use @ for *) : ion_vasilief*yahoo.fr, knut.franke*gmx.de
7
Description : Plot tool for doing multi-peak fitting.
8
9
***************************************************************************/
10
11
/***************************************************************************
12
* *
13
* This program is free software; you can redistribute it and/or modify *
14
* it under the terms of the GNU General Public License as published by *
15
* the Free Software Foundation; either version 2 of the License, or *
16
* (at your option) any later version. *
17
* *
18
* This program is distributed in the hope that it will be useful, *
19
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
20
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
21
* GNU General Public License for more details. *
22
* *
23
* You should have received a copy of the GNU General Public License *
24
* along with this program; if not, write to the Free Software *
25
* Foundation, Inc., 51 Franklin Street, Fifth Floor, *
26
* Boston, MA 02110-1301 USA *
27
* *
28
***************************************************************************/
29
#ifndef MULTI_PEAK_FIT_TOOL
30
#define MULTI_PEAK_FIT_TOOL
31
32
#include "
PlotToolInterface.h
"
33
#include "
MultiPeakFit.h
"
34
#include <QObject>
35
36
class
DataPickerTool
;
37
class
ApplicationWindow
;
38
class
QwtPlotCurve;
39
48
class
MultiPeakFitTool
:
public
QObject,
public
PlotToolInterface
49
{
50
Q_OBJECT
51
public
:
52
MultiPeakFitTool
(
Graph
*graph,
ApplicationWindow
*app,
MultiPeakFit::PeakProfile
profile,
int
num_peaks,
const
QObject *status_target,
const
char
*status_slot);
53
virtual
~MultiPeakFitTool
();
54
55
virtual
int
rtti
()
const
{
return
PlotToolInterface::Rtti_MultiPeakFitTool
;};
56
signals:
61
void
statusText
(
const
QString&);
62
protected
slots:
63
void
selectPeak
(QwtPlotCurve *curve,
int
point_index);
64
private
:
65
void
finalize
();
66
MultiPeakFit::PeakProfile
d_profile
;
67
int
d_num_peaks
,
d_selected_peaks
;
68
DataPickerTool
*
d_picker_tool
;
69
MultiPeakFit
*
d_fit
;
70
QwtPlotCurve *
d_curve
;
71
};
72
73
#endif // ifndef MULTI_PEAK_FIT_TOOL
74
Generated on Tue Feb 19 2013 11:59:21 for QtiPlot by
1.8.3.1