PointRepFactory.cxx

Go to the documentation of this file.
00001 
00012 #ifdef _MSC_VER
00013 // A long identifier warning.
00014 #include "msdevstudio/MSconfig.h"
00015 #endif
00016 
00017 #include "reps/PointRepFactory.h"
00018 #include "datasrcs/TupleCut.h"
00019 
00020 #include "ColorBoxPointRep.h"
00021 #include "FilledColumnPointRep.h"
00022 #include "ContourPointRep.h"
00023 #include "ColorSymbolPointRep.h"
00024 #include "CutRangeRep.h"
00025 #include "LineFunctionRep.h"
00026 
00027 namespace hippodraw {
00028 
00029 PointRepFactory * PointRepFactory::s_instance = 0;
00030 
00031 PointRepFactory::PointRepFactory ()
00032 {
00033 }
00034 
00035 PointRepFactory * PointRepFactory::instance ()
00036 {
00037   if ( s_instance == 0 ) {
00038     s_instance = new PointRepFactory ();
00039     s_instance->initialize ();
00040   }
00041   return s_instance;
00042 }
00043 
00044 void PointRepFactory::initialize ()
00045 {
00046   add ( new ColorBoxPointRep () );
00047   add ( new ContourPointRep () );
00048   add ( new ColumnPointRep () );
00049   add ( new FilledColumnPointRep () );
00050   add ( new LinePointRep () );
00051   add ( new SymbolPointRep () );
00052   add ( new ColorSymbolPointRep () );
00053   add ( new CutRangeRep () );
00054   add ( new LineFunctionRep () );
00055 }
00056 
00057 } // namespace hippodraw

Generated for HippoDraw Class Library by doxygen