Ajout de l'ensemble du workspace.
[GPU.git] / WCudaMSE / API_Bilat_Image_GL_Cuda / INC / gpu / GLImageFonctionelSelections_GPU.h
1 #ifndef GLIMAGE_FONCTIONEL_SELECTIONS_GPU_H
2 #define GLIMAGE_FONCTIONEL_SELECTIONS_GPU_H
3
4 #include "GLImageSelections_GPU.h"
5 #include "ImageFonctionelMOOs_A_GPU.h"
6
7 #define BACK_SPACE 8 //code ascii for Backspace
8
9 /*----------------------------------------------------------------------*\
10 |* Declaration *|
11 \*---------------------------------------------------------------------*/
12
13 /*--------------------------------------*\
14 |* Public *|
15 \*-------------------------------------*/
16
17 namespace gpu
18 {
19
20 class CBI_GLIMAGE_CUDA GLImageFonctionelSelections: public gpu::GLImageSelections
21 {
22 public:
23
24 /*--------------------------------------*\
25 |* Constructor *|
26 \*-------------------------------------*/
27
28 GLImageFonctionelSelections(gpu::ImageFonctionelMOOs_A* ptrImageCudaFonctionelMOO, bool isAnimationEnable = true);
29
30 virtual ~GLImageFonctionelSelections();
31
32 /*--------------------------------------*\
33 |* Get *|
34 \*-------------------------------------*/
35
36 public:
37
38 gpu::ImageFonctionelMOOs_A* getPtrImageCudaFonctionelMOO();
39
40 public:
41
42 /**
43 * Override
44 * then selection is performed with the mouse, 3 arguments :
45 * 1) selected domaine in frame coordinate
46 * 2) dx is the screen width in pixel
47 * 3) dy is the screen height in pixel
48 **/
49 virtual void selectionPerformed(const gpu::DomaineEcran& domaine, int dx, int dy);
50
51 /**
52 * Override
53 */
54 virtual void onKeyPressed(const KeyEvent &event);
55
56 };
57 }
58
59 #endif
60
61 /*----------------------------------------------------------------------*\
62 |* End *|
63 \*---------------------------------------------------------------------*/
64