Plug rubberbox function :
[scilab.git] / scilab / modules / renderer / src / cpp / JavaInteraction.cpp
1 /*
2  * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
3  * Copyright (C) 2007 - INRIA - Jean-Baptiste Silvy
4  * Copyright (C) 2012 - Scilab Enterprises - Bruno JOFRET
5  *
6  * This file must be used under the terms of the CeCILL.
7  * This source file is licensed as described in the file COPYING, which
8  * you should have received as part of this distribution.  The terms
9  * are also available at
10  * http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
11  *
12  */
13 extern "C" {
14 #include "JavaInteraction.h"
15 #include "getScilabJavaVM.h"
16 }
17
18 #include "CallRenderer.hxx"
19
20 void startInteractiveZoom(char *pstObjUID)
21 {
22     org_scilab_modules_renderer::CallRenderer::startInteractiveZoom(getScilabJavaVM(), pstObjUID);
23 }
24
25 /*---------------------------------------------------------------------------------*/
26 double *javaClickRubberBox(char *pstObjUID, double *initialRect, int iRectSize)
27 {
28     return org_scilab_modules_renderer::CallRenderer::clickRubberBox(getScilabJavaVM(), pstObjUID, initialRect, iRectSize);
29 }
30
31 /*---------------------------------------------------------------------------------*/
32 double *javaDragRubberBox(char *pstObjUID)
33 {
34     return org_scilab_modules_renderer::CallRenderer::dragRubberBox(getScilabJavaVM(), pstObjUID);
35 }
36
37
38 /*---------------------------------------------------------------------------------*/
39 void interactiveJavaZoom(sciPointObj * pFigure)
40 {
41     //getFigureDrawer(pFigure)->interactiveZoom();
42 }
43 /*---------------------------------------------------------------------------------*/
44 void interactiveJavaSubwinZoom(sciPointObj * pSubwin)
45 {
46     //getSubwinDrawer(pSubwin)->interactiveZoom();
47 }
48 /*---------------------------------------------------------------------------------*/
49 void interactiveJavaRotation(sciPointObj * pFigure)
50 {
51     //getFigureDrawer(pFigure)->interactiveRotation();
52 }
53 /*---------------------------------------------------------------------------------*/
54 void interactiveJavaSubwinRotation(sciPointObj * pSubwin)
55 {
56     //getSubwinDrawer(pSubwin)->interactiveRotation();
57 }
58 /*---------------------------------------------------------------------------------*/
59 void javaUnzoomSubwin(sciPointObj * pSubwin)
60 {
61     //getSubwinDrawer(pSubwin)->unzoom();
62 }
63 /*---------------------------------------------------------------------------------*/
64 void javaShowWindow(sciPointObj * pFigure)
65 {
66     //getFigureDrawer(pFigure)->showWindow();
67 }
68 /*---------------------------------------------------------------------------------*/