Interface margins and axes bounds properties.
[scilab.git] / scilab / modules / renderer / src / cpp / subwinDrawing / CameraBridge.cpp
1 /*------------------------------------------------------------------------*/
2 /* file: CameraBridge.cpp                                                 */
3 /* Copyright INRIA 2007                                                   */
4 /* Authors : Jean-Baptiste Silvy                                          */
5 /* desc : Bridge between camera class and impelementation                 */
6 /*------------------------------------------------------------------------*/
7
8 #include "CameraBridge.h"
9
10 namespace sciGraphics
11 {
12
13 /*-----------------------------------------------------------------------------------*/
14 void CameraBridge::setViewingArea( double translation[2], double scale[2] )
15 {
16   m_aViewingTranslation[0] = translation[0];
17   m_aViewingTranslation[1] = translation[1];
18
19   m_aViewingScale[0] = scale[0];
20   m_aViewingScale[1] = scale[1];
21 }
22 /*-----------------------------------------------------------------------------------*/
23 void CameraBridge::setAxesScale( double scale[3] )
24 {
25   m_aAxesScale[0] = scale[0] ;
26   m_aAxesScale[1] = scale[1] ;
27   m_aAxesScale[2] = scale[2] ;
28 }
29 /*-----------------------------------------------------------------------------------*/
30 void CameraBridge::setAxesTranslation( double translation[3] )
31 {
32   m_aAxesTranslation[0] = translation[0] ;
33   m_aAxesTranslation[1] = translation[1] ;
34   m_aAxesTranslation[2] = translation[2] ;
35 }
36 /*-----------------------------------------------------------------------------------*/
37 void CameraBridge::setFarthestDistance( double maxDist )
38 {
39   m_dFarthestDist = maxDist;
40 }
41 /*-----------------------------------------------------------------------------------*/
42 }