#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 33 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. |
|
The default constructor is disallowed.
Definition at line 16 of file ViewFactory.cxx. References m_instance. |
|
The disallowed copy constructor.
|
|
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 55 of file ViewFactory.h. |
|
Creates a default FontBase object.
Implemented in QtViewFactory. |
|
Creates a view for the plotter.
Implemented in QtViewFactory. Referenced by CanvasView::addPlotDisplay(), DisplayController::createTextView(), and XmlController::createView(). |
|
The public interface for getting to the concrete default view factory.
Reimplemented in QtViewFactory. Definition at line 21 of file ViewFactory.cxx. References m_instance. |
|
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 14 of file ViewFactory.cxx. Referenced by instance(), QtViewFactory::instance(), and ViewFactory(). |