te::gm::GTFactory Class Referenceabstract

2D Geometric transformation factory. More...

#include <GTFactory.h>

Inheritance diagram for te::gm::GTFactory:
te::common::AbstractFactory< GeometricTransformation, std::string > te::gm::AffineGTFactory te::gm::ProjectiveGTFactory te::gm::RSTGTFactory te::gm::SecondDegreePolynomialGTFactory te::gm::ThirdDegreePolynomialGTFactory

Public Types

typedef FactoryDictionary< AbstractFactory< GeometricTransformation, std::string, std::less< std::string > >, std::string, std::less< std::string > > dictionary_type
 
typedef AbstractFactory factory_type
 

Public Member Functions

const std::string & getKey () const
 It returns the factory key associated to the concreate factory. More...
 
virtual ~GTFactory ()
 

Static Public Member Functions

static const factory_typefind (const std::string &factoryKey)
 
static dictionary_typegetDictionary ()
 It returns a reference to the internal dictionary of concrete factories. More...
 
static GeometricTransformationmake (const std::string &factoryKey)
 It creates an object with the appropriated factory. More...
 

Protected Member Functions

virtual GeometricTransformationbuild ()=0
 Concrete factories (derived from this one) must implement this method in order to create objects. More...
 
 GTFactory (const std::string &factoryKey)
 

Protected Attributes

std::string m_factoryKey
 The key that identifies the concrete factory: it will be used for unregistering the factory during destruction. More...
 

Detailed Description

2D Geometric transformation factory.

Definition at line 46 of file GTFactory.h.

Member Typedef Documentation

typedef FactoryDictionary<AbstractFactory<GeometricTransformation , std::string , std::less<std::string > >, std::string , std::less<std::string > > te::common::AbstractFactory< GeometricTransformation , std::string , std::less<std::string > >::dictionary_type
inherited

Definition at line 73 of file AbstractFactory.h.

typedef AbstractFactory te::common::AbstractFactory< GeometricTransformation , std::string , std::less<std::string > >::factory_type
inherited

Definition at line 77 of file AbstractFactory.h.

Constructor & Destructor Documentation

te::gm::GTFactory::~GTFactory ( )
virtualdefault

Referenced by GTFactory().

te::gm::GTFactory::GTFactory ( const std::string &  factoryKey)
protected

Definition at line 29 of file GTFactory.cpp.

References ~GTFactory().

Member Function Documentation

virtual GeometricTransformation * te::common::AbstractFactory< GeometricTransformation , std::string , std::less<std::string > >::build ( )
protectedpure virtualinherited

Concrete factories (derived from this one) must implement this method in order to create objects.

Returns
It returns an object created by the concrete factory.

Implemented in te::gm::AffineGTFactory, te::gm::ProjectiveGTFactory, te::gm::RSTGTFactory, te::gm::SecondDegreePolynomialGTFactory, and te::gm::ThirdDegreePolynomialGTFactory.

static const factory_type* te::common::AbstractFactory< GeometricTransformation , std::string , std::less<std::string > >::find ( const std::string &  factoryKey)
staticinherited
static dictionary_type& te::common::AbstractFactory< GeometricTransformation , std::string , std::less<std::string > >::getDictionary ( )
staticinherited

It returns a reference to the internal dictionary of concrete factories.

The dictionary is a singleton.

Returns
A reference to the internal dictionary.

Referenced by te::qt::widgets::MosaicWizardPage::fillMosaicTypes(), te::qt::widgets::TiePointsLocatorAdvancedDialog::showEvent(), and te::qt::widgets::TiePointLocatorParametersWidget::startAdvancedOptions().

const std::string & te::common::AbstractFactory< GeometricTransformation , std::string , std::less<std::string > >::getKey ( ) const
inherited

It returns the factory key associated to the concreate factory.

Returns
The factory key associated to the concreate factory.
static GeometricTransformation * te::common::AbstractFactory< GeometricTransformation , std::string , std::less<std::string > >::make ( const std::string &  factoryKey)
staticinherited

Member Data Documentation

std::string te::common::AbstractFactory< GeometricTransformation , std::string , std::less<std::string > >::m_factoryKey
protectedinherited

The key that identifies the concrete factory: it will be used for unregistering the factory during destruction.

Definition at line 136 of file AbstractFactory.h.


The documentation for this class was generated from the following files: