📄 qwtgrid.3
字号:
.TH "QwtGrid" 3 "16 Nov 2004" "Version 4.2.0" "Qwt User's Guide" \" -*- nroff -*-.ad l.nh.SH NAMEQwtGrid \- .SH SYNOPSIS.br.PPInherited by \fBQwtPlotGrid\fP..PP.SH "Detailed Description".PP A class which draws a coordinate grid. The QwtGrid class can be used to draw a coordinate grid. A coordinate grid consists of major and minor vertical and horizontal gridlines. The locations of the gridlines are determined by the X and Y scale divisions which can be assigned with \fBQwtGrid::setXDiv\fP and \fBQwtGrid::setYDiv()\fP The \fBdraw()\fP member draws the grid within a bounding rectangle. .PPDefinition at line 32 of file qwt_grid.h..SS "Public Member Functions".in +1c.ti -1c.RI "\fBQwtGrid\fP ()".br.ti -1c.RI "virtual \fB~QwtGrid\fP ()".br.ti -1c.RI "virtual void \fBdraw\fP (QPainter *p, const QRect &r, const \fBQwtDiMap\fP &mx, const \fBQwtDiMap\fP &my) const".br.ti -1c.RI "void \fBenableX\fP (bool tf)".br.ti -1c.RI "bool \fBxEnabled\fP () const".br.ti -1c.RI "void \fBenableY\fP (bool tf)".br.ti -1c.RI "bool \fByEnabled\fP () const".br.ti -1c.RI "void \fBenableXMin\fP (bool tf)".br.ti -1c.RI "bool \fBxMinEnabled\fP () const".br.ti -1c.RI "void \fBenableYMin\fP (bool tf)".br.ti -1c.RI "bool \fByMinEnabled\fP () const".br.ti -1c.RI "void \fBsetXDiv\fP (const \fBQwtScaleDiv\fP &sx)".br.ti -1c.RI "const \fBQwtScaleDiv\fP & \fBxScaleDiv\fP () const".br.ti -1c.RI "void \fBsetYDiv\fP (const \fBQwtScaleDiv\fP &sy)".br.ti -1c.RI "const \fBQwtScaleDiv\fP & \fByScaleDiv\fP () const".br.ti -1c.RI "void \fBsetPen\fP (const QPen &p)".br.ti -1c.RI "void \fBsetMajPen\fP (const QPen &p)".br.ti -1c.RI "const QPen & \fBmajPen\fP () const".br.ti -1c.RI "void \fBsetMinPen\fP (const QPen &p)".br.ti -1c.RI "const QPen & \fBminPen\fP () const".br.in -1c.SS "Protected Member Functions".in +1c.ti -1c.RI "virtual void \fBgridChanged\fP ()".br.in -1c.SH "Constructor & Destructor Documentation".PP .SS "QwtGrid::QwtGrid ()".PPEnables major grid, disables minor grid. .PPDefinition at line 15 of file qwt_grid.cpp..SS "QwtGrid::~\fBQwtGrid\fP ()\fC [virtual]\fP".PPdtor .PPDefinition at line 24 of file qwt_grid.cpp..SH "Member Function Documentation".PP .SS "void QwtGrid::draw (QPainter * p, const QRect & r, const \fBQwtDiMap\fP & mx, const \fBQwtDiMap\fP & my) const\fC [virtual]\fP".PPDraw the grid. .PPThe grid is drawn into the bounding rectangle such that gridlines begin and end at the rectangle's borders. The X and Y maps are used to map the scale divisions into the drawing region screen. .PP\fBParameters:\fP.RS 4\fIp\fP Painter .br\fIr\fP Bounding rectangle .br\fImx\fP X axis map .br\fImy\fP Y axis .RE.PPDefinition at line 170 of file qwt_grid.cpp..PPReferences QwtPainter::drawLine(), QwtScaleDiv::majCnt(), QwtScaleDiv::majMark(), QwtScaleDiv::minCnt(), QwtScaleDiv::minMark(), and QwtDiMap::transform()..PPReferenced by QwtPlot::drawCanvasItems()..SS "void QwtGrid::enableX (bool tf)".PPEnable or disable vertical gridlines. .PP\fBParameters:\fP.RS 4\fItf\fP Enable (TRUE) or disable.RE.PP\fBSee also:\fP.RS 4Minor gridlines can be enabled or disabled with \fBQwtGrid::enableXMin()\fP .RE.PPDefinition at line 35 of file qwt_grid.cpp..PPReferences gridChanged()..PPReferenced by QwtPlot::enableGridX()..SS "void QwtGrid::enableXMin (bool tf)".PPEnable or disable minor vertical gridlines. .PP\fBParameters:\fP.RS 4\fItf\fP Enable (TRUE) or disable .RE.PP\fBSee also:\fP.RS 4\fBQwtGrid::enableX()\fP .RE.PPDefinition at line 63 of file qwt_grid.cpp..PPReferences gridChanged()..PPReferenced by QwtPlot::enableGridXMin()..SS "void QwtGrid::enableY (bool tf)".PPEnable or disable horizontal gridlines. .PP\fBParameters:\fP.RS 4\fItf\fP Enable (TRUE) or disable .RE.PP\fBSee also:\fP.RS 4Minor gridlines can be enabled or disabled with \fBQwtGrid::enableYMin()\fP .RE.PPDefinition at line 49 of file qwt_grid.cpp..PPReferences gridChanged()..PPReferenced by QwtPlot::enableGridY()..SS "void QwtGrid::enableYMin (bool tf)".PPEnable or disable minor horizontal gridlines. .PP\fBParameters:\fP.RS 4\fItf\fP Enable (TRUE) or disable .RE.PP\fBSee also:\fP.RS 4\fBQwtGrid::enableY()\fP .RE.PPDefinition at line 77 of file qwt_grid.cpp..PPReferences gridChanged()..PPReferenced by QwtPlot::enableGridYMin()..SS "void QwtGrid::gridChanged ()\fC [protected, virtual]\fP".PPNotify a change of attributes. .PPThis virtual function is called when an attribute of the grid has changed. It can be redefined by derived classes. The default implementation does nothing. .PPReimplemented in \fBQwtPlotGrid\fP..PPDefinition at line 304 of file qwt_grid.cpp..PPReferenced by enableX(), enableXMin(), enableY(), enableYMin(), setMajPen(), setMinPen(), setPen(), setXDiv(), and setYDiv()..SS "const QPen & QwtGrid::majPen () const".PP\fBReturns:\fP.RS 4the pen for the major gridlines .RE.PP\fBSee also:\fP.RS 4\fBQwtGrid::setMinPen\fP, \fBQwtGrid::setPen\fP .RE.PPDefinition at line 234 of file qwt_grid.cpp..PPReferenced by QwtPlotPrintFilter::apply(), QwtPlot::gridMajPen(), and QwtPlotPrintFilter::reset()..SS "const QPen & QwtGrid::minPen () const".PP\fBReturns:\fP.RS 4the pen for the minor gridlines .RE.PP\fBSee also:\fP.RS 4\fBQwtGrid::setMinPen\fP, \fBQwtGrid::setPen\fP .RE.PPDefinition at line 243 of file qwt_grid.cpp..PPReferenced by QwtPlotPrintFilter::apply(), QwtPlot::gridMinPen(), and QwtPlotPrintFilter::reset()..SS "void QwtGrid::setMajPen (const QPen & p)".PPAssign a pen for the major gridlines. .PP\fBParameters:\fP.RS 4\fIp\fP Pen .RE.PPDefinition at line 136 of file qwt_grid.cpp..PPReferences gridChanged()..PPReferenced by QwtPlotPrintFilter::apply(), QwtPlotPrintFilter::reset(), and QwtPlot::setGridMajPen()..SS "void QwtGrid::setMinPen (const QPen & p)".PPAssign a pen for the minor gridlines. .PP\fBParameters:\fP.RS 4\fIp\fP Pen .RE.PPDefinition at line 149 of file qwt_grid.cpp..PPReferences gridChanged()..PPReferenced by QwtPlotPrintFilter::apply(), QwtPlotPrintFilter::reset(), and QwtPlot::setGridMinPen()..SS "void QwtGrid::setPen (const QPen & p)".PPAssign a pen for both major and minor gridlines. .PP\fBParameters:\fP.RS 4\fIp\fP Pen .RE.PPDefinition at line 122 of file qwt_grid.cpp..PPReferences gridChanged()..PPReferenced by QwtPlot::setGridPen()..SS "void QwtGrid::setXDiv (const \fBQwtScaleDiv\fP & sx)".PPAssign an x axis scale division. .PP\fBParameters:\fP.RS 4\fIsx\fP Scale division .RE.PP\fBWarning:\fP.RS 4QwtGrid uses implicit sharing (see Qt Manual) for the scale divisions. .RE.PP\fBSee also:\fP.RS 4\fBQwtScaleDiv\fP .RE.PPDefinition at line 93 of file qwt_grid.cpp..PPReferences gridChanged()..PPReferenced by QwtPlot::setGridXAxis(), and QwtPlot::updateAxes()..SS "void QwtGrid::setYDiv (const \fBQwtScaleDiv\fP & sy)".PPAssign a y axis division. .PP\fBParameters:\fP.RS 4\fIsy\fP Scale division .RE.PP\fBWarning:\fP.RS 4QwtGrid uses implicit sharing (see Qt Manual) for the scale divisions. .RE.PP\fBSee also:\fP.RS 4\fBQwtScaleDiv\fP .RE.PPDefinition at line 109 of file qwt_grid.cpp..PPReferences gridChanged()..PPReferenced by QwtPlot::setGridYAxis(), and QwtPlot::updateAxes()..SS "bool QwtGrid::xEnabled () const".PP\fBReturns:\fP.RS 4TRUE if vertical gridlines are enabled .RE.PP\fBSee also:\fP.RS 4\fBQwtGrid::enableX\fP .RE.PPDefinition at line 252 of file qwt_grid.cpp..PPReferenced by QwtPlot::gridXEnabled()..SS "bool QwtGrid::xMinEnabled () const".PP\fBReturns:\fP.RS 4TRUE if minor vertical gridlines are enabled .RE.PP\fBSee also:\fP.RS 4\fBQwtGrid::enableXMin\fP .RE.PPDefinition at line 261 of file qwt_grid.cpp..PPReferenced by QwtPlot::gridXMinEnabled()..SS "const \fBQwtScaleDiv\fP & QwtGrid::xScaleDiv () const".PP\fBReturns:\fP.RS 4the scale division of the x axis .RE.PPDefinition at line 286 of file qwt_grid.cpp..SS "bool QwtGrid::yEnabled () const".PP\fBReturns:\fP.RS 4TRUE if horizontal gridlines are enabled .RE.PP\fBSee also:\fP.RS 4\fBQwtGrid::enableY\fP .RE.PPDefinition at line 270 of file qwt_grid.cpp..PPReferenced by QwtPlot::gridYEnabled()..SS "bool QwtGrid::yMinEnabled () const".PP\fBReturns:\fP.RS 4TRUE if minor horizontal gridlines are enabled .RE.PP\fBSee also:\fP.RS 4\fBQwtGrid::enableYMin\fP .RE.PPDefinition at line 279 of file qwt_grid.cpp..PPReferenced by QwtPlot::gridYMinEnabled()..SS "const \fBQwtScaleDiv\fP & QwtGrid::yScaleDiv () const".PP\fBReturns:\fP.RS 4the scale division of the y axis .RE.PPDefinition at line 292 of file qwt_grid.cpp..SH "Author".PP Generated automatically by Doxygen for Qwt User's Guide from the source code.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -