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 |
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. |
Definition at line 93 of file MarkRendererManager.cpp.
References TE_TR.
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.
Definition at line 86 of file MarkRendererManager.cpp.
It returns a reference to the singleton instance.
- Returns
- A reference to the singleton instance.
Referenced by te::map::CanvasConfigurer::config(), te::qt::widgets::Config2DrawPoints(), te::graph::LayerRenderer::configDefaultPoint(), te::graph::LayerRenderer::configLoopPoint(), te::qt::widgets::Info::drawGeometry(), te::qt::widgets::MarkSymbol::drawSymbols(), te::qt::widgets::GlyphGraphicWidget::getGraphicIcon(), te::qt::widgets::WellKnownGraphicWidget::getGraphicIcon(), te::qt::widgets::WellKnownMarkPropertyItem::getTypeNames(), te::qt::widgets::Module::initialize(), te::qt::widgets::MixtureModelWizardPage::MixtureModelWizardPage(), te::qt::widgets::Terralib2Qwt(), te::qt::widgets::TiePointLocatorWidget::TiePointLocatorWidget(), te::qt::widgets::WellKnownMarkWidget::WellKnownMarkWidget(), and te::qt::widgets::ZoomInMapDisplayWidget::ZoomInMapDisplayWidget().
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. |
Definition at line 51 of file MarkRendererManager.cpp.
References te::se::Mark::getWellKnownName(), TE_TR, and te::common::Tokenize().
Referenced by te::map::CanvasConfigurer::config().
The documentation for this class was generated from the following files:
- /home/castejon/castejon_files/develop/terralib5/git_master/terralib5/src/terralib/maptools/MarkRendererManager.h
- /home/castejon/castejon_files/develop/terralib5/git_master/terralib5/src/terralib/maptools/MarkRendererManager.cpp