SciDAVis  1.D4
Public Types | Public Member Functions | Protected Slots | Private Attributes
FunctionCurve Class Reference

#include <FunctionCurve.h>

Inheritance diagram for FunctionCurve:
PlotCurve scripted

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 (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 ()
- Public Member Functions inherited from PlotCurve
QwtDoubleRect boundingRect () const
 PlotCurve (const QString &name=QString::null)
void setType (int t)
int type () const
- Public Member Functions inherited from scripted
 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

- Protected Attributes inherited from PlotCurve
int d_type
- Protected Attributes inherited from scripted
ScriptingEnvscriptEnv

Member Enumeration Documentation

Enumerator:
Normal 
Parametric 
Polar 

Constructor & Destructor Documentation

FunctionCurve::FunctionCurve ( ApplicationWindow parent,
const FunctionType t,
const char *  name = 0 
)
FunctionCurve::FunctionCurve ( ApplicationWindow parent,
const char *  name = 0 
)

Member Function Documentation

void FunctionCurve::copy ( FunctionCurve f)
double FunctionCurve::endRange ( )
inline
QStringList FunctionCurve::formulas ( )
inline
FunctionType FunctionCurve::functionType ( )
inline
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)
void FunctionCurve::scriptError ( const QString &  message,
const QString &  scriptName,
int  lineNumber 
)
protectedslot

Referenced by loadData().

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

Referenced by copy(), loadData(), setRange(), and startRange().

FunctionType FunctionCurve::d_function_type
private
double FunctionCurve::d_to
private

Referenced by copy(), endRange(), loadData(), and setRange().

QString FunctionCurve::d_variable
private

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