This is a singleton for managing chart renderer instance available in the system.
More...
#include <ChartRendererManager.h>
|
static ::boost::recursive_mutex | sm_mtx |
| The mutex used to control the class lock.
More...
|
|
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);
- See also
- AbstractChartRenderer, Chart
Definition at line 61 of file ChartRendererManager.h.
◆ LockRead
typedef ClassLevelLockingPolicy<::boost::lock_guard< ::boost::recursive_mutex > > te::common::ClassLevelLockable< ChartRendererManager , ::boost::recursive_mutex , ::boost::lock_guard< ::boost::recursive_mutex > , ::boost::lock_guard< ::boost::recursive_mutex > >::LockRead |
|
inherited |
◆ LockWrite
typedef ClassLevelLockingPolicy<::boost::lock_guard< ::boost::recursive_mutex > > te::common::ClassLevelLockable< ChartRendererManager , ::boost::recursive_mutex , ::boost::lock_guard< ::boost::recursive_mutex > , ::boost::lock_guard< ::boost::recursive_mutex > >::LockWrite |
|
inherited |
◆ VolatileType
◆ ChartRendererManager()
te::map::ChartRendererManager::ChartRendererManager |
( |
| ) |
|
|
protected |
It initializes the singleton instance of the chart renderer manager.
◆ ~ChartRendererManager()
te::map::ChartRendererManager::~ChartRendererManager |
( |
| ) |
|
|
protected |
◆ getInstance()
It returns a reference to the singleton instance.
- Returns
- A reference to the singleton instance.
Definition at line 109 of file Singleton.h.
◆ render() [1/2]
te::color::RGBAColor ** te::map::ChartRendererManager::render |
( |
const Chart * |
chart, |
|
|
const std::map< std::string, double > & |
chartValue, |
|
|
std::size_t & |
width |
|
) |
| |
◆ render() [2/2]
It generates the image pattern from the given chart and dataset.
- Parameters
-
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. |
- Returns
- The RGBA image that represents the chart.
- Note
- The caller will take the ownership of the returned pointer.
- Exceptions
-
Exception | It will throws an exception if the image pattern can not be generated. |
◆ set()
It sets the chart renderer to the manager.
- Parameters
-
renderer | The renderer that will be set. |
- Note
- The manager will take the owership of the given chart renderer.
◆ te::common::Singleton< ChartRendererManager >
◆ m_renderer
◆ sm_mtx
The documentation for this class was generated from the following file: