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  

glfunctiongraph.h

00001 /***************************************************************************
00002                           glfunctiongraph.h  -  description
00003                              -------------------
00004     begin                : Fri Oct 18 2002
00005     copyright            : (C) 2002 by Fungmeista
00006     email                : mizunoami44@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 GLFUNCTIONGRAPH_H
00019 #define GLFUNCTIONGRAPH_H
00020 
00021 #include "glexpressiongraph.h"
00022 
00023 class Cartesian3DCoord;
00024 class FungParser;
00025 
00030 class GLFunctionGraph : public GLExpressionGraph
00031 {
00032     Q_OBJECT
00033 
00034     public: 
00035         GLFunctionGraph(QWidget *parent=0, const char *name=0);
00036         ~GLFunctionGraph();
00037 
00038         virtual inline int getGraphType() const{return GLFUNCTIONGRAPH;}
00039 
00040     protected:
00041         const char * independent_vars() const{return "x,y";}
00042         const char * dependent_var() const{return "z";}
00043         void trace(GLfloat mouseX, GLfloat mouseY, FungParser &parsed_function, GLfloat *x, GLfloat *y, GLfloat *z);
00044 
00045         virtual Cartesian3DCoord2DVector getValues( FungParser &, GLfloat *, GLfloat * );
00046 };
00047 
00048 #endif
00049