Interface margins and axes bounds properties.
[scilab.git] / scilab / modules / renderer / src / cpp / subwinDrawing / CameraJoGL.cpp
1 /*------------------------------------------------------------------------*/
2 /* file: CameraJoGL.cpp                                                   */
3 /* Copyright INRIA 2007                                                   */
4 /* Authors : Jean-Baptiste Silvy                                          */
5 /* desc : JoGL class to draw a camera                                     */
6 /*------------------------------------------------------------------------*/
7
8 #include "CameraJoGL.h"
9 #include "DrawableSubwin.h"
10 extern "C"
11 {
12 #include "JniUtils.h"
13 }
14
15
16 namespace sciGraphics
17 {
18
19 /*-----------------------------------------------------------------------------------*/
20 CameraJoGL::CameraJoGL( DrawableObject * subwin )
21   : DrawableObjectImp(subwin), CameraBridge(),
22     DrawableObjectJoGL(subwin, "org/scilab/modules/renderer/subwinDrawing/CameraJoGL")
23 {
24
25 }
26 /*-----------------------------------------------------------------------------------*/
27 void CameraJoGL::renderPosition( void )
28 {
29   initializeDrawing();
30   jniCallMemberFunctionSafe( m_oDrawableObject, NULL, "moveViewingArea", "(DDDD)V",
31                              m_aViewingTranslation[0], m_aViewingTranslation[1],
32                              m_aViewingScale[0], m_aViewingScale[1] ) ;
33   jniCallMemberFunctionSafe(m_oDrawableObject, NULL, "moveAxesBox", "(DDDDDD)V",
34                             m_aAxesScale[0], m_aAxesScale[1], m_aAxesScale[2],
35                             m_aAxesTranslation[0], m_aAxesTranslation[1], m_aAxesTranslation[2] ) ;
36   endDrawing();
37 }
38 /*-----------------------------------------------------------------------------------*/
39
40 }