Ajout de l'ensemble du workspace.
[GPU.git] / WCudaMSE / BilatTools_Cuda_Image / src / core / cudaImageTools / fonctionel / header / AnimateurFonctionelFreeGL.h
1 #ifndef ANIMATEUR_FONCTIONEL_FREE_GL_H_
2 #define ANIMATEUR_FONCTIONEL_FREE_GL_H_
3
4 #include "AnimableFonctionel_I.h"
5
6 using std::string;
7
8 /*----------------------------------------------------------------------*\
9 |* Declaration *|
10 \*---------------------------------------------------------------------*/
11
12 /*--------------------------------------*\
13 |* Public *|
14 \*-------------------------------------*/
15
16 class AnimateurFonctionelFreeGL
17 {
18 /*--------------------------------------*\
19 |* Constructor *|
20 \*-------------------------------------*/
21
22 public:
23
24 /**
25 * Hyp:
26 * (H1) nbIteration suffisamment grand pour que timeElapse soit significatif
27 * (H2) ptrAnimable image uchar4
28 */
29 AnimateurFonctionelFreeGL(AnimableFonctionel_I* ptrAnimable,int nbIteration=1000);
30 virtual ~AnimateurFonctionelFreeGL(void);
31
32 /*--------------------------------------*\
33 |* Methodes *|
34 \*-------------------------------------*/
35
36 public :
37
38 int getFps(void);
39
40 private:
41
42 /**
43 * Synchrone, ,return fps
44 */
45 int start(void);
46 void printStat(void);
47
48 private:
49
50 /*--------------------------------------*\
51 |* Attributs *|
52 \*-------------------------------------*/
53
54 private:
55
56 // Inputs
57 int nbIteration;
58 AnimableFonctionel_I* ptrAnimable;
59
60 // Tools
61
62 // Output
63 int fps;
64 float timeElapseS;
65
66 };
67
68 #endif
69
70 /*----------------------------------------------------------------------*\
71 |* End *|
72 \*---------------------------------------------------------------------*/
73