BottomXTicksDrawerJavaMapper.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  * desc : Class containing java methods needed by XTicksDrawerJoGL
00005  * 
00006  * This file must be used under the terms of the CeCILL.
00007  * This source file is licensed as described in the file COPYING, which
00008  * you should have received as part of this distribution.  The terms
00009  * are also available at    
00010  * http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
00011  *
00012  */
00013 
00014 #include "BottomXTicksDrawerJavaMapper.hxx"
00015 
00016 extern "C"
00017 {
00018 #include "getScilabJavaVM.h"
00019 }
00020 
00021 namespace sciGraphics
00022 {
00023 
00024 /*--------------------------------------------------------------------------*/
00025 BottomXTicksDrawerJavaMapper::BottomXTicksDrawerJavaMapper(void)
00026 {
00027   m_pJavaObject = new org_scilab_modules_renderer_subwinDrawing::BottomXTicksDrawerGL(getScilabJavaVM());
00028 }
00029 /*--------------------------------------------------------------------------*/
00030 BottomXTicksDrawerJavaMapper::~BottomXTicksDrawerJavaMapper(void)
00031 {
00032   delete m_pJavaObject;
00033   m_pJavaObject = NULL;
00034 }
00035 /*--------------------------------------------------------------------------*/
00036 void BottomXTicksDrawerJavaMapper::display(void)
00037 {
00038   m_pJavaObject->display();
00039 }
00040 /*--------------------------------------------------------------------------*/
00041 void BottomXTicksDrawerJavaMapper::initializeDrawing(int figureIndex)
00042 {
00043   m_pJavaObject->initializeDrawing(figureIndex);
00044 }
00045 /*--------------------------------------------------------------------------*/
00046 void BottomXTicksDrawerJavaMapper::endDrawing(void)
00047 {
00048   m_pJavaObject->endDrawing();
00049 }
00050 /*--------------------------------------------------------------------------*/
00051 void BottomXTicksDrawerJavaMapper::show(int figureIndex)
00052 {
00053   m_pJavaObject->show(figureIndex);
00054 }
00055 /*--------------------------------------------------------------------------*/
00056 void BottomXTicksDrawerJavaMapper::destroy(int parentFigureIndex)
00057 {
00058   m_pJavaObject->destroy(parentFigureIndex);
00059 }
00060 /*--------------------------------------------------------------------------*/
00061 void BottomXTicksDrawerJavaMapper::setFigureIndex(int figureIndex)
00062 {
00063   m_pJavaObject->setFigureIndex(figureIndex);
00064 }
00065 /*--------------------------------------------------------------------------*/
00066 double BottomXTicksDrawerJavaMapper::drawTicks(const double ticksPositions[], char * ticksLabels[],
00067                                                int nbTicks, const double subticksPositions[], int nbSubticks)
00068 {
00069   return m_pJavaObject->drawTicks((double *)ticksPositions, nbTicks,
00070                                   ticksLabels, nbTicks,
00071                                   (double *)subticksPositions, nbSubticks);
00072 }
00073 /*--------------------------------------------------------------------------*/
00074 double BottomXTicksDrawerJavaMapper::drawTicks(const double ticksPositions[], char * ticksLabels[],
00075                                                char * labelsExponents[], int nbTicks,
00076                                                const double subticksPositions[], int nbSubticks)
00077 {
00078   return m_pJavaObject->drawTicks((double *)ticksPositions, nbTicks,
00079                                   ticksLabels, nbTicks,
00080                                   labelsExponents, nbTicks,
00081                                   (double *)subticksPositions, nbSubticks);
00082 }
00083 /*--------------------------------------------------------------------------*/
00084 void BottomXTicksDrawerJavaMapper::setAxesBounds(double xMin, double xMax,
00085                                                  double yMin, double yMax,
00086                                                  double zMin, double zMax)
00087 {
00088   m_pJavaObject->setAxesBounds(xMin, xMax, yMin, yMax, zMin, zMax);
00089 }
00090 /*--------------------------------------------------------------------------*/
00091 void BottomXTicksDrawerJavaMapper::setAxisParamerters(int lineStyle, float lineWidth, int lineColor,
00092                                                       int fontType, double fontSize, int fontColor)
00093 {
00094   m_pJavaObject->setAxisParameters(lineStyle, lineWidth, lineColor,
00095                                    fontType, fontSize, fontColor);
00096 }
00097 /*--------------------------------------------------------------------------*/
00098 }

Generated on Sun Apr 27 15:09:20 2008 for Scilab [trunk] by  doxygen 1.5.4