27 #include "../core/translator/Translator.h" 50 throw Exception(
TE_TR(
"There is not a chart renderer registered!"));
60 throw Exception(
TE_TR(
"There is not a chart renderer registered!"));
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.
Base exception class for plugin module.
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.
AbstractChartRenderer * m_renderer
The chart renderer in the manager.
This class represents the informations needed to build map charts.
~ChartRendererManager()
Singleton destructor.
ChartRendererManager()
It initializes the singleton instance of the chart renderer manager.
virtual te::color::RGBAColor ** render(const Chart *chart, const te::da::DataSet *dataset, std::size_t &width)=0
It generates the image pattern from the given chart and the current element of dataset.
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.