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

AIDA_FillStyle.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:40:06 2002
00032 // 
00033 
00034 #ifndef ANAPHE_AIDA_FILLSTYLE_H
00035 #define ANAPHE_AIDA_FILLSTYLE_H
00036 
00037 
00038 
00039 #include "AIDA/IFillStyle.h"
00040 
00041 
00042 
00043 namespace Anaphe {
00044   // Concrete classes from GracePlotter
00045   class FillStyle;
00046 }
00047 
00048 
00049 
00050 namespace Anaphe {
00051 namespace AIDA_Plotter_Grace {
00052 
00053 
00054 
00055 
00060 class AIDA_FillStyle : public AIDA::IFillStyle
00061 {
00062 public:
00063   AIDA_FillStyle();
00064   AIDA_FillStyle(FillStyle*, bool owner = true);
00065   virtual ~AIDA_FillStyle();
00066 
00067 private:
00068   AIDA_FillStyle(const AIDA_FillStyle&);
00069   AIDA_FillStyle& operator=(const AIDA_FillStyle&);
00070 
00071 public:
00072   virtual void reset();
00073   virtual bool setParameter(const std::string& paramName, const std::string& options);
00074   virtual std::vector<std::string> availableParameters() const;
00075   virtual std::string parameterValue(const std::string& paramName) const;
00076   virtual std::vector<std::string> availableParameterOptions(const std::string& paramName) const;
00077   virtual std::vector<std::string>  availableColors() const;
00078   virtual std::string color() const;
00079   virtual double opacity() const;
00080   virtual bool setColor(const std::string & newColor);
00081   virtual bool setOpacity(double newOpacity);
00082   virtual std::vector<std::string> availablePatterns() const;
00083   virtual std::string pattern() const;
00084   virtual bool setPattern(const std::string& pattern);
00085 
00086   void setRep(FillStyle&, bool ownership);
00087   FillStyle* theRep();
00088 
00089 private:
00090   void crisis() const; 
00091 
00092 private:
00093   FillStyle* rep;
00094   bool ownRep;
00095 
00096 };
00097 
00098 
00099 
00100 } // end of namespace AIDA_Plotter_Grace
00101 } // end of namespace Anaphe
00102 
00103 
00104 #endif // ANAPHE_AIDA_FILLSTYLE_H
00105 

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