This is a singleton for managing chart renderer instance available in the system. More...
#include <ChartRendererManager.h>
  
 Public Types | |
| typedef  ClassLevelLockingPolicy < ::boost::lock_guard < ::boost::recursive_mutex > >  | LockRead | 
| typedef  ClassLevelLockingPolicy < ::boost::lock_guard < ::boost::recursive_mutex > >  | LockWrite | 
| typedef volatile  ChartRendererManager  | VolatileType | 
Public Member Functions | |
| te::color::RGBAColor ** | render (const Chart *chart, const te::da::DataSet *dataset, std::size_t &width) | 
| It generates the image pattern from the given chart and dataset.  More... | |
| void | set (AbstractChartRenderer *renderer) | 
| It sets the chart renderer to the manager.  More... | |
Static Public Member Functions | |
| static T & | getInstance () | 
| It returns a reference to the singleton instance.  More... | |
Protected Member Functions | |
| ChartRendererManager () | |
| It initializes the singleton instance of the chart renderer manager.  More... | |
| ~ChartRendererManager () | |
| Singleton destructor.  More... | |
Private Attributes | |
| AbstractChartRenderer * | m_renderer | 
| The chart renderer in the manager.  More... | |
Friends | |
| class | te::common::Singleton< ChartRendererManager > | 
This is a singleton for managing chart renderer instance available in the system.
If you want to render a chart, use commands like:  te::color::RBGA** image = te::map::ChartRendererManager::getInstance().render(chart, dataset); 
Definition at line 61 of file ChartRendererManager.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 chart renderer manager.
Definition at line 35 of file ChartRendererManager.cpp.
      
  | 
  protected | 
Singleton destructor.
Definition at line 40 of file ChartRendererManager.cpp.
      
  | 
  inlinestaticinherited | 
It returns a reference to the singleton instance.
Definition at line 120 of file Singleton.h.
Referenced by BinaryLogicOpReader(), BinaryLogicOpWriter(), te::map::AbstractLayerRenderer::buildChart(), te::common::TaskProgress::cancel(), te::qt::widgets::SegmenterWizard::execute(), te::qt::widgets::Module::initialize(), te::qt::af::ApplicationController::initialize(), te::qt::af::ApplicationController::initializePlugins(), te::common::UserApplicationSettings::load(), te::qt::af::ApplicationPlugins::load(), te::qt::af::BaseApplication::makeDialog(), te::vp::IntersectionDialog::onOkPushButtonClicked(), te::vp::BufferDialog::onOkPushButtonClicked(), te::vp::AggregationDialog::onOkPushButtonClicked(), te::qt::af::BaseApplication::onStopDrawTriggered(), te::serialize::ReadFilter(), te::common::TaskProgress::setCurrentStep(), te::common::TaskProgress::setMessage(), te::color::ColorSchemeCatalog::setName(), te::common::TaskProgress::setTotalSteps(), te::common::TaskProgress::TaskProgress(), UnaryLogicOpReader(), UnaryLogicOpWriter(), and te::common::TaskProgress::~TaskProgress().
| te::color::RGBAColor ** te::map::ChartRendererManager::render | ( | const Chart * | chart, | 
| const te::da::DataSet * | dataset, | ||
| std::size_t & | width | ||
| ) | 
It generates the image pattern from the given chart and dataset.
| chart | The chart informations that will be used. | 
| dataset | The dataset that will be used. | 
| 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 45 of file ChartRendererManager.cpp.
References TR_MAP.
| void te::map::ChartRendererManager::set | ( | AbstractChartRenderer * | renderer | ) | 
It sets the chart renderer to the manager.
| renderer | The renderer that will be set. | 
Definition at line 55 of file ChartRendererManager.cpp.
      
  | 
  friend | 
Definition at line 67 of file ChartRendererManager.h.
      
  | 
  private | 
The chart renderer in the manager.
Definition at line 105 of file ChartRendererManager.h.