+#include "DamierProvider.h"\r
+#include "MathTools.h"\r
+\r
+/*----------------------------------------------------------------------*\\r
+ |* Declaration *|\r
+ \*---------------------------------------------------------------------*/\r
+\r
+/*--------------------------------------*\\r
+ |* Imported *|\r
+ \*-------------------------------------*/\r
+\r
+/*--------------------------------------*\\r
+ |* Public *|\r
+ \*-------------------------------------*/\r
+\r
+/*--------------------------------------*\\r
+ |* Private *|\r
+ \*-------------------------------------*/\r
+\r
+/*----------------------------------------------------------------------*\\r
+ |* Implementation *|\r
+ \*---------------------------------------------------------------------*/\r
+\r
+/*--------------------------------------*\\r
+ |* Public *|\r
+ \*-------------------------------------*/\r
+\r
+/*-----------------*\\r
+ |* static *|\r
+ \*----------------*/\r
+\r
+Damier* DamierProvider::create()\r
+ {\r
+ int dw = 16 * 60; // =32*30=960\r
+ int dh = 16 * 60; // =32*30=960\r
+\r
+ float dt = 2 * PI / 8000;\r
+ int n = 2;\r
+\r
+ return new Damier(dw, dh, dt, n);\r
+ }\r
+\r
+ImageFonctionel* DamierProvider::createGL(void)\r
+ {\r
+ ColorRGB_01* ptrColorTitre=new ColorRGB_01(0,0,0);\r
+\r
+ return new ImageFonctionel(create(),ptrColorTitre); // both ptr destroy by destructor of ImageFonctionel\r
+ }\r
+\r
+/*--------------------------------------*\\r
+ |* Private *|\r
+ \*-------------------------------------*/\r
+\r
+/*----------------------------------------------------------------------*\\r
+ |* End *|\r
+ \*---------------------------------------------------------------------*/\r