]>
git.mar77i.info Git - bigintmandel/blob - mandel.h
13 class MandelResultCell
{
14 friend class MandelMeta
;
20 MandelResultCell(size_t iter
, QPointF rpos
);
26 QVector
<MandelCell
> cells
;
28 qreal one
, four
, scale
;
31 MandelMeta(size_t max_iter
, QSize size
);
32 const size_t get_max_iter() const { return max_iter
; }
33 const QPixmap
get_pixmap() const { return QPixmap::fromImage(img
); }
34 const int get_width() const { return img
.width(); }
35 const int get_height() const { return img
.height(); }
36 const QSize
get_size() const { return img
.size(); }
37 const QVector
<MandelCell
> get_cells() const { return cells
; }
38 const QPointF
get_center_f() const { return center_f
; }
39 const qreal
get_four() const { return four
; }
40 const qreal
get_scale() const { return scale
; }
42 void zoom2x(QPoint pos
);
43 void finished_cell(int num
, const MandelResultCell
&cell
);
44 static MandelResultCell
iterate(const MandelCell
&cell
);
57 MandelCell(MandelMeta
*meta
);
58 MandelCell(const MandelCell
&cell
);
59 inline const size_t get_iter() const { return iter
; }
60 inline const QPointF
get_rpos0() const { return rpos0
; }
62 QPoint
update_result(size_t iter
, const QPointF
&rpos
);
63 void reset_iter_and_rpos();
64 void set_meta(MandelMeta
*meta
);
65 void set_pos(const QPoint pos
);
66 MandelResultCell
iterate() const;