00001 #pragma once
00002
00003 #define GLUT_DISABLE_ATEXIT_HACK
00004 #include <windows.h>
00005 #include <GL/glut.h>
00006 #include <complex>
00007 #include <vector>
00008 #include <cmath>
00009
00010 typedef std::complex<double> Complex;
00011 typedef std::vector<Complex*>::iterator CItr;
00012
00013
00014 class MeshGrid
00015 {
00016 public:
00017 virtual void Draw() = 0;
00018
00019 public:
00020 std::vector<Complex*> complexMesh;
00021 std::vector<Complex*>::iterator itr;
00022
00023 static const double POS_PI;
00024 static const double NEG_PI;
00025 static const unsigned int GRID_RES;
00026 static const unsigned int GRID_INTERVAL;
00027 static const double leftRange;
00028 static const double rightRange;
00029 static const double interval;
00030 static const float eps;
00031
00032 };