TextRepFactory.cxx
Go to the documentation of this file.
1 
12 #ifdef _MSC_VER
13 // A long identifier warning.
14 #include "msdevstudio/MSconfig.h"
15 #endif
16 
17 #include "reps/TextRepFactory.h"
18 
19 // A list of default TextReps.
20 #include "reps/TotalTextRep.h"
21 #include "reps/FuncChiRep.h"
22 #include "reps/FuncParmRep.h"
23 #include "reps/AverageTextRep.h"
24 #include "reps/BoxTextRep.h"
25 #include "reps/UnderflowTextRep.h"
26 #include "reps/OverflowTextRep.h"
27 
28 namespace hippodraw {
29 
30 TextRepFactory * TextRepFactory::s_instance = 0;
31 
33 {
34 }
35 
37 {
38  if ( s_instance == 0 ) {
39  s_instance = new TextRepFactory ();
41  }
42 
43  return s_instance;
44 }
45 
47 {
48  add ( new TotalTextRep () );
49  add ( new FuncChiRep () );
50  add ( new FuncParmRep () );
51  add ( new AverageTextRep ( Axes::X ) );
52  add ( new AverageTextRep ( Axes::Y ) );
53  add ( new BoxTextRep () );
54  add ( new UnderflowTextRep () );
55  add ( new OverflowTextRep () );
56 }
57 
58 } // namespace hippodraw
A TextRepBase class that draws the number of overflow entries.
hippodraw::TextRepFactory class interface
A TextRepBase class that draws a user defined string.
Definition: BoxTextRep.h:27
A TextRepBase class that draws the projected values as a calculated average.
void add(RepBase *)
Adds a prototype object to the list of prototypes.
FuncParmRep class interface.
static TextRepFactory * s_instance
A pointer to the singleton object.
A TextRepBase class that draws the number of underflow entries.
static TextRepFactory * instance()
Returns a pointer to the singleton instance.
A factory for textual representations.
UnderflowTextRep class interface.
A Representation that draws the values of function parameters.
Definition: FuncParmRep.h:28
void initialize()
Initializes the factory with a set of default TextReps.
hippodraw::BoxTextRep class interface
OverflowTextRep class interface.
TotalTextRep class interface.
A PointRep that draws the Chi-squared of a function on a display.
Definition: FuncChiRep.h:26
hippodraw::AverageTextRep class interface
TextRepFactory()
A default constructor for avoiding creation except by itself or derived classes.
A TextRepBase class that draws projected values as a total.
Definition: TotalTextRep.h:25
FuncChiRep class interface.

Generated for HippoDraw Class Library by doxygen