Ajout de l'ensemble du workspace.
[GPU.git] / WCudaMSE / API_Bilat_Image_GL / INC / cpu / GLImageSelections_CPU.h
diff --git a/WCudaMSE/API_Bilat_Image_GL/INC/cpu/GLImageSelections_CPU.h b/WCudaMSE/API_Bilat_Image_GL/INC/cpu/GLImageSelections_CPU.h
new file mode 100755 (executable)
index 0000000..7570c40
--- /dev/null
@@ -0,0 +1,97 @@
+#ifndef GLIMAGE_SELECTIONS_CPU_H\r
+#define GLIMAGE_SELECTIONS_CPU_H\r
+\r
+#include "GLImages_CPU.h"\r
+#include "DomaineEcran_CPU.h"\r
+\r
+/*----------------------------------------------------------------------*\\r
+ |*                    Declaration                                     *|\r
+ \*---------------------------------------------------------------------*/\r
+\r
+/*--------------------------------------*\\r
+ |*            Public                  *|\r
+ \*-------------------------------------*/\r
+\r
+namespace cpu\r
+    {\r
+    class CBI_GLIMAGE GLImageSelections: public cpu::GLImages\r
+       {\r
+       public:\r
+           /*--------------------------------------*\\r
+            |*         Constructor                 *|\r
+            \*-------------------------------------*/\r
+\r
+           GLImageSelections(cpu::ImageMOOs_A* ptrImageMOO, bool isAnimationEnable = true);\r
+\r
+           /*--------------------------------------*\\r
+            |*         Destructor                  *|\r
+            \*-------------------------------------*/\r
+\r
+           virtual ~GLImageSelections();\r
+\r
+           /*--------------------------------------*\\r
+            |*         Methodes                    *|\r
+            \*-------------------------------------*/\r
+\r
+       protected:\r
+\r
+           /**\r
+            * then selection is performed with the mouse, 3 arguments :\r
+            *  1) selected domaine in frame coordinate\r
+            *  2) dx is the screen width in pixLa clel\r
+            *  3) dy is the screen height in pixel\r
+            **/\r
+           virtual void selectionPerformed(cpu::DomaineEcran& domaine, int dx, int dy);\r
+\r
+           /**\r
+            * Override\r
+            */\r
+           virtual void display(Panel_A &panel);\r
+\r
+           /**\r
+            * Override\r
+            */\r
+           virtual void onMouseMoved(const MouseEvent &event);\r
+\r
+           /**\r
+            * Override\r
+            */\r
+           virtual void onMousePressed(const MouseEvent &event);\r
+\r
+           /**\r
+            * Override\r
+            */\r
+           virtual void onMouseReleased(const MouseEvent &event);\r
+\r
+       private:\r
+\r
+           void drawSelection();\r
+\r
+           /*--------------------------------------*\\r
+            |*         Get                          *|\r
+            \*-------------------------------------*/\r
+\r
+       protected:\r
+\r
+           cpu::DomaineEcran getCurrentDomaineSelection() const;\r
+\r
+           /*--------------------------------------*\\r
+            |*         Attributs                   *|\r
+            \*-------------------------------------*/\r
+\r
+       private:\r
+\r
+           //Inputs\r
+           cpu::DomaineEcran domaineSelection;\r
+\r
+           //Tools\r
+           bool isSelectionEnable;\r
+           float ratio; //ration de la taille de la s�lection proportionnel � l'image\r
+       };\r
+    }\r
+\r
+#endif\r
+/*----------------------------------------------------------------------*\\r
+ |*                    End                                             *|\r
+ \*---------------------------------------------------------------------*/\r
+\r