QtiPlot  0.9.8.2
Signals | Public Member Functions | Protected Slots | Private Member Functions | Private Attributes | List of all members
MultiPeakFitTool Class Reference

#include <MultiPeakFitTool.h>

Inheritance diagram for MultiPeakFitTool:
PlotToolInterface PlotToolInterface

Signals

void statusText (const QString &)
 
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)
 
 MultiPeakFitTool (Graph *graph, ApplicationWindow *app, MultiPeakFit::PeakProfile profile, int num_peaks, const QObject *status_target, const char *status_slot)
 
virtual int rtti () const
 
virtual int rtti () const
 
virtual ~MultiPeakFitTool ()
 
virtual ~MultiPeakFitTool ()
 
- Public Member Functions inherited from PlotToolInterface
 PlotToolInterface (Graph *graph, const QObject *status_target=NULL, const char *status_slot="")
 
virtual ~PlotToolInterface ()
 

Protected Slots

void selectPeak (QwtPlotCurve *curve, int point_index)
 
void selectPeak (QwtPlotCurve *curve, int point_index)
 

Private Member Functions

void finalize ()
 
void finalize ()
 

Private Attributes

QwtPlotCurve * d_curve
 
MultiPeakFitd_fit
 
QList< QwtPlotMarker * > d_lines
 
int d_num_peaks
 
DataPickerToold_picker_tool
 
MultiPeakFit::PeakProfile d_profile
 
int d_selected_peaks
 

Additional Inherited Members

- Public Types inherited from PlotToolInterface
enum  RttiValues {
  Rtti_PlotTool = 0, Rtti_RangeSelector, Rtti_DataPicker, Rtti_TranslateCurveTool,
  Rtti_MultiPeakFitTool, Rtti_LineProfileTool, Rtti_AddWidgetTool, Rtti_DrawDataPoints,
  Rtti_ImageProfilesTool, Rtti_SubtractLineTool, Rtti_PlotUserTool = 1000
}
 
- Protected Attributes inherited from PlotToolInterface
Graphd_graph
 
const char * d_status_slot
 
const QObject * d_status_target
 

Detailed Description

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.

Constructor & Destructor Documentation

§ MultiPeakFitTool() [1/2]

MultiPeakFitTool::MultiPeakFitTool ( Graph graph,
ApplicationWindow app,
MultiPeakFit::PeakProfile  profile,
int  num_peaks,
const QObject *  status_target,
const char *  status_slot 
)

§ ~MultiPeakFitTool() [1/2]

MultiPeakFitTool::~MultiPeakFitTool ( )
virtual

References d_fit, and d_picker_tool.

§ MultiPeakFitTool() [2/2]

MultiPeakFitTool::MultiPeakFitTool ( Graph graph,
ApplicationWindow app,
MultiPeakFit::PeakProfile  profile,
int  num_peaks,
const QObject *  status_target,
const char *  status_slot 
)

§ ~MultiPeakFitTool() [2/2]

virtual MultiPeakFitTool::~MultiPeakFitTool ( )
virtual

Member Function Documentation

§ finalize() [1/2]

void MultiPeakFitTool::finalize ( )
private

§ finalize() [2/2]

void MultiPeakFitTool::finalize ( )
private

§ rtti() [1/2]

virtual int MultiPeakFitTool::rtti ( ) const
inlinevirtual

§ rtti() [2/2]

virtual int MultiPeakFitTool::rtti ( ) const
inlinevirtual

§ selectPeak [1/2]

void MultiPeakFitTool::selectPeak ( QwtPlotCurve *  curve,
int  point_index 
)
protectedslot

§ selectPeak [2/2]

void MultiPeakFitTool::selectPeak ( QwtPlotCurve *  curve,
int  point_index 
)
protectedslot

§ statusText [1/2]

void MultiPeakFitTool::statusText ( const QString &  )
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(), rtti(), and selectPeak().

§ statusText [2/2]

void MultiPeakFitTool::statusText ( const QString &  )
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.

Member Data Documentation

§ d_curve

QwtPlotCurve * MultiPeakFitTool::d_curve
private

§ d_fit

MultiPeakFit * MultiPeakFitTool::d_fit
private

§ d_lines

QList<QwtPlotMarker *> MultiPeakFitTool::d_lines
private

§ d_num_peaks

int MultiPeakFitTool::d_num_peaks
private

§ d_picker_tool

DataPickerTool * MultiPeakFitTool::d_picker_tool
private

§ d_profile

MultiPeakFit::PeakProfile MultiPeakFitTool::d_profile
private

Referenced by finalize(), and MultiPeakFitTool().

§ d_selected_peaks

int MultiPeakFitTool::d_selected_peaks
private

The documentation for this class was generated from the following files: