This is a singleton for managing all mark renderers instances available in the system.
More...
#include <MarkRendererManager.h>
This is a singleton for managing all mark renderers instances available in the system.
If you want to render a mark, use commands like: te::color::RBGA** image = te::map::MarkRendererManager::getInstance().render(mark, size);
- See also
- AbstractMarkRenderer
Definition at line 63 of file MarkRendererManager.h.
te::map::MarkRendererManager::MarkRendererManager |
( |
| ) |
|
|
protected |
It initializes the singleton instance of the mark renderer manager.
te::map::MarkRendererManager::~MarkRendererManager |
( |
| ) |
|
|
protected |
It adds a new mark renderer to the manager.
- Parameters
-
key | The key of the new renderer. |
renderer | The new mark renderer that will be added on the manager. |
- Note
- The manager will take the owership of the given mark renderer.
- Exceptions
-
Exception | It will throws an exception if there is already a mark renderer registered with the given key. |
void te::map::MarkRendererManager::clear |
( |
| ) |
|
It clears the marks renderers of the manager.
void te::map::MarkRendererManager::getAllSupportedMarks |
( |
std::vector< std::string > & |
marks | ) |
const |
It informs the set of all supported marks available in the system.
- Parameters
-
marks | A pre-created vector of string that will be filled with the supported marks names. |
- Note
- All registered mark renderers will be consulted.
It returns a reference to the singleton instance.
- Returns
- A reference to the singleton instance.
It generates the image pattern from the given Symbology Enconding Mark element.
- Parameters
-
mark | The Symbology Enconding Mark element that will be used as base to build the image pattern. |
size | The size of image pattern that will be generated. |
- Returns
- The RGBA image that represents the mark.
- Note
- This method will look the name of the mark and try extract the associated rendererKey. The pattern used is "rendererKey://markName". Case empty will be used the default mark renderer.
-
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. |
The documentation for this class was generated from the following file: