Fraktale 1.0
Qt-Programm zur interaktiven Erforschung von Fraktalen.
|
00001 #ifndef _COMPLEXFRACTALRENDERER_HPP_ 00002 #define _COMPLEXFRACTALRENDERER_HPP_ 00003 00004 #include <QImage> 00005 #include <memory> 00006 00007 #include "complexfractal.hpp" 00008 #include "colormapper.hpp" 00009 00015 class ComplexFractalRenderer 00016 { 00017 public: 00024 ComplexFractalRenderer(ComplexFractal* fractal, ColorMapper* mapper); 00025 00037 QImage render(std::complex<double> topLeft = std::complex<double>(-2.0, 1.5), double step = 0.005, int precision = 50, int width = 800, int height = 600, bool optimized = false) const; 00038 private: 00039 std::auto_ptr<ComplexFractal> fractal; 00040 std::auto_ptr<ColorMapper> mapper; 00041 }; 00042 00043 #endif // _COMPLEXFRACTALRENDERER_HPP_