#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() | |||
) |
FunctionCurve::FunctionCurve | ( | const QString & | name = QString() |
) |
void FunctionCurve::copy | ( | FunctionCurve * | f | ) |
double FunctionCurve::endRange | ( | ) | [inline] |
QStringList FunctionCurve::formulas | ( | ) | [inline] |
FunctionType FunctionCurve::functionType | ( | ) | [inline] |
QString FunctionCurve::legend | ( | ) |
Returns a string that can be displayed in a plot legend.
void FunctionCurve::loadData | ( | int | points = 0 |
) |
QString FunctionCurve::saveToString | ( | ) |
Returns a string used when saving to a project file.
void FunctionCurve::setFormula | ( | const QString & | s | ) | [inline] |
Provided for convenience when dealing with normal functions.
void FunctionCurve::setFormulas | ( | const QStringList & | lst | ) | [inline] |
void FunctionCurve::setFunctionType | ( | const FunctionType & | t | ) | [inline] |
void FunctionCurve::setRange | ( | double | from, | |
double | to | |||
) |
void FunctionCurve::setVariable | ( | const QString & | s | ) | [inline] |
double FunctionCurve::startRange | ( | ) | [inline] |
QString FunctionCurve::variable | ( | ) | [inline] |
QStringList FunctionCurve::d_formulas [private] |
double FunctionCurve::d_from [private] |
FunctionType FunctionCurve::d_function_type [private] |
double FunctionCurve::d_to [private] |
QString FunctionCurve::d_variable [private] |