1 #ifndef GLIMAGE_FONCTIONEL_SELECTIONS_CPU_H
2 #define GLIMAGE_FONCTIONEL_SELECTIONS_CPU_H
4 #include "GLImageSelections_CPU.h"
5 #include "ImageFonctionelMOOs_A_CPU.h"
7 /*----------------------------------------------------------------------*\
9 \*---------------------------------------------------------------------*/
11 /*--------------------------------------*\
13 \*-------------------------------------*/
17 class CBI_GLIMAGE GLImageFonctionelSelections
: public cpu::GLImageSelections
20 /*--------------------------------------*\
22 \*-------------------------------------*/
26 GLImageFonctionelSelections(cpu::ImageFonctionelMOOs_A
*ptrImageFonctionel
, bool isAnimationEnable
= true);
28 /*--------------------------------------*\
30 \*-------------------------------------*/
34 virtual ~GLImageFonctionelSelections();
36 /*--------------------------------------*\
38 \*-------------------------------------*/
45 virtual void onKeyPressed(const KeyEvent
&event
);
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
56 virtual void selectionPerformed(cpu::DomaineEcran
& domaine
, int dx
, int dy
);
58 /*--------------------------------------*\
60 \*-------------------------------------*/
62 cpu::ImageFonctionelMOOs_A
* getPtrImageFonctionelSelectionMOO();
69 /*----------------------------------------------------------------------*\
71 \*---------------------------------------------------------------------*/