📄 qwtgrid.3
字号:
.TH "QwtGrid" 3 "4 Nov 2003" "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. .PP.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. .SS "QwtGrid::~\fBQwtGrid\fP ()\fC [virtual]\fP".PPdtor .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. The 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.PP.SS "void QwtGrid::enableX (bool tf)".PPEnable or disable vertical gridlines. \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.PP.SS "void QwtGrid::enableXMin (bool tf)".PPEnable or disable minor vertical gridlines. \fBParameters:\fP.RS 4\fItf\fP Enable (TRUE) or disable .RE.PP\fBSee also:\fP.RS 4\fBQwtGrid::enableX()\fP .RE.PP.SS "void QwtGrid::enableY (bool tf)".PPEnable or disable horizontal gridlines. \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.PP.SS "void QwtGrid::enableYMin (bool tf)".PPEnable or disable minor horizontal gridlines. \fBParameters:\fP.RS 4\fItf\fP Enable (TRUE) or disable .RE.PP\fBSee also:\fP.RS 4\fBQwtGrid::enableY()\fP .RE.PP.SS "void QwtGrid::gridChanged ()\fC [protected, virtual]\fP".PPNotify a change of attributes. This virtual function is called when an attribute of the grid has changed. It can be redefined by derived classes. The default implementation does nothing. Reimplemented in \fBQwtPlotGrid\fP..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.PP.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.PP.SS "void QwtGrid::setMajPen (const QPen & p)".PPAssign a pen for the major gridlines. \fBParameters:\fP.RS 4\fIp\fP Pen .RE.PP.SS "void QwtGrid::setMinPen (const QPen & p)".PPAssign a pen for the minor gridlines. \fBParameters:\fP.RS 4\fIp\fP Pen .RE.PP.SS "void QwtGrid::setPen (const QPen & p)".PPAssign a pen for both major and minor gridlines. \fBParameters:\fP.RS 4\fIp\fP Pen .RE.PP.SS "void QwtGrid::setXDiv (const \fBQwtScaleDiv\fP & sx)".PPAssign an x axis scale division. \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.PP.SS "void QwtGrid::setYDiv (const \fBQwtScaleDiv\fP & sy)".PPAssign a y axis division. \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.PP.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.PP.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.PP.SS "const \fBQwtScaleDiv\fP & QwtGrid::xScaleDiv () const".PP\fBReturns:\fP.RS 4the scale division of the x axis .RE.PP.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.PP.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.PP.SS "const \fBQwtScaleDiv\fP & QwtGrid::yScaleDiv () const".PP\fBReturns:\fP.RS 4the scale division of the y axis .RE.PP.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 + -