BackTrihedronDrawerJavaMapper.cpp

Go to the documentation of this file.
00001 /*
00002  * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
00003  * Copyright (C) 2007 - INRIA - Jean-Baptiste Silvy
00004  * 
00005  * This file must be used under the terms of the CeCILL.
00006  * This source file is licensed as described in the file COPYING, which
00007  * you should have received as part of this distribution.  The terms
00008  * are also available at    
00009  * http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
00010  *
00011  */
00012 
00013 
00014 #include "BackTrihedronDrawerJavaMapper.hxx"
00015 
00016 extern "C"
00017 {
00018 #include "getScilabJavaVM.h"
00019 }
00020 
00021 namespace sciGraphics
00022 {
00023 
00024 /*--------------------------------------------------------------------------*/
00025 BackTrihedronDrawerJavaMapper::BackTrihedronDrawerJavaMapper(void)
00026 {
00027   m_pJavaObject = new org_scilab_modules_renderer_subwinDrawing::BackTrihedronDrawerGL(getScilabJavaVM());
00028 }
00029 /*--------------------------------------------------------------------------*/
00030 BackTrihedronDrawerJavaMapper::~BackTrihedronDrawerJavaMapper(void)
00031 {
00032   delete m_pJavaObject;
00033   m_pJavaObject = NULL;
00034 }
00035 /*--------------------------------------------------------------------------*/
00036 void BackTrihedronDrawerJavaMapper::display(void)
00037 {
00038   m_pJavaObject->display();
00039 }
00040 /*--------------------------------------------------------------------------*/
00041 void BackTrihedronDrawerJavaMapper::initializeDrawing(int figureIndex)
00042 {
00043   m_pJavaObject->initializeDrawing(figureIndex);
00044 }
00045 /*--------------------------------------------------------------------------*/
00046 void BackTrihedronDrawerJavaMapper::endDrawing(void)
00047 {
00048   m_pJavaObject->endDrawing();
00049 }
00050 /*--------------------------------------------------------------------------*/
00051 void BackTrihedronDrawerJavaMapper::show(int figureIndex)
00052 {
00053   m_pJavaObject->show(figureIndex);
00054 }
00055 /*--------------------------------------------------------------------------*/
00056 void BackTrihedronDrawerJavaMapper::destroy(int parentFigureIndex)
00057 {
00058   m_pJavaObject->destroy(parentFigureIndex);
00059 }
00060 /*--------------------------------------------------------------------------*/
00061 void BackTrihedronDrawerJavaMapper::setFigureIndex(int figureIndex)
00062 {
00063   m_pJavaObject->setFigureIndex(figureIndex);
00064 }
00065 /*--------------------------------------------------------------------------*/
00066 void BackTrihedronDrawerJavaMapper::setBoxParameters(int hiddenAxisColor, float thickness)
00067 {
00068   m_pJavaObject->setBoxParameters(hiddenAxisColor, thickness);
00069 }
00070 /*--------------------------------------------------------------------------*/
00071 void BackTrihedronDrawerJavaMapper::drawBox(double xMin, double xMax, double yMin,
00072                                             double yMax, double zMin, double zMax,
00073                                             int concealedCornerIndex)
00074 {
00075   m_pJavaObject->drawBox(xMin, xMax, yMin, yMax, zMin, zMax, concealedCornerIndex);
00076 }
00077 /*--------------------------------------------------------------------------*/
00078 }

Generated on Tue Sep 9 17:48:29 2008 for Scilab [trunk] by  doxygen 1.5.5