1 #include "FractalProvider.h"
4 /*----------------------------------------------------------------------*\
6 \*---------------------------------------------------------------------*/
8 /*--------------------------------------*\
10 \*-------------------------------------*/
12 /*--------------------------------------*\
14 \*-------------------------------------*/
16 /*--------------------------------------*\
18 \*-------------------------------------*/
20 /*----------------------------------------------------------------------*\
22 \*---------------------------------------------------------------------*/
24 /*--------------------------------------*\
26 \*-------------------------------------*/
32 Fractal
* FractalProvider::createMandelbrot()
37 return new FractalMandelbrot(dw
, dh
, 0.2);
41 Fractal
* FractalProvider::createJulia()
46 return new FractalJulia(dw
, dh
, 0.01, -0.745, -0.32, -0.09, 0.1);
49 ImageFonctionel
* FractalProvider::createMandelbrotGL()
51 ColorRGB_01
* ptrColorTitre
= new ColorRGB_01(0, 0, 0);
52 return new ImageFonctionel(createMandelbrot(), ptrColorTitre
); // both ptr destroy by destructor of ImageFonctionel
56 ImageFonctionel
* FractalProvider::createJuliaGL()
58 ColorRGB_01
* ptrColorTitre
= new ColorRGB_01(0, 0, 0);
59 return new ImageFonctionel(createJulia(), ptrColorTitre
); // both ptr destroy by destructor of ImageFonctionel
62 /*--------------------------------------*\
64 \*-------------------------------------*/
66 /*----------------------------------------------------------------------*\
68 \*---------------------------------------------------------------------*/