PlotterFactory.cxx
Go to the documentation of this file.
1 
11 // for truncation warning in debug mode
12 #ifdef _MSC_VER
13 #include "msdevstudio/MSconfig.h"
14 #endif
15 
16 #include "PlotterFactory.h"
17 
18 // A list of default Plotters.
19 #include "Cut1DPlotter.h"
20 #include "Cut2DPlotter.h"
21 #include "TextPlotter.h"
22 
23 namespace hippodraw {
24 
25 PlotterFactory * PlotterFactory::s_instance = 0;
26 
28 {
29 }
30 
32 {
33  if ( s_instance == 0 ) {
34  s_instance = new PlotterFactory ( );
36  }
37  return s_instance;
38 }
39 
41 {
42  add ( new Cut1DPlotter () );
43  add ( new Cut2DPlotter () );
44  add ( new XyPlotter () );
45  add ( new TextPlotter () );
46 }
47 
48 } // namespace hippodraw

Generated for HippoDraw Class Library by doxygen