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 BBOXReader(), BBOXWriter(), BetweenReader(), BetweenWriter(), BinaryComparsionOpReader(), BinaryComparsionOpWriter(), BinaryOperatorReader(), BinarySpatialOpReader(), BinarySpatialOpWriter(), te::map::AbstractLayerRenderer::buildChart(), DistanceBufferOpWriter(), DistanceBufferReader(), 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::widgets::ColorCatalogWidget::onCatalogComboBoxActivated(), te::qt::widgets::ColorCatalogWidget::onGroupComboBoxActivated(), te::qt::widgets::ColorCatalogWidget::onSchemaComboBoxActivated(), te::se::serialize::ReadGeometryPropertyHelper(), te::se::serialize::ReadParameterValue(), te::se::serialize::ReadSvgParameter(), te::se::serialize::Save(), te::color::ColorSchemeCatalog::setName(), te::qt::af::UpdateUserSettingsFile(), and te::se::serialize::WriteGeometryPropertyHelper().
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.
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.