27#ifndef QWT_PLOT_GRID_H
28#define QWT_PLOT_GRID_H
30#include "qwt_global.h"
31#include "qwt_plot_item.h"
56 virtual int rtti()
const QWT_OVERRIDE;
59 bool xEnabled()
const;
62 bool yEnabled()
const;
64 void enableXMin(
bool );
65 bool xMinEnabled()
const;
67 void enableYMin(
bool );
68 bool yMinEnabled()
const;
76 void setPen(
const QColor&,
77 qreal width = 0.0, Qt::PenStyle = Qt::SolidLine );
79 void setPen(
const QPen& );
81 void setMajorPen(
const QColor&,
82 qreal width = 0.0, Qt::PenStyle = Qt::SolidLine );
84 void setMajorPen(
const QPen& );
85 const QPen& majorPen()
const;
87 void setMinorPen(
const QColor&, qreal width = 0.0, Qt::PenStyle = Qt::SolidLine );
88 void setMinorPen(
const QPen& );
89 const QPen& minorPen()
const;
91 virtual void draw( QPainter*,
93 const QRectF& canvasRect )
const QWT_OVERRIDE;
99 void drawLines( QPainter*,
const QRectF&,
A class which draws a coordinate grid.
Definition qwt_plot_grid.h:51
Base class for items on the plot canvas.
Definition qwt_plot_item.h:85
virtual void draw(QPainter *painter, const QwtScaleMap &xMap, const QwtScaleMap &yMap, const QRectF &canvasRect) const =0
Draw the item.
virtual int rtti() const
Return rtti for the specific class represented.
Definition qwt_plot_item.cpp:153
virtual void updateScaleDiv(const QwtScaleDiv &, const QwtScaleDiv &)
Update the item to changes of the axes scale division.
Definition qwt_plot_item.cpp:682
A class representing a scale division/表示刻度划分的类
Definition qwt_scale_div.h:53
A scale map.
Definition qwt_scale_map.h:44