Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

halftoner::HalftonerFactory Class Reference

#include <HalftonerFactory.h>

Collaboration diagram for halftoner::HalftonerFactory:

Collaboration graph
[legend]
List of all members.

Detailed Description

Class HalftonerFactory is responsible for the creation of halftoning objects in a way that is transparent to the user.

Todo:
make the keys for the algorithm as objects other than const char*, probably agragating Instanciator with it.

Definition at line 44 of file HalftonerFactory.h.

Class variable.

Public Methods

Static Public Methods

Class methods.

Private Methods

Disabled operations

Static Private Methods

Accessor.
Gets the repository.


Constructor & Destructor Documentation

halftoner::HalftonerFactory::HalftonerFactory   throw () [private]
 

Disable default constructor.

halftoner::HalftonerFactory::HalftonerFactory const HalftonerFactory &    throw () [private]
 

Disable copy constructor.

halftoner::HalftonerFactory::~HalftonerFactory   throw ()
 

Destructor.

Definition at line 199 of file HalftonerFactory.cxx.


Member Function Documentation

void halftoner::HalftonerFactory::addHalftoner const char *    key,
const Instanciator   instanciator
throw (std::invalid_argument) [static]
 

Adds a new algorithm at runtime.

Parameters:
key  the unique name of the algorithm.
instanciator  the object instanciator.

Definition at line 217 of file HalftonerFactory.cxx.

References halftoner::HalftonerFactory::Repository::add().

Halftoner * halftoner::HalftonerFactory::getInstance const char *    key throw (std::invalid_argument) [static]
 

Returns a new halftoner object that implements the specified algorithm.

Parameters:
key  the unique name of the algorithm.
Returns :
a fully functional Halftoner that implements the requested algorithm. The returned object must be manually deleted.
Exceptions:
std::invalid_argument  if the key does not map.
std::invalid_argument  if 0 == key.

Definition at line 235 of file HalftonerFactory.cxx.

References halftoner::HalftonerFactory::Repository::get().

HalftonerFactory::Repository & halftoner::HalftonerFactory::getRepository   throw () [static, private]
 

Returns :
a reference to the repository.

Definition at line 212 of file HalftonerFactory.cxx.

HalftonerFactory halftoner::HalftonerFactory::operator= const HalftonerFactory &    throw () [private]
 

Disable assignement operator.


Member Data Documentation

const char * halftoner::HalftonerFactory::FLOYD_STEINBERG [static]
 

Mnemonic for the Floyd-Steinberg algorithm.

Definition at line 187 of file HalftonerFactory.cxx.

const char * halftoner::HalftonerFactory::JARVIS_JUDICE_NINKE [static]
 

Mnemonic for the Jarvis-Judice-Ninke algorithm.

Definition at line 188 of file HalftonerFactory.cxx.

HalftonerFactory::Repository halftoner::HalftonerFactory::repository [static, private]
 

The repository.

Definition at line 185 of file HalftonerFactory.cxx.

const char * halftoner::HalftonerFactory::STUCKI [static]
 

Mnemonic for the Stucki algorithm.

Definition at line 189 of file HalftonerFactory.cxx.

const char * halftoner::HalftonerFactory::VG91 [static]
 

Mnemonic for the Velho-Gomez-91 algorithm.

Definition at line 190 of file HalftonerFactory.cxx.

const char * halftoner::HalftonerFactory::VG95 [static]
 

Mnemonic for the Velho-Gomez-95 algorithm.

Definition at line 191 of file HalftonerFactory.cxx.

const char * halftoner::HalftonerFactory::VGEXP [static]
 

Mnemonic for the experimental Velho-Gomez algorithm.

Definition at line 192 of file HalftonerFactory.cxx.


The documentation for this class was generated from the following files:
Generated on Sat Sep 7 16:35:51 2002 for Halftoning Library by doxygen1.2.17