ViewFactory Class Reference

#include <ViewFactory.h>

Inheritance diagram for ViewFactory:

Inheritance graph
QtViewFactory
[legend]
Collaboration diagram for ViewFactory:

Collaboration graph
[legend]
List of all members.

Detailed Description

The abstract base class for a factory that creates objects closely related to the graphics subsystem in use.

The factory objects create objects of concrete classes derived from ViewBase and FontBase. Known examples of concrete view factorys are JavaViewFactory, OpenGLViewFactory and QtViewFactory.

Author:
Paul F. Kunz <Paul_Kunz@slac.stanford.edu>

Definition at line 35 of file ViewFactory.h.

Public Member Functions

virtual FontBasecreateFont () const=0
 Creates a default FontBase object.
virtual ViewBasecreateView (PlotterBase *plotter) const=0
 Creates a view for the plotter.
virtual ~ViewFactory ()
 The virtual destructor.

Static Public Member Functions

static ViewFactoryinstance ()
 The public interface for getting to the concrete default view factory.

Protected Member Functions

 ViewFactory ()
 The default constructor is disallowed.

Static Protected Attributes

static ViewFactorym_instance = 0
 An instance of the default view factory.

Private Member Functions

 ViewFactory (const ViewFactory &)
 The disallowed copy constructor.


Constructor & Destructor Documentation

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.


Member Function Documentation

virtual FontBase* createFont (  )  const [pure virtual]

Creates a default FontBase object.

Implemented in QtViewFactory.

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.


Member Data Documentation

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().


The documentation for this class was generated from the following files:
Generated for HippoDraw Class Library by doxygen