te::gm::RSTGTFactory Class Reference

2D RST Geometric transformation factory. More...

#include <RSTGTFactory.h>

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

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

Static Public Member Functions

static void finalize ()
 Finalize the factory. More...
 
static const factory_type * find (const std::string &factoryKey)
 
static dictionary_type & getDictionary ()
 It returns a reference to the internal dictionary of concrete factories. More...
 
static void initialize ()
 Initialize the factory. More...
 
static GeometricTransformation * make (const std::string &factoryKey)
 It creates an object with the appropriated factory. More...
 

Protected Member Functions

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

Protected Attributes

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

Static Protected Attributes

static GTFactory * m_initializedFactoryPtr
 

Detailed Description

2D RST Geometric transformation factory.

Definition at line 42 of file RSTGTFactory.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::RSTGTFactory::RSTGTFactory ( )

Definition at line 32 of file RSTGTFactory.cpp.

References ~RSTGTFactory().

Referenced by initialize().

te::gm::RSTGTFactory::~RSTGTFactory ( )
default

Referenced by RSTGTFactory().

Member Function Documentation

te::gm::GeometricTransformation * te::gm::RSTGTFactory::build ( )
protectedvirtual

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.

Implements te::common::AbstractFactory< GeometricTransformation, std::string >.

Definition at line 51 of file RSTGTFactory.cpp.

void te::gm::RSTGTFactory::finalize ( )
static

Finalize the factory.

Definition at line 45 of file RSTGTFactory.cpp.

References m_initializedFactoryPtr.

Referenced by te::gm::Module::finalize(), and initialize().

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.
void te::gm::RSTGTFactory::initialize ( )
static

Initialize the factory.

Definition at line 39 of file RSTGTFactory.cpp.

References finalize(), m_initializedFactoryPtr, and RSTGTFactory().

Referenced by te::gm::Module::initialize().

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.

te::gm::GTFactory * te::gm::RSTGTFactory::m_initializedFactoryPtr
staticprotected

Definition at line 58 of file RSTGTFactory.h.

Referenced by finalize(), and initialize().


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