This is a singleton for managing all external graphic renderers instances available in the system.
More...
#include <ExternalGraphicRendererManager.h>
|
static ::boost::recursive_mutex | sm_mtx |
| The mutex used to control the class lock.
|
|
This is a singleton for managing all external graphic renderers instances available in the system.
If you want to render a external graphic, use commands like: te::color::RBGA** image = te::map::ExternalGraphicRendererManager::getInstance().render(eg, size);
- See also
- AbstractExternalGraphickRenderer
Definition at line 63 of file ExternalGraphicRendererManager.h.
◆ LockRead
◆ LockWrite
◆ VolatileType
◆ ExternalGraphicRendererManager()
te::map::ExternalGraphicRendererManager::ExternalGraphicRendererManager |
( |
| ) |
|
|
protected |
It initializes the singleton instance of the external graphic renderer manager.
◆ ~ExternalGraphicRendererManager()
te::map::ExternalGraphicRendererManager::~ExternalGraphicRendererManager |
( |
| ) |
|
|
protected |
◆ add()
It adds a new external graphic renderer to the manager.
- Parameters
-
renderer | The new external graphic renderer that will be added on the manager. |
- Note
- The manager will take the owership of the given external graphic renderer.
◆ clear()
void te::map::ExternalGraphicRendererManager::clear |
( |
| ) |
|
It clears the graphic renderers of the manager.
◆ getInstance()
It returns a reference to the singleton instance.
- Returns
- A reference to the singleton instance.
Definition at line 109 of file Singleton.h.
◆ render()
It generates the image pattern from the given Symbology Enconding External Graphic element.
- Parameters
-
eg | The Symbology Enconding External Graphic element that will be used as base to build the image pattern. |
height | The height of image pattern that will be generated. |
rotation | The rotation of the image pattern that will be generated. |
width | An output parameter that will be filled with the width of generated image pattern. |
- Returns
- The RGBA image that represents the external graphic.
- Note
- This method will consult all registered external graphic renderers and the first that can process the given element will be used.
-
The caller will take the ownership of the returned pointer.
- Exceptions
-
Exception | It will throws an exception if the image pattern can not be generated. |
◆ te::common::Singleton< ExternalGraphicRendererManager >
◆ m_renderers
◆ sm_mtx
The documentation for this class was generated from the following file: