This is a singleton for managing all external graphic renderers instances available in the system. More...
#include <ExternalGraphicRendererManager.h>
  
 Public Types | |
| typedef  ClassLevelLockingPolicy < ::boost::lock_guard < ::boost::recursive_mutex > >  | LockRead | 
| typedef  ClassLevelLockingPolicy < ::boost::lock_guard < ::boost::recursive_mutex > >  | LockWrite | 
| typedef volatile  ExternalGraphicRendererManager  | VolatileType | 
Public Member Functions | |
| void | add (AbstractExternalGraphicRenderer *renderer) | 
| It adds a new external graphic renderer to the manager.  More... | |
| te::color::RGBAColor ** | render (const te::se::ExternalGraphic *eg, std::size_t height, std::size_t &width) | 
| It generates the image pattern from the given Symbology Enconding External Graphic element.  More... | |
Static Public Member Functions | |
| static  ExternalGraphicRendererManager &  | getInstance () | 
| It returns a reference to the singleton instance.  More... | |
Protected Member Functions | |
| ExternalGraphicRendererManager () | |
| It initializes the singleton instance of the external graphic renderer manager.  More... | |
| ~ExternalGraphicRendererManager () | |
| Singleton destructor.  More... | |
Private Attributes | |
| std::vector < AbstractExternalGraphicRenderer * >  | m_renderers | 
| The external graphic renderers in the manager.  More... | |
Friends | |
| class | te::common::Singleton< ExternalGraphicRendererManager > | 
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); 
Definition at line 63 of file ExternalGraphicRendererManager.h.
      
  | 
  inherited | 
Definition at line 302 of file ThreadingPolicies.h.
      
  | 
  inherited | 
Definition at line 303 of file ThreadingPolicies.h.
      
  | 
  inherited | 
Definition at line 301 of file ThreadingPolicies.h.
      
  | 
  protected | 
It initializes the singleton instance of the external graphic renderer manager.
Definition at line 37 of file ExternalGraphicRendererManager.cpp.
      
  | 
  protected | 
Singleton destructor.
Definition at line 41 of file ExternalGraphicRendererManager.cpp.
References te::common::FreeContents().
| void te::map::ExternalGraphicRendererManager::add | ( | AbstractExternalGraphicRenderer * | renderer | ) | 
It adds a new external graphic renderer to the manager.
| renderer | The new external graphic renderer that will be added on the manager. | 
Definition at line 69 of file ExternalGraphicRendererManager.cpp.
      
  | 
  staticinherited | 
It returns a reference to the singleton instance.
Referenced by te::map::CanvasConfigurer::config(), te::qt::widgets::Module::initialize(), and te::qt::widgets::Terralib2Qwt().
| te::color::RGBAColor ** te::map::ExternalGraphicRendererManager::render | ( | const te::se::ExternalGraphic * | eg, | 
| std::size_t | height, | ||
| std::size_t & | width | ||
| ) | 
It generates the image pattern from the given Symbology Enconding External Graphic element.
| 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. | 
| width | An output parameter that will be filled with the width of generated image pattern. | 
| Exception | It will throws an exception if the image pattern can not be generated. | 
Definition at line 46 of file ExternalGraphicRendererManager.cpp.
References TE_TR.
Referenced by te::map::CanvasConfigurer::config().
      
  | 
  friend | 
Definition at line 69 of file ExternalGraphicRendererManager.h.
      
  | 
  private | 
The external graphic renderers in the manager.
Definition at line 109 of file ExternalGraphicRendererManager.h.