#include <FunctionCurve.h>

Public Types | |
| enum | FunctionType { Normal = 0, Parametric = 1, Polar = 2 } |
Public Member Functions | |
| void | copy (FunctionCurve *f) |
| double | endRange () |
| QStringList | formulas () |
| FunctionCurve (const QString &name=QString()) | |
| FunctionCurve (const FunctionType &t, const QString &name=QString()) | |
| FunctionType | functionType () |
| QString | legend () |
| Returns a string that can be displayed in a plot legend. | |
| void | loadData (int points=0) |
| QString | saveToString () |
| Returns a string used when saving to a project file. | |
| void | setFormula (const QString &s) |
| Provided for convenience when dealing with normal functions. | |
| void | setFormulas (const QStringList &lst) |
| void | setFunctionType (const FunctionType &t) |
| void | setRange (double from, double to) |
| void | setVariable (const QString &s) |
| double | startRange () |
| QString | variable () |
Private Attributes | |
| QStringList | d_formulas |
| double | d_from |
| FunctionType | d_function_type |
| double | d_to |
| QString | d_variable |
| FunctionCurve::FunctionCurve | ( | const FunctionType & | t, | |
| const QString & | name = QString() | |||
| ) |
References d_variable, Graph::Function, Graph::Line, PlotCurve::setPlotStyle(), and PlotCurve::setType().
| FunctionCurve::FunctionCurve | ( | const QString & | name = QString() |
) |
References d_formulas, d_variable, Graph::Function, Graph::Line, PlotCurve::setPlotStyle(), and PlotCurve::setType().
| void FunctionCurve::copy | ( | FunctionCurve * | f | ) |
References d_formulas, d_from, d_function_type, d_to, d_variable, endRange(), formulas(), functionType(), startRange(), and variable().
| double FunctionCurve::endRange | ( | ) | [inline] |
References d_to.
Referenced by copy(), Graph::modifyFunctionCurve(), and FunctionDialog::setCurveToModify().
| QStringList FunctionCurve::formulas | ( | ) | [inline] |
References d_formulas.
Referenced by copy(), Graph::modifyFunctionCurve(), TranslateCurveTool::selectDestination(), and FunctionDialog::setCurveToModify().
| FunctionType FunctionCurve::functionType | ( | ) | [inline] |
References d_function_type.
Referenced by copy(), Graph::modifyFunctionCurve(), TranslateCurveTool::selectDestination(), and FunctionDialog::setCurveToModify().
| QString FunctionCurve::legend | ( | ) |
Returns a string that can be displayed in a plot legend.
References d_formulas, d_function_type, d_variable, Normal, Parametric, and Polar.
Referenced by Graph::modifyFunctionCurve().
| void FunctionCurve::loadData | ( | int | points = 0 |
) |
References d_formulas, d_from, d_function_type, d_to, d_variable, Normal, Parametric, and Polar.
Referenced by Graph::addFunction(), Graph::modifyFunctionCurve(), Graph::restoreFunction(), and TranslateCurveTool::selectDestination().
| QString FunctionCurve::saveToString | ( | ) |
Returns a string used when saving to a project file.
References d_formulas, d_from, d_function_type, d_to, d_variable, and PlotCurve::saveCurveLayout().
| void FunctionCurve::setFormula | ( | const QString & | s | ) | [inline] |
Provided for convenience when dealing with normal functions.
References d_formulas.
Referenced by Fit::insertFitFunctionCurve(), MultiPeakFit::insertPeakFunctionCurve(), and TranslateCurveTool::selectDestination().
| void FunctionCurve::setFormulas | ( | const QStringList & | lst | ) | [inline] |
References d_formulas.
Referenced by Graph::addFunction(), Graph::modifyFunctionCurve(), and Graph::restoreFunction().
| void FunctionCurve::setFunctionType | ( | const FunctionType & | t | ) | [inline] |
| void FunctionCurve::setRange | ( | double | from, | |
| double | to | |||
| ) |
| void FunctionCurve::setVariable | ( | const QString & | s | ) | [inline] |
References d_variable.
Referenced by Graph::addFunction(), Graph::modifyFunctionCurve(), and Graph::restoreFunction().
| double FunctionCurve::startRange | ( | ) | [inline] |
References d_from.
Referenced by copy(), Graph::modifyFunctionCurve(), and FunctionDialog::setCurveToModify().
| QString FunctionCurve::variable | ( | ) | [inline] |
References d_variable.
Referenced by copy(), Graph::modifyFunctionCurve(), and FunctionDialog::setCurveToModify().
QStringList FunctionCurve::d_formulas [private] |
Referenced by copy(), formulas(), FunctionCurve(), legend(), loadData(), saveToString(), setFormula(), and setFormulas().
double FunctionCurve::d_from [private] |
Referenced by copy(), loadData(), saveToString(), setRange(), and startRange().
FunctionType FunctionCurve::d_function_type [private] |
Referenced by copy(), functionType(), legend(), loadData(), saveToString(), and setFunctionType().
double FunctionCurve::d_to [private] |
Referenced by copy(), endRange(), loadData(), saveToString(), and setRange().
QString FunctionCurve::d_variable [private] |
Referenced by copy(), FunctionCurve(), legend(), loadData(), saveToString(), setVariable(), and variable().
1.5.6