A concrete chart renderer based on Qt4.  
 More...
#include <ChartRenderer.h>
 | 
Methods that manipulate Qt4 concepts like QPainter, QImage, QBrush, QPen, QPainterPath, etc.  
 | 
| QPainter  | m_painter | 
|   | The painter used to draw the chart.  
  | 
|   | 
| QPen  | m_pen | 
|   | The pen used to draw the chart.  
  | 
|   | 
| QBrush  | m_brush | 
|   | The pen used to draw the chart.  
  | 
|   | 
| void  | setup (QImage *img) | 
|   | Setups the internal QPainter and associates it with the given paint device (QImage).  
  | 
|   | 
| void  | end () | 
|   | Finalizes the internal QPainter resources.  
  | 
|   | 
| 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) | 
|   | 
| 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) | 
|   | 
| 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) | 
|   | 
| double  | computeSum (const std::vector< double > &values) | 
|   | 
| double  | getMaxValue (const std::vector< double > &values) | 
|   | 
A concrete chart renderer based on Qt4. 
- See also
 - AbstractChartRenderer 
 
Definition at line 53 of file ChartRenderer.h.
 
◆ ChartRenderer()
      
        
          | te::qt::widgets::ChartRenderer::ChartRenderer  | 
          ( | 
           | ) | 
           | 
        
      
 
 
◆ ~ChartRenderer()
      
        
          | te::qt::widgets::ChartRenderer::~ChartRenderer  | 
          ( | 
           | ) | 
           | 
        
      
 
 
◆ computeSum()
  
  
      
        
          | double te::qt::widgets::ChartRenderer::computeSum  | 
          ( | 
          const std::vector< double > &  | 
          values | ) | 
           | 
         
       
   | 
  
protected   | 
  
 
 
◆ drawBars() [1/2]
  
  
      
        
          | QImage * te::qt::widgets::ChartRenderer::drawBars  | 
          ( | 
          const te::map::Chart *  | 
          chart,  | 
         
        
           | 
           | 
          const std::map< std::string, double > &  | 
          chartValue,  | 
         
        
           | 
           | 
          std::size_t &  | 
          width  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
protected   | 
  
 
 
◆ drawBars() [2/2]
◆ drawPies() [1/2]
  
  
      
        
          | QImage * te::qt::widgets::ChartRenderer::drawPies  | 
          ( | 
          const te::map::Chart *  | 
          chart,  | 
         
        
           | 
           | 
          const std::map< std::string, double > &  | 
          chartValue,  | 
         
        
           | 
           | 
          std::size_t &  | 
          width  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
protected   | 
  
 
 
◆ drawPies() [2/2]
◆ end()
  
  
      
        
          | void te::qt::widgets::ChartRenderer::end  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
protected   | 
  
 
Finalizes the internal QPainter resources. 
 
 
◆ getMaxValue()
  
  
      
        
          | double te::qt::widgets::ChartRenderer::getMaxValue  | 
          ( | 
          const std::vector< double > &  | 
          values | ) | 
           | 
         
       
   | 
  
protected   | 
  
 
 
◆ getValues() [1/2]
  
  
      
        
          | void te::qt::widgets::ChartRenderer::getValues  | 
          ( | 
          const te::map::Chart *  | 
          chart,  | 
         
        
           | 
           | 
          const std::map< std::string, double > &  | 
          chartValue,  | 
         
        
           | 
           | 
          std::vector< double > &  | 
          values  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
protected   | 
  
 
 
◆ getValues() [2/2]
◆ render() [1/2]
◆ render() [2/2]
It generates the image pattern from the given chart and the current element of 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. 
 
Implements te::map::AbstractChartRenderer.
 
 
◆ setup()
  
  
      
        
          | void te::qt::widgets::ChartRenderer::setup  | 
          ( | 
          QImage *  | 
          img | ) | 
           | 
         
       
   | 
  
protected   | 
  
 
Setups the internal QPainter and associates it with the given paint device (QImage). 
 
 
◆ m_brush
  
  
      
        
          | QBrush te::qt::widgets::ChartRenderer::m_brush | 
         
       
   | 
  
private   | 
  
 
 
◆ m_painter
  
  
      
        
          | QPainter te::qt::widgets::ChartRenderer::m_painter | 
         
       
   | 
  
private   | 
  
 
 
◆ m_pen
  
  
      
        
          | QPen te::qt::widgets::ChartRenderer::m_pen | 
         
       
   | 
  
private   | 
  
 
 
The documentation for this class was generated from the following file:
- /home/castejon/castejon_files/develop/terralib5/git_release/src/terralib/qt/widgets/charts/ChartRenderer.h