10#ifndef QWT_PLOT_GRID_H
11#define QWT_PLOT_GRID_H
13#include "qwt_global.h"
14#include "qwt_plot_item.h"
39 virtual int rtti()
const QWT_OVERRIDE;
42 bool xEnabled()
const;
45 bool yEnabled()
const;
47 void enableXMin(
bool );
48 bool xMinEnabled()
const;
50 void enableYMin(
bool );
51 bool yMinEnabled()
const;
59 void setPen(
const QColor&,
60 qreal width = 0.0, Qt::PenStyle = Qt::SolidLine );
62 void setPen(
const QPen& );
64 void setMajorPen(
const QColor&,
65 qreal width = 0.0, Qt::PenStyle = Qt::SolidLine );
67 void setMajorPen(
const QPen& );
68 const QPen& majorPen()
const;
70 void setMinorPen(
const QColor&, qreal width = 0.0, Qt::PenStyle = Qt::SolidLine );
71 void setMinorPen(
const QPen& );
72 const QPen& minorPen()
const;
74 virtual void draw( QPainter*,
76 const QRectF& canvasRect )
const QWT_OVERRIDE;
82 void drawLines( QPainter*,
const QRectF&,
A class which draws a coordinate grid.
Base class for items on the plot canvas.
virtual void draw(QPainter *painter, const QwtScaleMap &xMap, const QwtScaleMap &yMap, const QRectF &canvasRect) const =0
Draw the item.
virtual void updateScaleDiv(const QwtScaleDiv &, const QwtScaleDiv &)
Update the item to changes of the axes scale division.
A class representing a scale division.