00001 #ifndef __GENERATION_HPP__
00002 #define __GENERATION_HPP__
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026 #include <QThread>
00027
00028 #include <QVector>
00029 #include <QColor>
00030
00031 #include "../global.hpp"
00032
00033 class QObject;
00034 class QString;
00035 class QImage;
00036
00037 class ProgressDialog;
00038
00042 class Generation : public QThread
00043 {
00044 Q_OBJECT
00045
00046 private:
00047
00048 ProgressDialog* pd;
00050 Params params;
00051 QVector<QRgb> table;
00053 unsigned char* pFractale;
00054 QString* pTitle;
00056 public:
00057
00065 Generation(const Params params,const QVector<QRgb> table, QWidget* parentWin,
00066 QObject* parent = 0);
00067
00071 ~Generation(void);
00072
00076 void run(void);
00077
00082 unsigned char* getFractale(void)const { return pFractale; };
00083
00088 QString getTitle(void)const;
00089
00094 Params getParams(void)const { return params; };
00095
00100 const QVector<QRgb> getTable(void)const { return table; }
00101 };
00102
00103 #endif