Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
plotters
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
27
PlotterFactory::PlotterFactory
()
28
{
29
}
30
31
PlotterFactory
*
PlotterFactory::instance
()
32
{
33
if
(
s_instance
== 0 ) {
34
s_instance
=
new
PlotterFactory
( );
35
s_instance
->
initialize
();
36
}
37
return
s_instance
;
38
}
39
40
void
PlotterFactory::initialize
()
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