DataRepFactory.cxx

Go to the documentation of this file.
00001 
00012 // for truncation warning in debug mode
00013 #ifdef _MSC_VER
00014 #include "msdevstudio/MSconfig.h"
00015 #endif
00016 
00017 #include "DataRepFactory.h"
00018 
00019 // A list of default DataReps.
00020 #include "ColorPlot.h"
00021 #include "ContourPlot.h"
00022 #include "Profile2D.h"
00023 #include "ProfileContour.h"
00024 #include "DyHistogram.h"
00025 #include "DyHistogramEqualEntries.h"
00026 #include "Image.h"
00027 #include "LineDataRep.h"
00028 #include "ProfileHist.h"
00029 #include "ScatterPlot.h"
00030 #include "St1DHistogram.h"
00031 #include "St2DHistogram.h"
00032 #include "StripChart.h"
00033 #include "VariableMesh.h"
00034 #include "XYPlot.h"
00035 #include "XYZPlot.h"
00036 #include "YPlot.h"
00037 
00038 using namespace hippodraw;
00039 
00040 DataRepFactory * DataRepFactory::s_instance = 0;
00041 
00042 DataRepFactory::DataRepFactory ( )
00043 {
00044 }
00045 
00046 DataRepFactory::
00047 ~DataRepFactory ()
00048 {
00049 }
00050 
00051 DataRepFactory * DataRepFactory::instance ()
00052 {
00053   if ( s_instance == 0 ) {
00054     s_instance = new DataRepFactory ( );
00055     s_instance->initialize ();
00056   }
00057   return s_instance;
00058 }
00059 
00060 
00061 void DataRepFactory::initialize ()
00062 {
00063   add ( new ColorPlot () );
00064   add ( new ContourPlot () );
00065   add ( new Profile2D () );
00066   add ( new ProfileContour () );
00067   add ( new DyHistogram () );
00068   add ( new DyHistogramEqualEntries () );
00069   add ( new Image () );
00070   add ( new LineDataRep () );
00071   add ( new ProfileHist () );
00072   add ( new ScatterPlot () );
00073   add ( new St1DHistogram () );
00074   add ( new St2DHistogram () );
00075   add ( new StripChart () );
00076   add ( new VariableMesh () );
00077   add ( new XYPlot () );
00078   add ( new XYZPlot () );
00079   add ( new YPlot () );
00080 }

Generated for HippoDraw Class Library by doxygen