X-Git-Url: http://git.euphorik.ch/index.cgi?a=blobdiff_plain;f=WCudaMSE%2FStudent_Cuda_Image%2Fsrc%2Fcpp%2Fcore%2F03_Newton%2Fmoo%2Fhost%2FNewton.h;fp=WCudaMSE%2FStudent_Cuda_Image%2Fsrc%2Fcpp%2Fcore%2F03_Newton%2Fmoo%2Fhost%2FNewton.h;h=ad869799491ecc4fb82e41719b2b37366d0ee6a8;hb=7b1db14e9df63c577384e1722d2028438a51944e;hp=0000000000000000000000000000000000000000;hpb=bd178531f80f8bc41c998d1c4588f9e18cc29389;p=GPU.git 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 index 0000000..ad86979 --- /dev/null +++ b/WCudaMSE/Student_Cuda_Image/src/cpp/core/03_Newton/moo/host/Newton.h @@ -0,0 +1,42 @@ +#ifndef NEWTON_H_ +#define NEWTON_H_ + +#include "cudaTools.h" +#include "AnimableFonctionel_I.h" +#include "MathTools.h" +#include "VariateurF.h" + +class Newton : public AnimableFonctionel_I + { + public: + Newton(int w, int h); + ~Newton(); + + void runGPU(uchar4* ptrDevPixels, const DomaineMath& domaineMath) /*override*/; + void animationStep() /*override*/; + + int getW() /*override*/; + int getH() /*override*/; + DomaineMath* getDomaineMathInit() /*override*/; + + float getT() /*override*/; + + string getTitle(void) /*override*/; + + private: + VariateurF variateurAnimation; + float t; + + // Inputs + const int w; + const int h; + + const dim3 dg; + const dim3 db; + + DomaineMath* ptrDomaineMathInit; + + const string title; + }; + +#endif