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

AIDA_PlotterFactory.cpp

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:25:21 2002
00032 // 
00033 
00034 
00035 
00036 #include "AIDA_PlotterFactory.h"
00037 
00038 // proxies
00039 #include "AIDA_Plotter.h"
00040 #include "AIDA_AxisStyle.h"
00041 #include "AIDA_PlotterStyle.h"
00042 #include "AIDA_LineStyle.h"
00043 #include "AIDA_FillStyle.h"
00044 #include "AIDA_MarkerStyle.h"
00045 #include "AIDA_TextStyle.h"
00046 #include "AIDA_DataStyle.h"
00047 #include "AIDA_TitleStyle.h"
00048 
00049 // concrete implementations
00050 #include "GracePlotter/Plotter.h"
00051 #include "GracePlotter/AxisStyle.h"
00052 #include "GracePlotter/Style.h"
00053 #include "GracePlotter/LineStyle.h"
00054 #include "GracePlotter/FillStyle.h"
00055 #include "GracePlotter/MarkerStyle.h"
00056 #include "GracePlotter/TextStyle.h"
00057 #include "GracePlotter/PlotStyle.h"
00058 #include "GracePlotter/TitleStyle.h"
00059 
00060 
00061 
00062 
00063 namespace Anaphe {
00064 namespace AIDA_Plotter_Grace {
00065 
00066 
00067 
00068 
00069 
00071 //                                        //
00072 // Constructors, destructor and operator= //
00073 //                                        //
00075 
00076 AIDA_PlotterFactory::AIDA_PlotterFactory()
00077 {
00078   // no-op
00079 }
00080 
00081 
00082 
00083 
00084 AIDA_PlotterFactory::~AIDA_PlotterFactory()
00085 {
00086   // no-op
00087 }
00088 
00089 
00090 
00091 
00093 //                //
00094 // Public methods //
00095 //                //
00097 
00098 AIDA::IPlotter*
00099 AIDA_PlotterFactory::create(const std::string& name)
00100 {
00101   Plotter* gp = new Plotter;
00102   return new AIDA_Plotter(gp); // keeps ownership by default
00103 }
00104 
00105 
00106 
00107 
00108 AIDA::IMarkerStyle*
00109 AIDA_PlotterFactory::createMarkerStyle()
00110 {
00111   MarkerStyle* gms = new MarkerStyle;
00112   return new AIDA_MarkerStyle(gms); // keeps ownership by default
00113 }
00114 
00115 
00116 
00117 
00118 AIDA::ITextStyle*
00119 AIDA_PlotterFactory::createTextStyle()
00120 {
00121   TextStyle* gts = new TextStyle;
00122   return new AIDA_TextStyle(gts); // keeps ownership by default
00123 }
00124 
00125 
00126 
00127 
00128 AIDA::ILineStyle*
00129 AIDA_PlotterFactory::createLineStyle()
00130 {
00131   LineStyle* gls = new LineStyle;
00132   return new AIDA_LineStyle(gls); // keeps ownership by default
00133 }
00134 
00135 
00136 
00137 
00138 AIDA::IFillStyle*
00139 AIDA_PlotterFactory::createFillStyle()
00140 {
00141   FillStyle* gfs = new FillStyle;
00142   return new AIDA_FillStyle(gfs); // keeps ownership by default
00143 }
00144 
00145 
00146 
00147 
00148 AIDA::IDataStyle*
00149 AIDA_PlotterFactory::createDataStyle()
00150 {
00151   PlotStyle* gds = new PlotStyle;
00152   return new AIDA_DataStyle(gds); // keeps ownership by default
00153 }
00154 
00155 
00156 
00157 
00158 AIDA::IAxisStyle*
00159 AIDA_PlotterFactory::createAxisStyle()
00160 {
00161   AxisStyle* gas = new AxisStyle;
00162   return new AIDA_AxisStyle(gas); // keeps ownership by default
00163 }
00164 
00165 
00166 
00167 
00168 AIDA::IPlotterStyle*
00169 AIDA_PlotterFactory::createPlotterStyle()
00170 {
00171   Style* gps = new Style;
00172   return new AIDA_PlotterStyle(gps); // keeps ownership by default
00173 }
00174 
00175 
00176 
00177 AIDA::ITitleStyle*
00178 AIDA_PlotterFactory::createTitleStyle()
00179 {
00180   TitleStyle* gts = new TitleStyle;
00181   return new AIDA_TitleStyle(gts); // keeps ownership by default
00182 }
00183 
00184 
00185 
00186 
00187 } // end of namespace AIDA_Plotter_Grace
00188 } // end of namespace Anaphe
00189 

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