A class to represent a chart display.  
 More...
#include <ChartDisplay.h>
 | 
| void  | onRectPicked (const QRectF &rect) | 
|   | Called when the user selects an area of the canvas. Will highlight the data, if possible, depending on the type of chart being displayed (f.e. histogram, scatter, etc).  
  | 
|   | 
A class to represent a chart display. 
Definition at line 65 of file ChartDisplay.h.
 
◆ ChartDisplay()
      
        
          | te::qt::widgets::ChartDisplay::ChartDisplay  | 
          ( | 
          QWidget *  | 
          parent = NULL,  | 
        
        
           | 
           | 
          QString  | 
          title = "",  | 
        
        
           | 
           | 
          ChartStyle *  | 
          style = 0  | 
        
        
           | 
          ) | 
           |  | 
        
      
 
Constructor. 
It constructs a ChartDisplay with the given title and style.
- Parameters
 - 
  
    | parent | this widget's parent  | 
    | title | this widget's title. | 
  
   
- Note
 - it will take the ownership of the pointer "style". If style is null, the display will be constructed with a default style. 
 
 
 
◆ ~ChartDisplay()
      
        
          | te::qt::widgets::ChartDisplay::~ChartDisplay  | 
          ( | 
           | ) | 
           | 
        
      
 
 
◆ adjustDisplay()
      
        
          | void te::qt::widgets::ChartDisplay::adjustDisplay  | 
          ( | 
           | ) | 
           | 
        
      
 
Updates the general display settings according to the ChartStyle. The adjusted properties are: Title; Axis titles (x and Y); Weather to display the grid or not; Background color;. 
 
 
◆ enableLeftPicker()
      
        
          | void te::qt::widgets::ChartDisplay::enableLeftPicker  | 
          ( | 
          bool  | 
          enabled | ) | 
           | 
        
      
 
Enables or disables the tool used to execute the selection functions. 
 
 
◆ enableMagnifier()
      
        
          | void te::qt::widgets::ChartDisplay::enableMagnifier  | 
          ( | 
          bool  | 
          enabled | ) | 
           | 
        
      
 
Enables or disables the tool used to execute zoom functions. 
 
 
◆ enableMultiSelection()
      
        
          | void te::qt::widgets::ChartDisplay::enableMultiSelection  | 
          ( | 
          bool  | 
          enabled | ) | 
           | 
        
      
 
Enables or disables the tool used to execute the multi selection functions. 
 
 
◆ enablePan()
      
        
          | void te::qt::widgets::ChartDisplay::enablePan  | 
          ( | 
          bool  | 
          enabled | ) | 
           | 
        
      
 
Enables or disables the tool used to execute pan functions. 
 
 
◆ enablePickers()
      
        
          | void te::qt::widgets::ChartDisplay::enablePickers  | 
          ( | 
          bool  | 
          enabled | ) | 
           | 
        
      
 
Enables or disables the tools used to execute selection functions. 
 
 
◆ enablePointPickers()
      
        
          | void te::qt::widgets::ChartDisplay::enablePointPickers  | 
          ( | 
          bool  | 
          enabled | ) | 
           | 
        
      
 
Enables or disables the pickers used tbroadcast point selection signals. 
 
 
◆ enableTools()
      
        
          | void te::qt::widgets::ChartDisplay::enableTools  | 
          ( | 
          bool  | 
          enabled | ) | 
           | 
        
      
 
Enables or disables all the tools used to execute certain mouse actions. Such as selection, pan and zoomn;. 
 
 
◆ getStyle()
Returns a pointer to the display's style. 
- Returns
 - A ChartStyle type pointer to the display's style. 
 
- Note
 - The caller will not take ownership of the returned pointer. 
 
 
 
◆ highlightOIds()
Highlights the objects identified by oids. 
- Parameters
 - 
  
    | oids | The identifiers of plotitems to be highlighted.  | 
  
   
 
 
◆ leftPointSelected
  
  
      
        
          | void te::qt::widgets::ChartDisplay::leftPointSelected  | 
          ( | 
          const QPointF &  | 
          pos | ) | 
           | 
         
       
   | 
  
signal   | 
  
 
Emmit when a clicked with left button was made. 
 
 
◆ onRectPicked
  
  
      
        
          | void te::qt::widgets::ChartDisplay::onRectPicked  | 
          ( | 
          const QRectF &  | 
          rect | ) | 
           | 
         
       
   | 
  
protectedslot   | 
  
 
Called when the user selects an area of the canvas. Will highlight the data, if possible, depending on the type of chart being displayed (f.e. histogram, scatter, etc). 
 
 
◆ rigthPointSelected
  
  
      
        
          | void te::qt::widgets::ChartDisplay::rigthPointSelected  | 
          ( | 
          const QPointF &  | 
          pos | ) | 
           | 
         
       
   | 
  
signal   | 
  
 
Emmit when a clicked with rigth button was made. 
 
 
◆ selected
Emmit when objects were selected. 
 
 
◆ setSelectionColor()
      
        
          | void te::qt::widgets::ChartDisplay::setSelectionColor  | 
          ( | 
          QColor  | 
          selColor | ) | 
           | 
        
      
 
color used to hgihlight selected objects on this display. 
- Parameters
 - 
  
    | selColor | The color used to hgihlight selected objects on this display.  | 
  
   
 
 
◆ setStyle()
It sets the display's style. 
- Parameters
 - 
  
  
 
- Note
 - It will take ownership of the given pointer 
 
 
 
◆ m_chartStyle
  
  
      
        
          | ChartStyle* te::qt::widgets::ChartDisplay::m_chartStyle | 
         
       
   | 
  
private   | 
  
 
 
◆ m_ctrlPicker
  
  
      
        
          | QwtPlotPicker* te::qt::widgets::ChartDisplay::m_ctrlPicker | 
         
       
   | 
  
private   | 
  
 
 
◆ m_grid
  
  
      
        
          | QwtPlotGrid* te::qt::widgets::ChartDisplay::m_grid | 
         
       
   | 
  
private   | 
  
 
 
◆ m_leftPicker
  
  
      
        
          | QwtPlotPicker* te::qt::widgets::ChartDisplay::m_leftPicker | 
         
       
   | 
  
private   | 
  
 
 
◆ m_leftPointPicker
  
  
      
        
          | QwtPlotPicker* te::qt::widgets::ChartDisplay::m_leftPointPicker | 
         
       
   | 
  
private   | 
  
 
 
◆ m_magnifier
  
  
      
        
          | QwtPlotMagnifier* te::qt::widgets::ChartDisplay::m_magnifier | 
         
       
   | 
  
private   | 
  
 
 
◆ m_panner
  
  
      
        
          | QwtPlotPanner* te::qt::widgets::ChartDisplay::m_panner | 
         
       
   | 
  
private   | 
  
 
 
◆ m_rigthPointPicker
  
  
      
        
          | QwtPlotPicker* te::qt::widgets::ChartDisplay::m_rigthPointPicker | 
         
       
   | 
  
private   | 
  
 
 
◆ m_shiftPicker
  
  
      
        
          | QwtPlotPicker* te::qt::widgets::ChartDisplay::m_shiftPicker | 
         
       
   | 
  
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/ChartDisplay.h