10 #ifndef QWT_PLOT_GRID_H 11 #define QWT_PLOT_GRID_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;
virtual void draw(QPainter *painter, const QwtScaleMap &xMap, const QwtScaleMap &yMap, const QRectF &canvasRect) const =0
Draw the item.
A class representing a scale division.
A class which draws a coordinate grid.
virtual void updateScaleDiv(const QwtScaleDiv &, const QwtScaleDiv &)
Update the item to changes of the axes scale division.
Base class for items on the plot canvas.