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
A Plotter class that plots points in 2 dimensions and option a third dimension in color...
Definition: XyPlotter.h:44
A Plotter class that plots one-dimensional TupleCut values.
Definition: Cut2DPlotter.h:40
void initialize()
Initializes the factory with a set of default Plotters.
TextPlotter class interface.
hippodraw::Cut2DPlotter class interface
static PlotterFactory * s_instance
The pointer to the singleton object.
static PlotterFactory * instance()
Returns the pointer to the singleton instance.
PlotterFactory()
The default constructor for prevent creation except by itself.
void add(PlotterBase *)
Adds a prototype object to the list of prototypes.
This Singleton class maintains a list of plotters.
A Plotter class that plots one-dimensional TupleCut values.
Definition: Cut1DPlotter.h:34
A Plotter class that draws text.
Definition: TextPlotter.h:38
Cut1DPlotter class interface.

Generated for HippoDraw Class Library by doxygen