This is the abstract factory for layer renderers.
More...
#include <RendererFactory.h>
|
const std::string & | getKey () const |
| It returns the factory key associated to the concreate factory.
|
|
virtual | ~RendererFactory () |
| Virtual destructor.
|
|
|
virtual AbstractRenderer * | build ()=0 |
| Concrete factories (derived from this one) must implement this method in order to create objects.
|
|
| RendererFactory (const std::string &factoryKey) |
| It creates the factory.
|
|
|
std::string | m_factoryKey |
| The key that identifies the concrete factory: it will be used for unregistering the factory during destruction.
|
|
This is the abstract factory for layer renderers.
- See also
- AbstractRenderer, DataSetLayerRendererFactory, FeatureTypeStyleRendererFactory, CoverageStyleRendererFactory
Definition at line 47 of file RendererFactory.h.
◆ dictionary_type
◆ factory_type
◆ ~RendererFactory()
virtual te::map::RendererFactory::~RendererFactory |
( |
| ) |
|
|
virtual |
Virtual destructor.
- Note
- It will automatically unregister the factory from the dictionary.
◆ RendererFactory()
te::map::RendererFactory::RendererFactory |
( |
const std::string & |
factoryKey | ) |
|
|
protected |
It creates the factory.
- Parameters
-
factoryKey | The key that identifies the factory. |
◆ build()
|
protectedpure virtualinherited |
◆ find()
◆ getDictionary()
It returns a reference to the internal dictionary of concrete factories.
The dictionary is a singleton.
- Returns
- A reference to the internal dictionary.
Definition at line 106 of file AbstractFactory.h.
◆ getKey()
It returns the factory key associated to the concreate factory.
- Returns
- The factory key associated to the concreate factory.
Definition at line 84 of file AbstractFactory.h.
◆ make()
It creates an object with the appropriated factory.
- Parameters
-
factoryKey | A key that identifies the factory used to build the object. |
- Returns
- It returns a new object created by the given factory.
- Exceptions
-
Exception | If the concrete factory is not specified or the object can not be built for any reason this methiod may throws an exception. |
- Note
- The caller of this method will take the ownership of the returned object.
Definition at line 97 of file AbstractFactory.h.
◆ m_factoryKey
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 file:
- /home/castejon/castejon_files/develop/terralib5/git_release/src/terralib/maptools/RendererFactory.h