1 #ifndef GLIMAGE_SELECTIONS_CPU_H
2 #define GLIMAGE_SELECTIONS_CPU_H
4 #include "GLImages_CPU.h"
5 #include "DomaineEcran_CPU.h"
7 /*----------------------------------------------------------------------*\
9 \*---------------------------------------------------------------------*/
11 /*--------------------------------------*\
13 \*-------------------------------------*/
17 class CBI_GLIMAGE GLImageSelections
: public cpu::GLImages
20 /*--------------------------------------*\
22 \*-------------------------------------*/
24 GLImageSelections(cpu::ImageMOOs_A
* ptrImageMOO
, bool isAnimationEnable
= true);
26 /*--------------------------------------*\
28 \*-------------------------------------*/
30 virtual ~GLImageSelections();
32 /*--------------------------------------*\
34 \*-------------------------------------*/
39 * then selection is performed with the mouse, 3 arguments :
40 * 1) selected domaine in frame coordinate
41 * 2) dx is the screen width in pixLa clel
42 * 3) dy is the screen height in pixel
44 virtual void selectionPerformed(cpu::DomaineEcran
& domaine
, int dx
, int dy
);
49 virtual void display(Panel_A
&panel
);
54 virtual void onMouseMoved(const MouseEvent
&event
);
59 virtual void onMousePressed(const MouseEvent
&event
);
64 virtual void onMouseReleased(const MouseEvent
&event
);
70 /*--------------------------------------*\
72 \*-------------------------------------*/
76 cpu::DomaineEcran
getCurrentDomaineSelection() const;
78 /*--------------------------------------*\
80 \*-------------------------------------*/
85 cpu::DomaineEcran domaineSelection
;
88 bool isSelectionEnable
;
89 float ratio
; //ration de la taille de la s�lection proportionnel � l'image
94 /*----------------------------------------------------------------------*\
96 \*---------------------------------------------------------------------*/