Ajout de l'ensemble du workspace.
[GPU.git] / WCudaMSE / API_Bilat_Image_GL_Cuda / INC / gpu / GLImageFonctionelSelections_GPU.h
diff --git a/WCudaMSE/API_Bilat_Image_GL_Cuda/INC/gpu/GLImageFonctionelSelections_GPU.h b/WCudaMSE/API_Bilat_Image_GL_Cuda/INC/gpu/GLImageFonctionelSelections_GPU.h
new file mode 100755 (executable)
index 0000000..806659c
--- /dev/null
@@ -0,0 +1,64 @@
+#ifndef GLIMAGE_FONCTIONEL_SELECTIONS_GPU_H\r
+#define GLIMAGE_FONCTIONEL_SELECTIONS_GPU_H\r
+\r
+#include "GLImageSelections_GPU.h"\r
+#include "ImageFonctionelMOOs_A_GPU.h"\r
+\r
+#define BACK_SPACE 8 //code ascii for Backspace\r
+\r
+/*----------------------------------------------------------------------*\\r
+ |*                    Declaration                                     *|\r
+ \*---------------------------------------------------------------------*/\r
+\r
+/*--------------------------------------*\\r
+ |*            Public                  *|\r
+ \*-------------------------------------*/\r
+\r
+namespace gpu\r
+    {\r
+\r
+    class CBI_GLIMAGE_CUDA GLImageFonctionelSelections: public gpu::GLImageSelections\r
+       {\r
+       public:\r
+\r
+           /*--------------------------------------*\\r
+            |*         Constructor                 *|\r
+            \*-------------------------------------*/\r
+\r
+           GLImageFonctionelSelections(gpu::ImageFonctionelMOOs_A* ptrImageCudaFonctionelMOO, bool isAnimationEnable = true);\r
+\r
+           virtual ~GLImageFonctionelSelections();\r
+\r
+           /*--------------------------------------*\\r
+        |*             Get                     *|\r
+            \*-------------------------------------*/\r
+\r
+       public:\r
+\r
+           gpu::ImageFonctionelMOOs_A* getPtrImageCudaFonctionelMOO();\r
+\r
+       public:\r
+\r
+           /**\r
+            * Override\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 pixel\r
+            *  3) dy is the screen height in pixel\r
+            **/\r
+           virtual void selectionPerformed(const gpu::DomaineEcran& domaine, int dx, int dy);\r
+\r
+           /**\r
+            * Override\r
+            */\r
+           virtual void onKeyPressed(const KeyEvent &event);\r
+\r
+       };\r
+    }\r
+\r
+#endif\r
+\r
+/*----------------------------------------------------------------------*\\r
+ |*                    End                                             *|\r
+ \*---------------------------------------------------------------------*/\r
+\r