Isis Developer Reference
|
#include <PlotWindowBestFitDialog.h>
Public Slots | |
void | createBestFitLine () |
This is called when the user wants the best fit line. | |
void | readCurvesFromWindow () |
This populates the curve selection combo with all of the available information inside of the PlotWindow for which we're adding a best fit line to. | |
Public Member Functions | |
PlotWindowBestFitDialog (PlotWindow *windowWithCurves, QWidget *parent) | |
Create a PlotWindowBestFitDialog. | |
virtual | ~PlotWindowBestFitDialog () |
Isis::PlotWindowBestFitDialog::PlotWindowBestFitDialog | ( | PlotWindow * | windowWithCurves, |
QWidget * | parent ) |
Create a PlotWindowBestFitDialog.
If a best fit line is accepted by the user, then the curve will be added directly to the plot window with no extra code in the plot window. This fully initializes the state of the dialog and no extra initialization should be required.
windowWithCurves | This must not be NULL. This is the plot window for which a best fit line should be calculated. |
parent | The Qt-parent of this dialog. |
References createBestFitLine(), and readCurvesFromWindow().
|
virtual |
|
slot |
This is called when the user wants the best fit line.
The already populated m_curveMultivariateStats is used to give us the current best-fit coefficients. We create y-data points based on the best fit for every x value inside of the curve we're fitting. The curve is then added directly to the plot window.
References Isis::PlotCurve::color(), Isis::IsSpecial(), Isis::Null, Isis::PlotCurve::xUnits(), and Isis::PlotCurve::yUnits().
Referenced by PlotWindowBestFitDialog().
|
slot |
This populates the curve selection combo with all of the available information inside of the PlotWindow for which we're adding a best fit line to.
Referenced by PlotWindowBestFitDialog().