This is the concrete factory for renderers of a AbstractLayer. i.e. builds a generic renderer. More...
#include <AbstractLayerRendererFactory.h>
Public Types | |
typedef FactoryDictionary< AbstractFactory< AbstractRenderer, 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... | |
~AbstractLayerRendererFactory () | |
Static Public Member Functions | |
static void | finalize () |
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 () |
static AbstractRenderer * | make (const std::string &factoryKey) |
It creates an object with the appropriated factory. More... | |
Protected Member Functions | |
AbstractLayerRendererFactory () | |
AbstractRenderer * | 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 Private Attributes | |
static AbstractLayerRendererFactory * | sm_factory |
A pointer to the global renderer factory. More... | |
This is the concrete factory for renderers of a AbstractLayer. i.e. builds a generic renderer.
Definition at line 45 of file AbstractLayerRendererFactory.h.
|
inherited |
Definition at line 73 of file AbstractFactory.h.
|
inherited |
Definition at line 77 of file AbstractFactory.h.
te::map::AbstractLayerRendererFactory::~AbstractLayerRendererFactory | ( | ) |
Definition at line 44 of file AbstractLayerRendererFactory.cpp.
|
protected |
Definition at line 53 of file AbstractLayerRendererFactory.cpp.
Referenced by initialize().
|
protectedvirtual |
Concrete factories (derived from this one) must implement this method in order to create objects.
Implements te::common::AbstractFactory< AbstractRenderer, std::string >.
Definition at line 48 of file AbstractLayerRendererFactory.cpp.
|
static |
Definition at line 38 of file AbstractLayerRendererFactory.cpp.
Referenced by te::map::Module::finalize(), and initialize().
|
staticinherited |
|
staticinherited |
It returns a reference to the internal dictionary of concrete factories.
The dictionary is a singleton.
|
inherited |
It returns the factory key associated to the concreate factory.
|
static |
Definition at line 32 of file AbstractLayerRendererFactory.cpp.
References AbstractLayerRendererFactory(), finalize(), and sm_factory.
Referenced by te::map::Module::initialize().
|
staticinherited |
It creates an object with the appropriated factory.
factoryKey | A key that identifies the factory used to build the object. |
Exception | If the concrete factory is not specified or the object can not be built for any reason this methiod may throws an exception. |
Referenced by te::edit::EditionLayer::draw(), te::wms::WMSLayer::draw(), te::map::DataSetLayer::draw(), te::map::QueryLayer::draw(), te::map::DataSetAdapterLayer::draw(), te::map::RasterLayer::draw(), te::st::ObservationDataSetLayer::draw(), te::st::TimeSeriesDataSetLayer::draw(), and te::st::TrajectoryDataSetLayer::draw().
|
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.
|
staticprivate |
A pointer to the global renderer factory.
Definition at line 63 of file AbstractLayerRendererFactory.h.
Referenced by initialize().