Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

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 
00019 // A list of default PointReps.
00020 #include "ColorBoxPointRep.h"
00021 #include "ContourPointRep.h"
00022 #include "ColumnPointRep.h"
00023 #include "LinePointRep.h"
00024 #include "ColorSymbolPointRep.h"
00025 #include "CutRangeRep.h"
00026 
00027 PointRepFactory * PointRepFactory::s_instance = 0;
00028 
00029 PointRepFactory::PointRepFactory ()
00030 {
00031 }
00032 
00033 PointRepFactory * PointRepFactory::instance ()
00034 {
00035   if ( s_instance == 0 ) {
00036     s_instance = new PointRepFactory ();
00037     s_instance->initialize ();
00038   }
00039   return s_instance;
00040 }
00041 
00042 void PointRepFactory::initialize ()
00043 {
00044   add ( new ColorBoxPointRep () );
00045   add ( new ContourPointRep () );
00046   add ( new ColumnPointRep () );
00047   add ( new LinePointRep () );
00048   add ( new SymbolPointRep () );
00049   add ( new ColorSymbolPointRep () );
00050   add ( new CutRangeRep () );
00051 }

Generated for HippoDraw-1.14.8.5 by doxygen 1.4.3