#include <iostream>\r
#include <stdlib.h>\r
#include <string.h>\r
+using namespace std;\r
\r
#include "GLUTImageViewers.h"\r
\r
\r
#include "Rippling0Provider.h"\r
#include "RipplingProvider.h"\r
-\r
#include "FractalProvider.h"\r
+#include "NewtonProvider.h"\r
+#include "HeatTransfertProvider.h"\r
+#include "RayTracingProvider.h"\r
+#include "ConvolutionProvider.h"\r
\r
-using std::cout;\r
-using std::endl;\r
-using std::string;\r
-\r
-/*----------------------------------------------------------------------*\\r
- |* Declaration *|\r
- \*---------------------------------------------------------------------*/\r
-\r
-/*--------------------------------------*\\r
- |* Imported *|\r
- \*-------------------------------------*/\r
-\r
-/*--------------------------------------*\\r
- |* Public *|\r
- \*-------------------------------------*/\r
-\r
-int mainGL(void);\r
-\r
-/*--------------------------------------*\\r
- |* Private *|\r
- \*-------------------------------------*/\r
-\r
-/*----------------------------------------------------------------------*\\r
- |* Implementation *|\r
- \*---------------------------------------------------------------------*/\r
-\r
-/*--------------------------------------*\\r
- |* Public *|\r
- \*-------------------------------------*/\r
+#include "Viewer.h"\r
\r
int mainGL(void)\r
{\r
- //Rippling0Image* ptrRippling0 = Rippling0Provider::createGL();\r
- //Image* ptrRippling = RipplingProvider::createGL();\r
-\r
- ImageFonctionel* ptrFractalMandelbrot = FractalProvider::createGL();\r
+ // AutoViewer<Rippling0Image, Rippling0Provider> rippling0(true, true, 10, 10);\r
+ // AutoViewer<Image, RipplingProvider> rippling0(true, true, 10, 10);\r
+ // Viewer<ImageFonctionel> fractalMandelbrot(MandelbrotProvider::createGL(true), true, true, 20, 20);\r
+ // AutoViewer<ImageFonctionel, JuliaProvider> fractalJulia(true, true, 30, 30);\r
+ // AutoViewer<ImageFonctionel, NewtonProvider> newtown(true, true, 20, 20);\r
+ // AutoViewer<Image, HeatTransfertProvider> heatTransfert(true, false, 20, 20);\r
+ // AutoViewer<ImageFonctionel, RayTracingProvider> rayTracing(true, true, 20, 20);\r
+ Viewer<Image> convolution(ConvolutionProvider::createGL("/media/Data/Video/nasaFHD_short.avi"), true, true, 20, 20);\r
\r
- const bool isAnimation = true;\r
- const bool isSelection = true;\r
-\r
- //GLUTImageViewers rippling0Viewer(ptrRippling0, isAnimation, isSelection, 0, 0);\r
- //GLUTImageViewers ripplingViewer(ptrRippling, isAnimation, isSelection, 10, 10);\r
-\r
- GLUTImageViewers fractalMandelbrotViewer(ptrFractalMandelbrot, true, true, 20, 20);\r
-\r
- GLUTImageViewers::runALL(); // Bloquant, Tant qu'une fenetre est ouverte\r
-\r
- // destruction\r
- //delete ptrRippling0;\r
- //delete ptrRippling;\r
-\r
- delete ptrFractalMandelbrot;\r
+ GLUTImageViewers::runALL(); // Bloquant, Tant qu'une fenêtre est ouverte.\r
\r
return EXIT_SUCCESS;\r
}\r
-\r
-/*--------------------------------------*\\r
- |* Private *|\r
- \*-------------------------------------*/\r
-\r
-/*----------------------------------------------------------------------*\\r
- |* End *|\r
- \*---------------------------------------------------------------------*/\r
-\r