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... | |
te::color::RGBAColor ** | render (const Chart *chart, const std::map< std::string, double > &chartValue, std::size_t &width) |
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 BBOXReader(), BBOXWriter(), BetweenReader(), BetweenWriter(), BinaryComparsionOpReader(), BinaryComparsionOpWriter(), BinaryOperatorReader(), BinarySpatialOpReader(), BinarySpatialOpWriter(), te::map::AbstractLayerRenderer::buildChart(), te::map::QueryLayerRenderer::buildChart(), te::edit::SnapOptionsDialog::buildOptions(), te::layout::PropertiesOutside::changeMapVisitable(), te::layout::ItemUtils::createLegendChildItemFromLegend(), DistanceBufferOpWriter(), DistanceBufferReader(), te::sa::GetColorBar(), te::edit::Module::initialize(), te::color::Module::initialize(), te::qt::widgets::Module::initialize(), te::qt::af::GeneralConfigWidget::initialize(), te::qt::af::ApplicationController::initialize(), LikeReader(), LikeWriter(), te::qt::widgets::ColorCatalogWidget::loadDefaultColorCatalog(), NullReader(), NullWriter(), te::qt::plugins::edit::ApplicationListener::onApplicationTriggered(), te::qt::widgets::ColorCatalogWidget::onCatalogComboBoxActivated(), te::qt::widgets::ColorCatalogWidget::onGroupComboBoxActivated(), te::edit::SnapOptionsDialog::onOkPushButtonPressed(), te::qt::widgets::ColorCatalogWidget::onSchemaComboBoxActivated(), te::se::serialize::ReadGeometryPropertyHelper(), te::map::serialize::ReadGroupingItem(), te::se::serialize::ReadParameterValue(), te::se::serialize::ReadRule(), te::se::serialize::ReadSvgParameter(), te::qt::widgets::ReadSymbol(), te::se::serialize::Save(), te::color::ColorSchemeCatalog::setName(), te::qt::af::UpdateUserSettingsFile(), te::se::serialize::WriteGeometryPropertyHelper(), and te::map::serialize::WriteLayerGrouping().
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 TE_TR.
te::color::RGBAColor ** te::map::ChartRendererManager::render | ( | const Chart * | chart, |
const std::map< std::string, double > & | chartValue, | ||
std::size_t & | width | ||
) |
Definition at line 55 of file ChartRendererManager.cpp.
References TE_TR.
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 65 of file ChartRendererManager.cpp.
|
friend |
Definition at line 67 of file ChartRendererManager.h.
|
private |
The chart renderer in the manager.
Definition at line 107 of file ChartRendererManager.h.