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);
40 Fractal
* FractalProvider::createJulia()
45 return new FractalJulia(dw
, dh
, 0.01, -0.745, -0.32, -0.09, 0.1);
48 ImageFonctionel
* FractalProvider::createMandelbrotGL()
50 ColorRGB_01
* ptrColorTitre
= new ColorRGB_01(0, 0, 0);
51 return new ImageFonctionel(createMandelbrot(), ptrColorTitre
); // both ptr destroy by destructor of ImageFonctionel
55 ImageFonctionel
* FractalProvider::createJuliaGL()
57 ColorRGB_01
* ptrColorTitre
= new ColorRGB_01(0, 0, 0);
58 return new ImageFonctionel(createJulia(), ptrColorTitre
); // both ptr destroy by destructor of ImageFonctionel
61 /*--------------------------------------*\
63 \*-------------------------------------*/
65 /*----------------------------------------------------------------------*\
67 \*---------------------------------------------------------------------*/