MultiPeakFitTool.h
Go to the documentation of this file.
/***************************************************************************
File : MultiPeakFitTool.h
Project : QtiPlot
--------------------------------------------------------------------
Copyright : (C) 2006,2007 by Ion Vasilief, Knut Franke
Email (use @ for *) : ion_vasilief*yahoo.fr, knut.franke*gmx.de
Description : Plot tool for doing multi-peak fitting.
***************************************************************************/
/***************************************************************************
* *
* 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 2 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, write to the Free Software *
* Foundation, Inc., 51 Franklin Street, Fifth Floor, *
* Boston, MA 02110-1301 USA *
* *
***************************************************************************/
#ifndef MULTI_PEAK_FIT_TOOL
#define MULTI_PEAK_FIT_TOOL
#include "PlotToolInterface.h"
#include "../analysis/MultiPeakFit.h"
#include <QObject>
class DataPickerTool;
class ApplicationWindow;
class QwtPlotCurve;
class QwtPlotMarker;
class MultiPeakFitTool : public QObject, public PlotToolInterface
{
Q_OBJECT
public:
MultiPeakFitTool(Graph *graph, ApplicationWindow *app, MultiPeakFit::PeakProfile profile, int num_peaks, const QObject *status_target, const char *status_slot);
virtual ~MultiPeakFitTool();
virtual int rtti() const {return PlotToolInterface::Rtti_MultiPeakFitTool;};
signals:
void statusText(const QString&);
protected slots:
void selectPeak(QwtPlotCurve *curve, int point_index);
private:
void finalize();
int d_selected_peaks;
DataPickerTool *d_picker_tool;
MultiPeakFit *d_fit;
QwtPlotCurve *d_curve;
QList<QwtPlotMarker *> d_lines;
};
#endif // ifndef MULTI_PEAK_FIT_TOOL
MultiPeakFitTool::finalize
void finalize()
Definition: MultiPeakFitTool.cpp:98
MultiPeakFitTool::~MultiPeakFitTool
virtual ~MultiPeakFitTool()
Definition: MultiPeakFitTool.cpp:64
MultiPeakFitTool::d_selected_peaks
int d_selected_peaks
Definition: MultiPeakFitTool.h:67
Graph
A 2D-plotting widget.
Definition: Graph.h:123
MultiPeakFit::PeakProfile
PeakProfile
Definition: MultiPeakFit.h:39
MultiPeakFitTool::d_picker_tool
DataPickerTool * d_picker_tool
Definition: MultiPeakFitTool.h:68
MultiPeakFit
Definition: MultiPeakFit.h:34
MultiPeakFitTool::selectPeak
void selectPeak(QwtPlotCurve *curve, int point_index)
Definition: MultiPeakFitTool.cpp:72
MultiPeakFitTool::statusText
void statusText(const QString &)
MultiPeakFitTool::d_fit
MultiPeakFit * d_fit
Definition: MultiPeakFitTool.h:69
MultiPeakFitTool::MultiPeakFitTool
MultiPeakFitTool(Graph *graph, ApplicationWindow *app, MultiPeakFit::PeakProfile profile, int num_peaks, const QObject *status_target, const char *status_slot)
Definition: MultiPeakFitTool.cpp:40
ApplicationWindow
QtiPlot's main window.
Definition: ApplicationWindow.h:133
MultiPeakFitTool
Definition: MultiPeakFitTool.h:48
MultiPeakFitTool::rtti
virtual int rtti() const
Definition: MultiPeakFitTool.h:56
PlotToolInterface.h
PlotToolInterface
Definition: PlotToolInterface.h:60
PlotToolInterface::Rtti_MultiPeakFitTool
Definition: PlotToolInterface.h:71
MultiPeakFitTool::d_lines
QList< QwtPlotMarker * > d_lines
Definition: MultiPeakFitTool.h:71
DataPickerTool
Plot tool for selecting, moving or removing individual points of a curve.
Definition: DataPickerTool.h:41
MultiPeakFitTool::d_curve
QwtPlotCurve * d_curve
Definition: MultiPeakFitTool.h:70