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

ViewFactory Class Reference

#include <ViewFactory.h>

Inheritance diagram for ViewFactory:

Inheritance graph
[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 33 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::ViewFactory  )  [protected]
 

The default constructor is disallowed.

Definition at line 16 of file ViewFactory.cxx.

References m_instance.

ViewFactory::ViewFactory const ViewFactory  )  [private]
 

The disallowed copy constructor.

virtual ViewFactory::~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 55 of file ViewFactory.h.


Member Function Documentation

virtual FontBase* ViewFactory::createFont  )  const [pure virtual]
 

Creates a default FontBase object.

Implemented in QtViewFactory.

virtual ViewBase* ViewFactory::createView PlotterBase plotter  )  const [pure virtual]
 

Creates a view for the plotter.

Implemented in QtViewFactory.

Referenced by CanvasView::addPlotDisplay(), DisplayController::createTextView(), and XmlController::createView().

ViewFactory * ViewFactory::instance  )  [static]
 

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.


Member Data Documentation

ViewFactory * 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 14 of file ViewFactory.cxx.

Referenced by instance(), QtViewFactory::instance(), and ViewFactory().


The documentation for this class was generated from the following files:
Generated for HippoDraw-1.14.8.5 by doxygen 1.4.3