Home

Download

Features

Screenshots

Handbook

Browse Source

Authors

SourceForge.net Logo
Hosted by SourceForge.net

OSI Certified


Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   Related Pages   Search  

FunctionGraph Class Reference

A class for plotting/graphing explicit two dimensional functions. More...

#include <functiongraph.h>

Inheritance diagram for FunctionGraph:

Inheritance graph
[legend]
Collaboration diagram for FunctionGraph:

Collaboration graph
[legend]
List of all members.

Public Methods

 FunctionGraph (QWidget *parent=0, const char *name=0)
 ~FunctionGraph ()
int execMathFunction (const char *id)
 Execute an installed MathFunction with the given id.

virtual void installMathFunctions ()
 Implement this function to install any MathFunction's to a specific class.

virtual int getGraphType () const

Protected Methods

virtual const char * independent_vars ()
 Returns a list of independent variables for the expression which, when there are more than one, are seperated by commas.

virtual const char * dependent_var (int=0)
 Returns the dependent variable.

virtual void drawExpression (QPainter *painter, Expression &)
virtual int setXYForTrace (const double, const double, double *, double *, Expression &)

Detailed Description

A class for plotting/graphing explicit two dimensional functions.

Author:
Fungmeista

Definition at line 29 of file functiongraph.h.


Member Function Documentation

virtual const char* FunctionGraph::dependent_var int    = 0 [inline, protected, virtual]
 

Returns the dependent variable.

The argument 'i' is used to get each dependent variable if there are more than one ( i.e. parametric graph ).

Implements ExpressionGraph.

Definition at line 46 of file functiongraph.h.

void FunctionGraph::installMathFunctions   [virtual]
 

Implement this function to install any MathFunction's to a specific class.

A math function should be added by calling addMathFunction( MathFunction*, const char * id ) Example: addMathFunction(new DistanceMathFunction(this), "Distance");

Reimplemented from BasicGraph.

Definition at line 37 of file functiongraph.cpp.

References MathFunctionImplementor::addMathFunction(), and BasicGraph::installMathFunctions().


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