Ajout de l'ensemble du workspace.
[GPU.git] / WCudaMSE / BilatTools_Cuda_Image / src / core / cudaImageTools / fonctionel / header / AnimateurFonctionelFreeGL.h
diff --git a/WCudaMSE/BilatTools_Cuda_Image/src/core/cudaImageTools/fonctionel/header/AnimateurFonctionelFreeGL.h b/WCudaMSE/BilatTools_Cuda_Image/src/core/cudaImageTools/fonctionel/header/AnimateurFonctionelFreeGL.h
new file mode 100755 (executable)
index 0000000..b07beab
--- /dev/null
@@ -0,0 +1,73 @@
+#ifndef ANIMATEUR_FONCTIONEL_FREE_GL_H_\r
+#define ANIMATEUR_FONCTIONEL_FREE_GL_H_\r
+\r
+#include "AnimableFonctionel_I.h"\r
+\r
+using std::string;\r
+\r
+/*----------------------------------------------------------------------*\\r
+ |*                    Declaration                                     *|\r
+ \*---------------------------------------------------------------------*/\r
+\r
+/*--------------------------------------*\\r
+ |*            Public                  *|\r
+ \*-------------------------------------*/\r
+\r
+class AnimateurFonctionelFreeGL\r
+    {\r
+       /*--------------------------------------*\\r
+       |*              Constructor             *|\r
+        \*-------------------------------------*/\r
+\r
+    public:\r
+\r
+       /**\r
+        * Hyp:\r
+        *      (H1) nbIteration suffisamment grand pour que timeElapse soit significatif\r
+        *      (H2) ptrAnimable image uchar4\r
+        */\r
+       AnimateurFonctionelFreeGL(AnimableFonctionel_I* ptrAnimable,int nbIteration=1000);\r
+       virtual ~AnimateurFonctionelFreeGL(void);\r
+\r
+       /*--------------------------------------*\\r
+        |*             Methodes                *|\r
+        \*-------------------------------------*/\r
+\r
+    public :\r
+\r
+          int getFps(void);\r
+\r
+    private:\r
+\r
+       /**\r
+        * Synchrone, ,return fps\r
+        */\r
+       int start(void);\r
+       void printStat(void);\r
+\r
+    private:\r
+\r
+       /*--------------------------------------*\\r
+        |*             Attributs               *|\r
+        \*-------------------------------------*/\r
+\r
+    private:\r
+\r
+       // Inputs\r
+       int nbIteration;\r
+       AnimableFonctionel_I* ptrAnimable;\r
+\r
+       // Tools\r
+\r
+       // Output\r
+       int fps;\r
+       float timeElapseS;\r
+\r
+    };\r
+\r
+#endif\r
+\r
+/*----------------------------------------------------------------------*\\r
+ |*                    End                                             *|\r
+ \*---------------------------------------------------------------------*/\r
+\r