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;
43 bool xEnabled()
const;
46 bool yEnabled()
const;
48 void enableXMin(
bool );
49 bool xMinEnabled()
const;
51 void enableYMin(
bool );
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 & );
69 const QPen& minorPen()
const;
71 virtual void draw( QPainter *,
73 const QRectF &canvasRect )
const;
79 void drawLines( QPainter *,
const QRectF &,
81 const QList<double> & )
const;
A class which draws a coordinate grid.
Definition: qwt_plot_grid.h:34
Base class for items on the plot canvas.
Definition: qwt_plot_item.h:64
virtual int rtti() const
Definition: qwt_plot_item.cpp:120
A scale map.
Definition: qwt_scale_map.h:30
virtual void updateScaleDiv(const QwtScaleDiv &, const QwtScaleDiv &)
Update the item to changes of the axes scale division.
Definition: qwt_plot_item.cpp:636
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.
Definition: qwt_scale_div.h:36