#include <ViewFactory.h>
Inheritance diagram for ViewFactory:
The factory objects create objects of concrete classes derived from ViewBase and FontBase. Known examples of concrete view factorys are JavaViewFactory, OpenGLViewFactory and QtViewFactory.
Definition at line 35 of file ViewFactory.h.
Public Member Functions | |
virtual FontBase * | createFont () const=0 |
Creates a default FontBase object. | |
virtual ViewBase * | createView (PlotterBase *plotter) const=0 |
Creates a view for the plotter. | |
virtual | ~ViewFactory () |
The virtual destructor. | |
Static Public Member Functions | |
static ViewFactory * | instance () |
The public interface for getting to the concrete default view factory. | |
Protected Member Functions | |
ViewFactory () | |
The default constructor is disallowed. | |
Static Protected Attributes | |
static ViewFactory * | m_instance = 0 |
An instance of the default view factory. | |
Private Member Functions | |
ViewFactory (const ViewFactory &) | |
The disallowed copy constructor. |
ViewFactory | ( | ) | [protected] |
The default constructor is disallowed.
Definition at line 18 of file ViewFactory.cxx.
References ViewFactory::m_instance.
ViewFactory | ( | const ViewFactory & | ) | [private] |
The disallowed copy constructor.
virtual ~ViewFactory | ( | ) | [inline, virtual] |
The virtual destructor.
The virtual destrcutor which is only needed to keep warning messages from some compilers such as Gcc 4.0.0.
Definition at line 57 of file ViewFactory.h.
virtual FontBase* createFont | ( | ) | const [pure virtual] |
virtual ViewBase* createView | ( | PlotterBase * | plotter | ) | const [pure virtual] |
Creates a view for the plotter.
Implemented in QtViewFactory.
Referenced by DisplayController::createTextView(), and XmlController::createView().
ViewFactory * instance | ( | ) | [static] |
The public interface for getting to the concrete default view factory.
Reimplemented in QtViewFactory.
Definition at line 23 of file ViewFactory.cxx.
References ViewFactory::m_instance.
ViewFactory * m_instance = 0 [static, protected] |
An instance of the default view factory.
It should be created at the application initialization time for the default concrete view factory.
Definition at line 42 of file ViewFactory.h.
Referenced by ViewFactory::instance(), QtViewFactory::instance(), and ViewFactory::ViewFactory().