Ajout de l'ensemble du workspace.
[GPU.git] / WCudaMSE / Tuto_Image / src / cpp / core / 02_Damier_Zoomable / b_moo / DamierMOO.h
diff --git a/WCudaMSE/Tuto_Image/src/cpp/core/02_Damier_Zoomable/b_moo/DamierMOO.h b/WCudaMSE/Tuto_Image/src/cpp/core/02_Damier_Zoomable/b_moo/DamierMOO.h
new file mode 100755 (executable)
index 0000000..df015d9
--- /dev/null
@@ -0,0 +1,70 @@
+#ifndef DAMIER_MOO_H_\r
+#define DAMIER_MOO_H_\r
+\r
+#include "cudaType.h"\r
+\r
+#include "VariateurF.h"\r
+#include "DomaineMath.h"\r
+#include "DamierMath.h"\r
+\r
+\r
+/*----------------------------------------------------------------------*\\r
+ |*                    Declaration                                     *|\r
+ \*---------------------------------------------------------------------*/\r
+\r
+/*--------------------------------------*\\r
+ |*            Public                  *|\r
+ \*-------------------------------------*/\r
+\r
+class DamierMOO\r
+    {\r
+       /*--------------------------------------*\\r
+        |*             Constructeur            *|\r
+        \*-------------------------------------*/\r
+\r
+    public:\r
+\r
+       DamierMOO(unsigned int w, unsigned int h, float dt, int n);\r
+       virtual ~DamierMOO(void);\r
+\r
+       /*--------------------------------------*\\r
+       |*              Methode                 *|\r
+        \*-------------------------------------*/\r
+\r
+    public:\r
+\r
+       void process(uchar4* ptrTabPixels, int w, int h, const DomaineMath& domaineMath);\r
+\r
+       int getN();\r
+       float getT();\r
+\r
+       void animationStep();\r
+\r
+    private:\r
+\r
+       void forAutoOMP(uchar4* ptrTabPixels, int w, int h, const DomaineMath& domaineMath);\r
+       void entrelacementOMP(uchar4* ptrTabPixels, int w, int h, const DomaineMath& domaineMath);\r
+\r
+       void workPixel(uchar4* ptrColorIJ,int i, int j,int s, const DomaineMath& domaineMath,DamierMath* ptrDamierMath);\r
+\r
+       /*--------------------------------------*\\r
+       |*              Attribut                *|\r
+        \*-------------------------------------*/\r
+\r
+    protected:\r
+\r
+       // Inputs\r
+       int n;\r
+       unsigned int w;\r
+       unsigned int h;\r
+\r
+       // Tools\r
+       VariateurF variateurT; // fait varier para animation t\r
+       bool isEntrelacement;\r
+    };\r
+\r
+#endif \r
+\r
+/*----------------------------------------------------------------------*\\r
+ |*                    End                                             *|\r
+ \*---------------------------------------------------------------------*/\r