Main Page Class Hierarchy Alphabetical List Compound List File List Compound Members Related Pages Search
functiongraph.h00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018 #ifndef FUNCTIONGRAPH_H
00019 #define FUNCTIONGRAPH_H
00020
00021 #include "expressiongraph.h"
00022
00023 class FungParser;
00024
00029 class FunctionGraph : public ExpressionGraph
00030 {
00031 Q_OBJECT
00032
00033 public:
00034 FunctionGraph ( QWidget *parent=0, const char *name=0 );
00035 ~FunctionGraph();
00036
00038 int execMathFunction( const char * id );
00039
00040 virtual void installMathFunctions();
00041
00042 virtual inline int getGraphType() const{return FUNCTIONGRAPH;}
00043
00044 protected:
00045 virtual const char * independent_vars(){return "x";}
00046 virtual const char * dependent_var(int=0){return "y";}
00047 virtual void drawExpression(QPainter *painter, Expression &);
00048 virtual int setXYForTrace(const double, const double, double *, double *, Expression &);
00049 };
00050
00051 #endif //FUNCTIONGRAPH_H
|