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.h

00001 /***************************************************************************
00002                           functiongraph.h  -  description
00003                              -------------------
00004     begin                : Sat May 25 2002
00005     copyright            : (C) 2002 by Fungmeista
00006     email                : mizunoami442@sourceforge.net
00007  ***************************************************************************/
00008 
00009 /***************************************************************************
00010  *                                                                         *
00011  *   This program is free software; you can redistribute it and/or modify  *
00012  *   it under the terms of the GNU General Public License as published by  *
00013  *   the Free Software Foundation; either version 2 of the License, or     *
00014  *   (at your option) any later version.                                   *
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