DataRepFactory.cxx
Go to the documentation of this file.
1 
12 // for truncation warning in debug mode
13 #ifdef _MSC_VER
14 #include "msdevstudio/MSconfig.h"
15 #endif
16 
17 #include "DataRepFactory.h"
18 
19 // A list of default DataReps.
20 #include "ColorPlot.h"
21 #include "ContourPlot.h"
22 #include "Profile2D.h"
23 #include "ProfileContour.h"
24 #include "DyHistogram.h"
26 #include "Image.h"
27 #include "LineDataRep.h"
28 #include "ProfileHist.h"
29 #include "ScatterPlot.h"
30 #include "St1DHistogram.h"
31 #include "St2DHistogram.h"
32 #include "StripChart.h"
33 #include "VariableMesh.h"
34 #include "XYPlot.h"
35 #include "XYZPlot.h"
36 #include "YPlot.h"
37 
38 using namespace hippodraw;
39 
41 
43 {
44 }
45 
48 {
49 }
50 
52 {
53  if ( s_instance == 0 ) {
54  s_instance = new DataRepFactory ( );
56  }
57  return s_instance;
58 }
59 
60 
62 {
63  add ( new ColorPlot () );
64  add ( new ContourPlot () );
65  add ( new Profile2D () );
66  add ( new ProfileContour () );
67  add ( new DyHistogram () );
68  add ( new DyHistogramEqualEntries () );
69  add ( new Image () );
70  add ( new LineDataRep () );
71  add ( new ProfileHist () );
72  add ( new ScatterPlot () );
73  add ( new St1DHistogram () );
74  add ( new St2DHistogram () );
75  add ( new StripChart () );
76  add ( new VariableMesh () );
77  add ( new XYPlot () );
78  add ( new XYZPlot () );
79  add ( new YPlot () );
80 }
hippodraw::DyHistogramEqualEntries class interface.
A DataRep that displays a triplet of data from three columns, two on the X and Y axis and the third a...
Definition: XYZPlot.h:31
static DataRepFactory * s_instance
The pointer to the singleton object.
Displays X Y mesh.
Definition: VariableMesh.h:26
A derived class of DataRep which functions as a strip chart.
Definition: StripChart.h:36
DataRepFactory()
The default constructor for avoiding creation except by itself or with derived classes.
Profile2D class interface.
Displays on the Y axis the values of a single column using the row number as the coordinate of the X ...
Definition: YPlot.h:37
ContourPlot class interface.
LineDataRep class interface.
A DataRep for two dimensional profile.
A derived class of DataRep that creates a two dimensional static histogram display.
Definition: St2DHistogram.h:30
~DataRepFactory()
The destructor.
static DataRepFactory * instance()
Returns the pointer to the singleton instance.
A derived class of DataRep that creates a one dimensional dynamic histogram display.
A DataRep for a two dimensional histogram by showing the density of any bin with colored contour line...
Definition: ContourPlot.h:37
hippodraw::Image class interface
Displays X Y pairs with or without error bars.
Definition: XYPlot.h:31
Displays on the Z axis the values of a single column treated as a matrix of values.
Definition: Image.h:45
YPlot class interface.
A DataRep showing a profile.
Definition: ProfileHist.h:35
void add(hippodraw::DataRep *)
Adds a prototype object to the list of prototypes.
A derived class of DataRep that creates a one dimensional static histogram display.
Definition: St1DHistogram.h:28
St2DHistogram class interface.
ColorPlot class interface.
A DataRep taking two columns and plotting their values as a small dot.
Definition: ScatterPlot.h:31
A derived class of DataRep that creates a one dimensional dynamic histogram display.
Definition: DyHistogram.h:38
This Singleton class maintains a list of DataRep objects.
hippodraw::DyHistogram class interface.
void initialize()
Initializes the factory with a set of default DataReps.
XYZPlot class interface.
A DataRep for two dimensional profile.
Definition: Profile2D.h:35
A DataRep for a two dimensional histogram by showing the density of any bin with colored squares...
Definition: ColorPlot.h:36
ProfileHist class interface.
ProfileContour class interface.
XYPlot classes interface.
StripChart class interface.
ScatterPlot class interface.
A derived class of DataRep which displays a value as a line along the X or Y axis.
Definition: LineDataRep.h:27
St1DHistogram class interface.
hippodraw::VariableMesh classes interface.

Generated for HippoDraw Class Library by doxygen