PlotToolInterface.h

Go to the documentation of this file.
00001 /***************************************************************************
00002     File                 : PlotToolInterface.h
00003     Project              : QtiPlot
00004     --------------------------------------------------------------------
00005     Copyright            : (C) 2007 by Knut Franke, Ion Vasilief
00006     Email (use @ for *)  : knut.franke*gmx.de, ion_vasilief*yahoo.fr
00007     Description          : Interface for tools operating on a Graph
00008 
00009  ***************************************************************************/
00010 
00011 /***************************************************************************
00012  *                                                                         *
00013  *  This program is free software; you can redistribute it and/or modify   *
00014  *  it under the terms of the GNU General Public License as published by   *
00015  *  the Free Software Foundation; either version 2 of the License, or      *
00016  *  (at your option) any later version.                                    *
00017  *                                                                         *
00018  *  This program is distributed in the hope that it will be useful,        *
00019  *  but WITHOUT ANY WARRANTY; without even the implied warranty of         *
00020  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the          *
00021  *  GNU General Public License for more details.                           *
00022  *                                                                         *
00023  *   You should have received a copy of the GNU General Public License     *
00024  *   along with this program; if not, write to the Free Software           *
00025  *   Foundation, Inc., 51 Franklin Street, Fifth Floor,                    *
00026  *   Boston, MA  02110-1301  USA                                           *
00027  *                                                                         *
00028  ***************************************************************************/
00029 #ifndef PLOT_TOOL_INTERFACE_H
00030 #define PLOT_TOOL_INTERFACE_H
00031 
00032 class Graph;
00033 
00059 class PlotToolInterface
00060 {
00061     public:
00062 
00063     enum RttiValues
00064     {
00065         Rtti_PlotTool = 0,
00066 
00067         Rtti_RangeSelector,
00068         Rtti_DataPicker,
00069         Rtti_TranslateCurveTool,
00070         Rtti_MultiPeakFitTool,
00071         Rtti_LineProfileTool,
00072 
00073         Rtti_PlotUserTool = 1000
00074     };
00075 
00076         PlotToolInterface(Graph *graph) { d_graph = graph; }
00077         virtual ~PlotToolInterface() {};
00078 
00079         virtual int rtti() const { return Rtti_PlotTool;};
00080 
00081     protected:
00082         Graph *d_graph;
00083 };
00084 
00085 #endif // ifndef PLOT_TOOL_INTERFACE_H

Generated on Tue Jun 17 08:36:13 2008 for QtiPlot by  doxygen 1.5.5