PointRepFactory.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/PointRepFactory.h"
18 #include "datasrcs/TupleCut.h"
19 
20 #include "ColorBoxPointRep.h"
21 #include "FilledColumnPointRep.h"
22 #include "ContourPointRep.h"
23 #include "ColorSymbolPointRep.h"
24 #include "CutRangeRep.h"
25 #include "LineFunctionRep.h"
26 
27 namespace hippodraw {
28 
29 PointRepFactory * PointRepFactory::s_instance = 0;
30 
32 {
33 }
34 
36 {
37  if ( s_instance == 0 ) {
38  s_instance = new PointRepFactory ();
40  }
41  return s_instance;
42 }
43 
45 {
46  add ( new ColorBoxPointRep () );
47  add ( new ContourPointRep () );
48  add ( new ColumnPointRep () );
49  add ( new FilledColumnPointRep () );
50  add ( new LinePointRep () );
51  add ( new SymbolPointRep () );
52  add ( new ColorSymbolPointRep () );
53  add ( new CutRangeRep () );
54  add ( new LineFunctionRep () );
55 }
56 
57 } // namespace hippodraw
hippodraw::ColorBoxPointRep class interface
A PointRep class that draws a contour lines.
A PointRep class that draws a colored box to represent the value.
A LinePointRep class that draws a function by trying to make a smooth line after the transform to the...
A PointRep class that draws a filled column to represent the value.
A derived class of PointRepBase class that draws a representation of a cut range. ...
Definition: CutRangeRep.h:29
void initialize()
Initializes the factory with a set of default PointReps.
PointRepFactory class interface.
static PointRepFactory * instance()
Returns a pointer to the singleton instance.
hippodraw::FilledColumnPointRep class interface
ColorSymbolPointRep class interface.
void add(RepBase *)
Adds a prototype object to the list of prototypes.
A PointRep class draws a symbol to represent the value.
hippodraw::ContourPointRep class interface
LineFunctionRep class interface.
A factory for creation of objects whose class is derived from PointRepBase.
A PointRep class draws a symbol to represent the coordinate in a color that represents the value...
hippodraw::TupleCut class interface
PointRepFactory()
A default constructor for prevent creation except by itself.
static PointRepFactory * s_instance
A pointer to the singleton object.
A PointRep class that draws a column to represent the value.
Definition: LinePointRep.h:34
A PointRep class that draws a column to represent the value.
CutRangeRep class interface.

Generated for HippoDraw Class Library by doxygen