14 #include <QtGui/QApplication> 15 #include <QtGui/QWidget> 16 #include <QtCore/QThread> 31 template<
typename Real>
void render(
int img_width,
int img_height);
49 void resizeEvent(QResizeEvent *);
50 void paintEvent(QPaintEvent *);
51 void mousePressEvent(QMouseEvent *event);
52 void mouseMoveEvent(QMouseEvent *event);
56 size(0), buffer(0), draft(16)
58 setAutoFillBackground(
false);
59 threadcount = QThread::idealThreadCount();
61 for(
int th = 0; th < threadcount; th++) threads[th] =
new MandelbrotThread(
this, th);
65 if(buffer)
delete[]buffer;
66 for(
int th = 0; th < threadcount; th++)
delete threads[th];
71 #endif // MANDELBROT_H
MandelbrotThread(MandelbrotWidget *w, int i)
void render(int img_width, int img_height)
MandelbrotWidget * widget