UserDefLogTicksComputer.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 : Compute ticks from ticks given by the user in logarithmic mode 
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 <math.h>
00015 
00016 #include "UserDefLogTicksComputer.hxx"
00017 #include "BasicAlgos.hxx"
00018 
00019 namespace sciGraphics
00020 {
00021 /*------------------------------------------------------------------------------------------*/
00022 UserDefLogTicksComputer::UserDefLogTicksComputer(DrawableSubwin * subwin)
00023  : UserDefinedTicksComputer(subwin)
00024 {
00025 
00026 }
00027 /*------------------------------------------------------------------------------------------*/
00028 UserDefLogTicksComputer::~UserDefLogTicksComputer(void)
00029 {
00030 
00031 }
00032 /*------------------------------------------------------------------------------------------*/
00033 void UserDefLogTicksComputer::getTicksPosition(double positions[], char * labels[], char * labelsExponents[])
00034 {
00035   for (int i = 0; i < m_iNbUserTicks; i++)
00036   {
00037     positions[i] = m_aUserTicksPositions[i];
00038   }
00039   BasicAlgos::stringArrayCopy(labels, m_aUserTicksLabels, m_iNbUserTicks);
00040 }
00041 /*------------------------------------------------------------------------------------------*/
00042 }

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