FunctionCurve Class Reference

#include <FunctionCurve.h>

Inheritance diagram for FunctionCurve:

PlotCurve

List of all members.

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


Member Enumeration Documentation

Enumerator:
Normal 
Parametric 
Polar 


Constructor & Destructor Documentation

FunctionCurve::FunctionCurve ( const FunctionType t,
const QString &  name = QString() 
)

FunctionCurve::FunctionCurve ( const QString &  name = QString()  ) 


Member Function Documentation

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.

References d_formulas, d_function_type, d_variable, Normal, Parametric, and Polar.

Referenced by Graph::modifyFunctionCurve().

void FunctionCurve::loadData ( int  points = 0  ) 

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]

void FunctionCurve::setFunctionType ( const FunctionType t  )  [inline]

References d_function_type.

Referenced by Graph::modifyFunctionCurve().

void FunctionCurve::setRange ( double  from,
double  to 
)

void FunctionCurve::setVariable ( const QString &  s  )  [inline]

double FunctionCurve::startRange (  )  [inline]

QString FunctionCurve::variable (  )  [inline]


Member Data Documentation

QStringList FunctionCurve::d_formulas [private]

double FunctionCurve::d_from [private]

double FunctionCurve::d_to [private]

QString FunctionCurve::d_variable [private]


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

Generated on Sun Jun 15 21:32:22 2008 for QtiPlot by  doxygen 1.5.6