27 #include "../common/Translator.h"
50 throw Exception(
TE_TR(
"There is not a chart renderer registered!"));
52 return m_renderer->render(chart, dataset, width);
60 throw Exception(
TE_TR(
"There is not a chart renderer registered!"));
62 return m_renderer->render(chart, chartValue, width);
68 m_renderer = renderer;
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.
This is the base class for chart renderers.
ClassLevelLockingPolicy< ::boost::lock_guard< ::boost::recursive_mutex > > LockWrite
This is a singleton for managing chart renderer instance available in the system. ...
#define TE_TR(message)
It marks a string in order to get translated.
This class represents the informations needed to build map charts.
~ChartRendererManager()
Singleton destructor.
ChartRendererManager()
It initializes the singleton instance of the chart renderer manager.
A dataset is the unit of information manipulated by the data access module of TerraLib.
void set(AbstractChartRenderer *renderer)
It sets the chart renderer to the manager.
A helper class for 32-bit RGBA (Red-Green-Blue-Alpha channel) color.
This is the base class for chart renderers.