00001
00002
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00021
00030
00031
00032
00033
00034
00035
00036 #include "AIDA_PlotterFactory.h"
00037
00038
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
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
00073
00075
00076 AIDA_PlotterFactory::AIDA_PlotterFactory()
00077 {
00078
00079 }
00080
00081
00082
00083
00084 AIDA_PlotterFactory::~AIDA_PlotterFactory()
00085 {
00086
00087 }
00088
00089
00090
00091
00093
00094
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);
00103 }
00104
00105
00106
00107
00108 AIDA::IMarkerStyle*
00109 AIDA_PlotterFactory::createMarkerStyle()
00110 {
00111 MarkerStyle* gms = new MarkerStyle;
00112 return new AIDA_MarkerStyle(gms);
00113 }
00114
00115
00116
00117
00118 AIDA::ITextStyle*
00119 AIDA_PlotterFactory::createTextStyle()
00120 {
00121 TextStyle* gts = new TextStyle;
00122 return new AIDA_TextStyle(gts);
00123 }
00124
00125
00126
00127
00128 AIDA::ILineStyle*
00129 AIDA_PlotterFactory::createLineStyle()
00130 {
00131 LineStyle* gls = new LineStyle;
00132 return new AIDA_LineStyle(gls);
00133 }
00134
00135
00136
00137
00138 AIDA::IFillStyle*
00139 AIDA_PlotterFactory::createFillStyle()
00140 {
00141 FillStyle* gfs = new FillStyle;
00142 return new AIDA_FillStyle(gfs);
00143 }
00144
00145
00146
00147
00148 AIDA::IDataStyle*
00149 AIDA_PlotterFactory::createDataStyle()
00150 {
00151 PlotStyle* gds = new PlotStyle;
00152 return new AIDA_DataStyle(gds);
00153 }
00154
00155
00156
00157
00158 AIDA::IAxisStyle*
00159 AIDA_PlotterFactory::createAxisStyle()
00160 {
00161 AxisStyle* gas = new AxisStyle;
00162 return new AIDA_AxisStyle(gas);
00163 }
00164
00165
00166
00167
00168 AIDA::IPlotterStyle*
00169 AIDA_PlotterFactory::createPlotterStyle()
00170 {
00171 Style* gps = new Style;
00172 return new AIDA_PlotterStyle(gps);
00173 }
00174
00175
00176
00177 AIDA::ITitleStyle*
00178 AIDA_PlotterFactory::createTitleStyle()
00179 {
00180 TitleStyle* gts = new TitleStyle;
00181 return new AIDA_TitleStyle(gts);
00182 }
00183
00184
00185
00186
00187 }
00188 }
00189