Main Page   Namespace List   Alphabetical List   Compound List   File List   Namespace Members   Compound Members  

AIDA_PlotterRegion.h

Go to the documentation of this file.
00001 // -*- C++ -*-
00002 
00004 //                                                                     //
00005 //  This library is free software; you can redistribute it and/or      //
00006 //  modify it under the terms of the GNU Lesser General Public         //
00007 //  License as published by the Free Software Foundation; either       //
00008 //  version 2.1 of the License, or (at your option) any later version. //
00009 //                                                                     //
00010 //  This library is distributed in the hope that it will be useful,    //
00011 //  but WITHOUT ANY WARRANTY; without even the implied warranty of     //
00012 //  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU   //
00013 //  Lesser General Public License for more details.                    //
00014 //                                                                     //
00015 //  You should have received a copy of the GNU Lesser General Public   //
00016 //  License along with this library (see file COPYING); if not, write  //
00017 //  to the Free Software Foundation, Inc., 59 Temple Place, Suite      //
00018 //  330, Boston, MA 02111-1307 USA, or contact the author.             //
00019 //                                                                     //
00021 
00030 // 
00031 // Created by user sang on Sun Oct  6 17:22:41 2002
00032 // 
00033 
00034 #ifndef ANAPHE_AIDA_PLOTTERREGION_H
00035 #define ANAPHE_AIDA_PLOTTERREGION_H
00036 
00037 
00038 #include "AIDA/IPlotterRegion.h"
00039 
00040 
00041 namespace Anaphe {
00042   // Concrete classes from GracePlotter
00043   class PlotterRegion;
00044 }
00045 
00046 
00047 namespace Anaphe {
00048 namespace AIDA_Plotter_Grace {
00049 
00050 
00051 
00056 class AIDA_PlotterRegion : public AIDA::IPlotterRegion
00057 {
00058 public:
00059   AIDA_PlotterRegion();
00060   AIDA_PlotterRegion(Anaphe::PlotterRegion*, bool owner = true);
00061   virtual ~AIDA_PlotterRegion();
00062 
00063 private:
00064   AIDA_PlotterRegion(const AIDA_PlotterRegion&);
00065   AIDA_PlotterRegion& operator=(const AIDA_PlotterRegion&);
00066 
00067 public:
00068   virtual bool plot(const AIDA::IBaseHistogram& histogram, const std::string& options);
00069   virtual bool plot(const AIDA::IBaseHistogram& histogram, const AIDA::IPlotterStyle& style, const std::string& options);
00070   virtual bool plot(const AIDA::IFunction& function, const std::string& options);
00071   virtual bool plot(const AIDA::IFunction& function, const AIDA::IPlotterStyle& style, 
00072                     const std::string& options);
00073   virtual bool plot(const AIDA::IDataPointSet& dataPointSet, const std::string& options);
00074   virtual bool plot(const AIDA::IDataPointSet& dataPointSet, const AIDA::IPlotterStyle& style,
00075                     const std::string& options);
00076   virtual bool remove(const AIDA::IBaseHistogram& histogram);
00077   virtual bool remove(const AIDA::IFunction& function);
00078   virtual bool remove(const AIDA::IDataPointSet& dataPointSet);
00079   virtual void clear();
00080   virtual bool setParameter(const std::string& parameter, const std::string& options);
00081   virtual std::vector<std::string> availableParameterOptions(const std::string& parameter) const;
00082   virtual std::string parameterValue(const std::string& param) const;
00083   virtual std::vector<std::string> availableParameters() const;
00084   virtual AIDA::IPlotterStyle& style();
00085   virtual bool setStyle(const AIDA::IPlotterStyle& style);
00086   virtual bool applyStyle(const AIDA::IPlotterStyle& style);
00087   virtual void setTitle(const std::string& title);
00088   virtual bool setXLimits(double min, double max);
00089   virtual bool setYLimits(double min, double max);
00090   virtual bool setZLimits(double min, double max);
00091   virtual AIDA::IPlotterLayout& layout();
00092   virtual bool setLayout(const AIDA::IPlotterLayout& layout);
00093   virtual AIDA::IInfo& info();
00094   
00095   PlotterRegion* theRep();
00096   void setRep(PlotterRegion&, bool owner);
00097   
00098 private:
00099   void crisis() const;
00100   bool plot(const AIDA::IBaseHistogram& histogram, 
00101             const AIDA::IPlotterStyle* style, const std::string& options);
00102   bool plot(const AIDA::IFunction& function, 
00103             const AIDA::IPlotterStyle* style, const std::string& options);
00104   bool plot(const AIDA::IDataPointSet& dataPointSet, 
00105             const AIDA::IPlotterStyle* style, const std::string& options);
00106 
00107 private:
00108   PlotterRegion* rep;
00109   bool ownRep;
00110 
00111 };
00112 
00113 
00114 
00115 } // end of namespace AIDA_Plotter_Grace
00116 } // end of namespace Anaphe
00117 
00118 
00119 #endif // ANAPHE_AIDA_PLOTTERREGION_H
00120 

Generated on Tue Jan 28 13:30:45 2003 for Anaphe_AIDA_Plotter_Grace by doxygen1.2.16