Ajout du squelette de Newton.
[GPU.git] / WCudaMSE / Student_Cuda_Image / src / cpp / core / 03_Newton / moo / host / Newton.h
diff --git a/WCudaMSE/Student_Cuda_Image/src/cpp/core/03_Newton/moo/host/Newton.h b/WCudaMSE/Student_Cuda_Image/src/cpp/core/03_Newton/moo/host/Newton.h
new file mode 100755 (executable)
index 0000000..ad86979
--- /dev/null
@@ -0,0 +1,42 @@
+#ifndef NEWTON_H_\r
+#define NEWTON_H_\r
+\r
+#include "cudaTools.h"\r
+#include "AnimableFonctionel_I.h"\r
+#include "MathTools.h"\r
+#include "VariateurF.h"\r
+\r
+class Newton : public AnimableFonctionel_I\r
+    {\r
+    public:\r
+        Newton(int w, int h);\r
+        ~Newton();\r
+\r
+        void runGPU(uchar4* ptrDevPixels, const DomaineMath& domaineMath) /*override*/;\r
+        void animationStep() /*override*/;\r
+\r
+        int getW() /*override*/;\r
+        int getH() /*override*/;\r
+        DomaineMath* getDomaineMathInit() /*override*/;\r
+\r
+        float getT() /*override*/;\r
+\r
+        string getTitle(void) /*override*/;\r
+\r
+    private:\r
+        VariateurF variateurAnimation;\r
+        float t;\r
+\r
+        // Inputs\r
+        const int w;\r
+        const int h;\r
+\r
+        const dim3 dg;\r
+        const dim3 db;\r
+\r
+        DomaineMath* ptrDomaineMathInit;\r
+\r
+        const string title;\r
+    };\r
+\r
+#endif\r