1 #ifndef GLIMAGE_FONCTIONEL_SELECTIONS_GPU_H
2 #define GLIMAGE_FONCTIONEL_SELECTIONS_GPU_H
4 #include "GLImageSelections_GPU.h"
5 #include "ImageFonctionelMOOs_A_GPU.h"
7 #define BACK_SPACE 8 //code ascii for Backspace
9 /*----------------------------------------------------------------------*\
11 \*---------------------------------------------------------------------*/
13 /*--------------------------------------*\
15 \*-------------------------------------*/
20 class CBI_GLIMAGE_CUDA GLImageFonctionelSelections
: public gpu::GLImageSelections
24 /*--------------------------------------*\
26 \*-------------------------------------*/
28 GLImageFonctionelSelections(gpu::ImageFonctionelMOOs_A
* ptrImageCudaFonctionelMOO
, bool isAnimationEnable
= true);
30 virtual ~GLImageFonctionelSelections();
32 /*--------------------------------------*\
34 \*-------------------------------------*/
38 gpu::ImageFonctionelMOOs_A
* getPtrImageCudaFonctionelMOO();
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
49 virtual void selectionPerformed(const gpu::DomaineEcran
& domaine
, int dx
, int dy
);
54 virtual void onKeyPressed(const KeyEvent
&event
);
61 /*----------------------------------------------------------------------*\
63 \*---------------------------------------------------------------------*/