]>
git.mar77i.info Git - bigintmandel/blob - mandel.h
18 MpzPoint(mpz_class x
, mpz_class y
);
19 MpzPoint(const MpzPoint
&other
);
20 const mpz_class
get_x() const { return x
; }
21 const mpz_class
get_y() const { return y
; }
24 class MandelResultCell
{
25 friend class MandelMeta
;
31 MandelResultCell(size_t iter
, MpzPoint rpos
);
37 QVector
<MandelCell
> cells
;
42 MandelMeta(size_t max_iter
, QSize size
);
43 const size_t get_max_iter() const { return max_iter
; }
44 const QPixmap
get_pixmap() const { return QPixmap::fromImage(img
); }
45 const int get_width() const { return img
.width(); }
46 const int get_height() const { return img
.height(); }
47 const QSize
get_size() const { return img
.size(); }
48 const QVector
<MandelCell
> get_cells() const { return cells
; }
49 const MpzPoint
get_center_f() const { return center_f
; }
50 const mpz_class
get_one() const { return one
; }
52 void zoom2x(QPoint pos
);
53 void finished_cell(int num
, const MandelResultCell
&cell
);
54 static MandelResultCell
iterate(const MandelCell
&cell
);
67 MandelCell(MandelMeta
*meta
);
68 MandelCell(const MandelCell
&cell
);
69 inline const size_t get_iter() const { return iter
; }
70 inline const MpzPoint
get_rpos0() const { return rpos0
; }
72 QPoint
update_result(size_t iter
, const MpzPoint
&rpos
);
73 void reset_iter_and_rpos();
74 void set_meta(MandelMeta
*meta
);
75 void set_pos(const QPoint pos
);
76 MandelResultCell
iterate() const;