X-Git-Url: http://git.euphorik.ch/index.cgi?a=blobdiff_plain;f=WCudaMSE%2FAPI_Bilat_Canvas_JNI%2FINC%2FScenario.h;fp=WCudaMSE%2FAPI_Bilat_Canvas_JNI%2FINC%2FScenario.h;h=acf5c9471cbb34dd8770701a32d2c37aa96ebb87;hb=8d08c12b29c2a14684f35c023ee39e694bb80d25;hp=0000000000000000000000000000000000000000;hpb=226de81f7e1f1fbf4ac79d0d089e8a05ec7159a0;p=GPU.git diff --git a/WCudaMSE/API_Bilat_Canvas_JNI/INC/Scenario.h b/WCudaMSE/API_Bilat_Canvas_JNI/INC/Scenario.h new file mode 100755 index 0000000..acf5c94 --- /dev/null +++ b/WCudaMSE/API_Bilat_Canvas_JNI/INC/Scenario.h @@ -0,0 +1,65 @@ +#ifndef SCENARIO_H_ +#define SCENARIO_H_ + +#include "envCanvasJNI.h" + +/*----------------------------------------------------------------------*\ + |* Declaration *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +/** + * Un scénario - Un CanvasNative + * + * getCanvasNativeID doit être redefinie avec un canvasNativeID valide. + */ +class CBI_CANVAS_JNI Scenario + { + public: + + /*--------------------------------------*\ + |* Constructor *| + \*-------------------------------------*/ + + Scenario(); + + /*--------------------------------------*\ + |* Destructor *| + \*-------------------------------------*/ + + virtual ~Scenario(); + + /*--------------------------------------*\ + |* Methodes *| + \*-------------------------------------*/ + + public: + + /** + * Doit être appelé après avoir construit le scénario + * MyScenario* ptrMyScenario=new MyScenario(); + * ptrMyScenario->registry(); + */ + void registry(); + + + /*--------------------------------------*\ + |* Get *| + \*-------------------------------------*/ + + + /** + * Il faut retourner impérativement le canvasNativeID d'un CanvasNative précèdement instancié. + */ + virtual int getCanvasNativeID()=0; + + }; + +#endif + +/*----------------------------------------------------------------------*\ + |* End *| + \*---------------------------------------------------------------------*/