SciDAVis
1.D4
|
#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 (ApplicationWindow *parent, const FunctionType &t, const char *name=0) | |
FunctionCurve (ApplicationWindow *parent, const char *name=0) | |
FunctionType | functionType () |
QString | legend () const |
Returns a string that can be displayed in a plot legend. | |
bool | loadData (int points=0) |
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 () |
![]() | |
QwtDoubleRect | boundingRect () const |
PlotCurve (const QString &name=QString::null) | |
void | setType (int t) |
int | type () const |
![]() | |
scripted (ScriptingEnv *env) | |
void | scriptingChangeEvent (ScriptingChangeEvent *) |
~scripted () |
Protected Slots | |
void | scriptError (const QString &message, const QString &scriptName, int lineNumber) |
Private Attributes | |
QStringList | d_formulas |
double | d_from |
FunctionType | d_function_type |
double | d_to |
QString | d_variable |
Additional Inherited Members | |
![]() | |
int | d_type |
![]() | |
ScriptingEnv * | scriptEnv |
FunctionCurve::FunctionCurve | ( | ApplicationWindow * | parent, |
const FunctionType & | t, | ||
const char * | name = 0 |
||
) |
References d_variable, Graph::Function, and PlotCurve::setType().
FunctionCurve::FunctionCurve | ( | ApplicationWindow * | parent, |
const char * | name = 0 |
||
) |
References d_variable, Graph::Function, 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().
Referenced by Graph::modifyFunctionCurve().
|
inline |
References d_to.
Referenced by copy(), Graph::modifyFunctionCurve(), and FunctionDialog::setCurveToModify().
|
inline |
References d_formulas.
Referenced by copy(), Graph::modifyFunctionCurve(), TranslateCurveTool::selectDestination(), and FunctionDialog::setCurveToModify().
|
inline |
References d_function_type.
Referenced by copy(), Graph::modifyFunctionCurve(), TranslateCurveTool::selectDestination(), and FunctionDialog::setCurveToModify().
QString FunctionCurve::legend | ( | ) | const |
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::addFunctionCurve(), Graph::legendText(), and Graph::modifyFunctionCurve().
bool FunctionCurve::loadData | ( | int | points = 0 | ) |
References d_formulas, d_from, d_function_type, d_to, d_variable, Script::eval(), ScriptingEnv::newScript(), Normal, Parametric, Polar, scripted::scriptEnv, scriptError(), and Script::setDouble().
Referenced by Graph::addFunctionCurve(), Graph::modifyFunctionCurve(), and TranslateCurveTool::selectDestination().
|
protectedslot |
Referenced by loadData().
|
inline |
Provided for convenience when dealing with normal functions.
References d_formulas.
Referenced by Fit::insertFitFunctionCurve(), MultiPeakFit::insertPeakFunctionCurve(), and TranslateCurveTool::selectDestination().
|
inline |
References d_formulas.
Referenced by Graph::addFunctionCurve(), and Graph::modifyFunctionCurve().
|
inline |
References d_function_type.
Referenced by Graph::modifyFunctionCurve().
void FunctionCurve::setRange | ( | double | from, |
double | to | ||
) |
|
inline |
References d_variable.
Referenced by Graph::addFunctionCurve(), and Graph::modifyFunctionCurve().
|
inline |
References d_from.
Referenced by copy(), Graph::modifyFunctionCurve(), and FunctionDialog::setCurveToModify().
|
inline |
References d_variable.
Referenced by copy(), Graph::modifyFunctionCurve(), and FunctionDialog::setCurveToModify().
|
private |
Referenced by copy(), formulas(), legend(), loadData(), setFormula(), and setFormulas().
|
private |
Referenced by copy(), loadData(), setRange(), and startRange().
|
private |
Referenced by copy(), functionType(), legend(), loadData(), and setFunctionType().
|
private |
Referenced by copy(), endRange(), loadData(), and setRange().
|
private |
Referenced by copy(), FunctionCurve(), legend(), loadData(), setVariable(), and variable().