10 #ifndef QWT_PLOT_GRID_H    11 #define QWT_PLOT_GRID_H    13 #include "qwt_global.h"    14 #include "qwt_plot_item.h"    15 #include "qwt_scale_div.h"    40     virtual int rtti() 
const;
    42     void enableX( 
bool tf );
    43     bool xEnabled() 
const;
    45     void enableY( 
bool tf );
    46     bool yEnabled() 
const;
    48     void enableXMin( 
bool tf );
    49     bool xMinEnabled() 
const;
    51     void enableYMin( 
bool tf );
    52     bool yMinEnabled() 
const;
    60     void setPen( 
const QColor &, qreal width = 0.0, Qt::PenStyle = Qt::SolidLine );
    61     void setPen( 
const QPen & );
    63     void setMajorPen( 
const QColor &, qreal width = 0.0, Qt::PenStyle = Qt::SolidLine );
    64     void setMajorPen( 
const QPen & );
    65     const QPen& majorPen() 
const;
    67     void setMinorPen( 
const QColor &, qreal width = 0.0, Qt::PenStyle = Qt::SolidLine );
    68     void setMinorPen( 
const QPen &p );
    69     const QPen& minorPen() 
const;
    71     virtual void draw( QPainter *p,
    73         const QRectF &rect ) 
const;
    79     void drawLines( QPainter *painter, 
const QRectF &,
    81         const QList<double> & ) 
const;
 Base class for items on the plot canvas. 
Definition: qwt_plot_item.h:64
A scale map. 
Definition: qwt_scale_map.h:30
virtual void draw(QPainter *painter, const QwtScaleMap &xMap, const QwtScaleMap &yMap, const QRectF &canvasRect) const  =0
Draw the item. 
virtual int rtti() const 
Definition: qwt_plot_item.cpp:120
A class representing a scale division. 
Definition: qwt_scale_div.h:36
A class which draws a coordinate grid. 
Definition: qwt_plot_grid.h:34
virtual void updateScaleDiv(const QwtScaleDiv &, const QwtScaleDiv &)
Update the item to changes of the axes scale division. 
Definition: qwt_plot_item.cpp:636