SciDAVis
1.D4
|
#include <MultiPeakFitTool.h>
Signals | |
void | statusText (const QString &) |
Public Member Functions | |
MultiPeakFitTool (Graph *graph, ApplicationWindow *app, MultiPeakFit::PeakProfile profile, int num_peaks, const QObject *status_target, const char *status_slot) | |
virtual RTTI | rtti () const |
virtual | ~MultiPeakFitTool () |
Public Member Functions inherited from PlotToolInterface | |
PlotToolInterface (Graph *graph) | |
virtual | ~PlotToolInterface () |
Protected Slots | |
void | selectPeak (QwtPlotCurve *curve, int point_index) |
Private Member Functions | |
void | finalize () |
Private Attributes | |
QwtPlotCurve * | d_curve |
MultiPeakFit * | d_fit |
int | d_num_peaks |
DataPickerTool * | d_picker_tool |
MultiPeakFit::PeakProfile | d_profile |
int | d_selected_peaks |
Additional Inherited Members | |
Public Types inherited from PlotToolInterface | |
enum | RTTI { DataPicker, ScreenPicker, LineProfile, MultiPeak, RangeSelector, TranslateCurve } |
Protected Attributes inherited from PlotToolInterface | |
Graph * | d_graph |
Plot tool for doing multi-peak fitting.
This class can be seen as a user-interface wrapper around MultiPeakFit, providing functionality for visually selecting estimated peak positions and finally executing the fit.
Maybe some other parts of the multi-peak fitting process (namely, specifying the number of peaks and optionally the peak profile) could be moved here as well.
MultiPeakFitTool::MultiPeakFitTool | ( | Graph * | graph, |
ApplicationWindow * | app, | ||
MultiPeakFit::PeakProfile | profile, | ||
int | num_peaks, | ||
const QObject * | status_target, | ||
const char * | status_slot | ||
) |
References d_curve, d_fit, PlotToolInterface::d_graph, d_num_peaks, d_picker_tool, d_profile, d_selected_peaks, DataPickerTool::Display, MultiPeakFit::enablePeakCurves(), ApplicationWindow::fitPoints, Fit::generateFunction(), ApplicationWindow::generatePeakCurves, ApplicationWindow::generateUniformFitPoints, ApplicationWindow::peakCurvesColor, Graph::plotWidget(), selectPeak(), MultiPeakFit::setPeakCurvesColor(), and statusText().
|
virtual |
References d_fit, PlotToolInterface::d_graph, d_picker_tool, and Graph::plotWidget().
|
private |
References d_curve, d_fit, PlotToolInterface::d_graph, d_num_peaks, d_picker_tool, Fit::fit(), Plot::markerKeys(), Graph::plotWidget(), Plot::removeMarker(), Graph::setActiveTool(), and Filter::setDataFromCurve().
Referenced by selectPeak().
|
inlinevirtual |
Implements PlotToolInterface.
References PlotToolInterface::MultiPeak.
|
protectedslot |
References d_curve, d_fit, PlotToolInterface::d_graph, d_num_peaks, d_selected_peaks, finalize(), Plot::insertMarker(), Graph::plotWidget(), Fit::setInitialGuess(), and statusText().
Referenced by MultiPeakFitTool().
|
signal |
Emitted whenever a new message should be presented to the user.
You don't have to connect to this signal if you alreay specified a reciever during initialization.
Referenced by MultiPeakFitTool(), and selectPeak().
|
private |
Referenced by finalize(), MultiPeakFitTool(), and selectPeak().
|
private |
Referenced by finalize(), MultiPeakFitTool(), selectPeak(), and ~MultiPeakFitTool().
|
private |
Referenced by finalize(), MultiPeakFitTool(), and selectPeak().
|
private |
Referenced by finalize(), MultiPeakFitTool(), and ~MultiPeakFitTool().
|
private |
Referenced by MultiPeakFitTool().
|
private |
Referenced by MultiPeakFitTool(), and selectPeak().