Ajout de l'ensemble du workspace.
[GPU.git] / WCudaMSE / API_Bilat_Image_GL / INC / cpu / GLImageFonctionelSelections_CPU.h
1 #ifndef GLIMAGE_FONCTIONEL_SELECTIONS_CPU_H
2 #define GLIMAGE_FONCTIONEL_SELECTIONS_CPU_H
3
4 #include "GLImageSelections_CPU.h"
5 #include "ImageFonctionelMOOs_A_CPU.h"
6
7 /*----------------------------------------------------------------------*\
8 |* Declaration *|
9 \*---------------------------------------------------------------------*/
10
11 /*--------------------------------------*\
12 |* Public *|
13 \*-------------------------------------*/
14
15 namespace cpu
16 {
17 class CBI_GLIMAGE GLImageFonctionelSelections: public cpu::GLImageSelections
18 {
19
20 /*--------------------------------------*\
21 |* Constructor *|
22 \*-------------------------------------*/
23
24 public:
25
26 GLImageFonctionelSelections(cpu::ImageFonctionelMOOs_A *ptrImageFonctionel, bool isAnimationEnable = true);
27
28 /*--------------------------------------*\
29 |* Destructor *|
30 \*-------------------------------------*/
31
32 public:
33
34 virtual ~GLImageFonctionelSelections();
35
36 /*--------------------------------------*\
37 |* Methodes *|
38 \*-------------------------------------*/
39
40 public:
41
42 /**
43 * surcharge
44 */
45 virtual void onKeyPressed(const KeyEvent &event);
46
47 protected:
48
49 /**
50 * Callback for square selection with mouse
51 * Then selection is performed with the mouse, 3 arguments :
52 * 1) selected domaine in frame coordinate
53 * 2) dx is the screen width in pixel
54 * 3) dy is the screen height in pixel
55 **/
56 virtual void selectionPerformed(cpu::DomaineEcran& domaine, int dx, int dy);
57
58 /*--------------------------------------*\
59 |* Get *|
60 \*-------------------------------------*/
61
62 cpu::ImageFonctionelMOOs_A* getPtrImageFonctionelSelectionMOO();
63
64 };
65 }
66
67 #endif
68
69 /*----------------------------------------------------------------------*\
70 |* End *|
71 \*---------------------------------------------------------------------*/