A concrete chart renderer based on Qt4. More...
#include <ChartRenderer.h>
  
 Public Member Functions | |
| ChartRenderer () | |
| Default constructor.  More... | |
| te::color::RGBAColor ** | render (const te::map::Chart *chart, const te::da::DataSet *dataset, std::size_t &width) | 
| It generates the image pattern from the given chart and the current element of dataset.  More... | |
| te::color::RGBAColor ** | render (const te::map::Chart *chart, const std::map< std::string, double > &chartValue, std::size_t &width) | 
| ~ChartRenderer () | |
| Destructor.  More... | |
Protected Member Functions | |
| double | computeSum (const std::vector< double > &values) | 
| QImage * | drawBars (const te::map::Chart *chart, const te::da::DataSet *dataset, std::size_t &width) | 
| QImage * | drawBars (const te::map::Chart *chart, const std::map< std::string, double > &chartValue, std::size_t &width) | 
| QImage * | drawPies (const te::map::Chart *chart, const te::da::DataSet *dataset, std::size_t &width) | 
| QImage * | drawPies (const te::map::Chart *chart, const std::map< std::string, double > &chartValue, std::size_t &width) | 
| double | getMaxValue (const std::vector< double > &values) | 
| void | getValues (const te::map::Chart *chart, const te::da::DataSet *dataset, std::vector< double > &values) | 
| void | getValues (const te::map::Chart *chart, const std::map< std::string, double > &chartValue, std::vector< double > &values) | 
Internal methods of Qt4 Chart Renderer.  | |
Methods that manipulate Qt4 concepts like QPainter, QImage, QBrush, QPen, QPainterPath, etc.  | |
| void | setup (QImage *img) | 
| Setups the internal QPainter and associates it with the given paint device (QImage).  More... | |
| void | end () | 
| Finalizes the internal QPainter resources.  More... | |
Private Attributes | |
| QBrush | m_brush | 
| The pen used to draw the chart.  More... | |
| QPainter | m_painter | 
| The painter used to draw the chart.  More... | |
| QPen | m_pen | 
| The pen used to draw the chart.  More... | |
A concrete chart renderer based on Qt4.
Definition at line 53 of file ChartRenderer.h.
| te::qt::widgets::ChartRenderer::ChartRenderer | ( | ) | 
Default constructor.
Definition at line 39 of file ChartRenderer.cpp.
References m_brush, m_pen, and te::map::SolidLine.
| te::qt::widgets::ChartRenderer::~ChartRenderer | ( | ) | 
Destructor.
Definition at line 46 of file ChartRenderer.cpp.
      
  | 
  protected | 
Definition at line 374 of file ChartRenderer.cpp.
      
  | 
  protected | 
Definition at line 210 of file ChartRenderer.cpp.
References te::qt::widgets::Convert2Qt(), te::map::Chart::getBarWidth(), te::map::Chart::getColor(), te::map::Chart::getContourColor(), te::map::Chart::getContourWidth(), te::map::Chart::getHeight(), te::map::Chart::getMaxValue(), and te::map::Chart::getWidth().
      
  | 
  protected | 
Definition at line 272 of file ChartRenderer.cpp.
References te::qt::widgets::Convert2Qt(), te::map::Chart::getBarWidth(), te::map::Chart::getColor(), te::map::Chart::getContourColor(), te::map::Chart::getContourWidth(), te::map::Chart::getHeight(), te::map::Chart::getMaxValue(), and te::map::Chart::getWidth().
      
  | 
  protected | 
Definition at line 112 of file ChartRenderer.cpp.
References te::qt::widgets::Convert2Qt(), te::map::Chart::getColor(), te::map::Chart::getContourColor(), te::map::Chart::getContourWidth(), te::map::Chart::getHeight(), and te::map::Chart::getWidth().
      
  | 
  protected | 
Definition at line 161 of file ChartRenderer.cpp.
References te::qt::widgets::Convert2Qt(), te::map::Chart::getColor(), te::map::Chart::getContourColor(), te::map::Chart::getContourWidth(), te::map::Chart::getHeight(), and te::map::Chart::getWidth().
      
  | 
  protected | 
Finalizes the internal QPainter resources.
Definition at line 107 of file ChartRenderer.cpp.
      
  | 
  protected | 
Definition at line 384 of file ChartRenderer.cpp.
      
  | 
  protected | 
Definition at line 334 of file ChartRenderer.cpp.
References te::map::Chart::getProperties(), te::map::Chart::getPropertiesPos(), te::da::GetPropertyPos(), te::da::GetValueAsDouble(), and te::da::DataSet::isNull().
      
  | 
  protected | 
Definition at line 357 of file ChartRenderer.cpp.
References te::map::Chart::getProperties().
      
  | 
  virtual | 
It generates the image pattern from the given chart and the current element of 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. | 
Implements te::map::AbstractChartRenderer.
Definition at line 50 of file ChartRenderer.cpp.
References te::map::Bar, te::qt::widgets::GetImage(), te::map::Chart::getType(), and te::map::Pie.
      
  | 
  virtual | 
Implements te::map::AbstractChartRenderer.
Definition at line 76 of file ChartRenderer.cpp.
References te::map::Bar, te::qt::widgets::GetImage(), te::map::Chart::getType(), and te::map::Pie.
      
  | 
  protected | 
Setups the internal QPainter and associates it with the given paint device (QImage).
Definition at line 101 of file ChartRenderer.cpp.
      
  | 
  private | 
The pen used to draw the chart.
Definition at line 101 of file ChartRenderer.h.
Referenced by ChartRenderer().
      
  | 
  private | 
The painter used to draw the chart.
Definition at line 99 of file ChartRenderer.h.
      
  | 
  private | 
The pen used to draw the chart.
Definition at line 100 of file ChartRenderer.h.
Referenced by ChartRenderer().