00001 #ifndef FRACTAL_H
00002 #define FRACTAL_H
00003
00004 #include <math.h>
00005 #include <complex>
00006 #include <QString>
00007
00008 typedef std::complex<double> point;
00009
00010
00011 class CFractal
00012 {
00013 public:
00014 enum EFractalType{
00015 MANDELBROT,
00016 JULIA,
00017 BUDDHABROT,
00018 CLIFFORD,
00019 NOVA,
00020 CRAB,
00021 NEWTON,
00022 BURNINGSHIP,
00023 TRICORN,
00024 SHARINGAN};
00025
00026 CFractal();
00027 void define (QString name, EFractalType fracType, int left, int bottom, int right, int top, double step);
00028
00029
00030
00031 private:
00032 QString fractalName;
00033 EFractalType fractalType;
00034 static int index;
00035 int gridLeft;
00036 int gridBottom;
00037 int gridRight;
00038 int gridTop;
00039 int gridLength;
00040 int gridWidth;
00041 double stepBetweenPoints;
00042
00043
00044 };
00045
00046
00047
00048 #endif // FRACTAL_H