X-Git-Url: http://git.euphorik.ch/index.cgi?a=blobdiff_plain;ds=sidebyside;f=WCudaMSE%2FAPI_Bilat_Image_GL_Cuda%2FINC%2Fgpu%2FGLImageFonctionelSelections_GPU.h;fp=WCudaMSE%2FAPI_Bilat_Image_GL_Cuda%2FINC%2Fgpu%2FGLImageFonctionelSelections_GPU.h;h=806659cac80407a1751a01d4dd3cdbb499c46e44;hb=8d08c12b29c2a14684f35c023ee39e694bb80d25;hp=0000000000000000000000000000000000000000;hpb=226de81f7e1f1fbf4ac79d0d089e8a05ec7159a0;p=GPU.git 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 index 0000000..806659c --- /dev/null +++ b/WCudaMSE/API_Bilat_Image_GL_Cuda/INC/gpu/GLImageFonctionelSelections_GPU.h @@ -0,0 +1,64 @@ +#ifndef GLIMAGE_FONCTIONEL_SELECTIONS_GPU_H +#define GLIMAGE_FONCTIONEL_SELECTIONS_GPU_H + +#include "GLImageSelections_GPU.h" +#include "ImageFonctionelMOOs_A_GPU.h" + +#define BACK_SPACE 8 //code ascii for Backspace + +/*----------------------------------------------------------------------*\ + |* Declaration *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +namespace gpu + { + + class CBI_GLIMAGE_CUDA GLImageFonctionelSelections: public gpu::GLImageSelections + { + public: + + /*--------------------------------------*\ + |* Constructor *| + \*-------------------------------------*/ + + GLImageFonctionelSelections(gpu::ImageFonctionelMOOs_A* ptrImageCudaFonctionelMOO, bool isAnimationEnable = true); + + virtual ~GLImageFonctionelSelections(); + + /*--------------------------------------*\ + |* Get *| + \*-------------------------------------*/ + + public: + + gpu::ImageFonctionelMOOs_A* getPtrImageCudaFonctionelMOO(); + + public: + + /** + * Override + * then selection is performed with the mouse, 3 arguments : + * 1) selected domaine in frame coordinate + * 2) dx is the screen width in pixel + * 3) dy is the screen height in pixel + **/ + virtual void selectionPerformed(const gpu::DomaineEcran& domaine, int dx, int dy); + + /** + * Override + */ + virtual void onKeyPressed(const KeyEvent &event); + + }; + } + +#endif + +/*----------------------------------------------------------------------*\ + |* End *| + \*---------------------------------------------------------------------*/ +