27 #include "../common/Translator.h"
50 throw Exception(
TR_MAP(
"There is not a chart renderer registered!"));
52 return m_renderer->render(chart, dataset, width);
58 m_renderer = renderer;
ChartRendererManager()
It initializes the singleton instance of the chart renderer manager.
This is the base class for chart renderers.
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. ...
An exception class for the MapTools module.
A helper class for 32-bit RGBA (Red-Green-Blue-Alpha channel) color.
void set(AbstractChartRenderer *renderer)
It sets the chart renderer to the manager.
#define TR_MAP(message)
It marks a string in order to get translated. This is a special mark used in the Map Rendering module...
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 class represents the informations needed to build map charts.
A dataset is the unit of information manipulated by the data access module of TerraLib.
~ChartRendererManager()
Singleton destructor.