QtViewFactory.cxx

Go to the documentation of this file.
00001 
00012 #ifdef _MSC_VER
00013 #include "msdevstudio/MSconfig.h"
00014 #endif
00015 
00016 #include "QtViewFactory.h"
00017 
00018 #include "QtFont.h"
00019 #include "QtView.h"
00020 
00021 #include "plotters/PlotterBase.h"
00022 
00023 namespace hippodraw {
00024 
00025 QtViewFactory::QtViewFactory( )
00026   : ViewFactory()
00027 {
00028 }
00029 
00030 ViewFactory * QtViewFactory::instance ()
00031 {
00032   if ( m_instance == 0 ) {
00033     m_instance = new QtViewFactory ();
00034   }
00035 
00036   return m_instance;
00037 }
00038 
00039 ViewBase * 
00040 QtViewFactory::
00041 createView ( PlotterBase * plotter ) const
00042 {
00043   QtView * view = new QtView ( plotter );
00044 
00045   return view;
00046 }
00047 
00048 FontBase *
00049 QtViewFactory::
00050 createFont () const
00051 {
00052   return new QtFont ();
00053 }
00054 
00055 } // namespace hippodraw
00056 

Generated for HippoDraw Class Library by doxygen