X-Git-Url: http://git.euphorik.ch/index.cgi?a=blobdiff_plain;f=WCudaMSE%2FAPI_Bilat_Image_GL%2FINC%2Fcpu%2FGLImageFonctionelSelections_CPU.h;fp=WCudaMSE%2FAPI_Bilat_Image_GL%2FINC%2Fcpu%2FGLImageFonctionelSelections_CPU.h;h=6751348040d03ac0c80d122414d4529134d81a9b;hb=8d08c12b29c2a14684f35c023ee39e694bb80d25;hp=0000000000000000000000000000000000000000;hpb=226de81f7e1f1fbf4ac79d0d089e8a05ec7159a0;p=GPU.git diff --git a/WCudaMSE/API_Bilat_Image_GL/INC/cpu/GLImageFonctionelSelections_CPU.h b/WCudaMSE/API_Bilat_Image_GL/INC/cpu/GLImageFonctionelSelections_CPU.h new file mode 100755 index 0000000..6751348 --- /dev/null +++ b/WCudaMSE/API_Bilat_Image_GL/INC/cpu/GLImageFonctionelSelections_CPU.h @@ -0,0 +1,71 @@ +#ifndef GLIMAGE_FONCTIONEL_SELECTIONS_CPU_H +#define GLIMAGE_FONCTIONEL_SELECTIONS_CPU_H + +#include "GLImageSelections_CPU.h" +#include "ImageFonctionelMOOs_A_CPU.h" + +/*----------------------------------------------------------------------*\ + |* Declaration *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +namespace cpu + { + class CBI_GLIMAGE GLImageFonctionelSelections: public cpu::GLImageSelections + { + + /*--------------------------------------*\ + |* Constructor *| + \*-------------------------------------*/ + + public: + + GLImageFonctionelSelections(cpu::ImageFonctionelMOOs_A *ptrImageFonctionel, bool isAnimationEnable = true); + + /*--------------------------------------*\ + |* Destructor *| + \*-------------------------------------*/ + + public: + + virtual ~GLImageFonctionelSelections(); + + /*--------------------------------------*\ + |* Methodes *| + \*-------------------------------------*/ + + public: + + /** + * surcharge + */ + virtual void onKeyPressed(const KeyEvent &event); + + protected: + + /** + * Callback for square selection with mouse + * 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(cpu::DomaineEcran& domaine, int dx, int dy); + + /*--------------------------------------*\ + |* Get *| + \*-------------------------------------*/ + + cpu::ImageFonctionelMOOs_A* getPtrImageFonctionelSelectionMOO(); + + }; + } + +#endif + +/*----------------------------------------------------------------------*\ + |* End *| + \*---------------------------------------------------------------------*/