.TH "QwtPlotGrid" 3 "Tue Nov 20 2012" "Version 5.2.3" "Qwt User's Guide" \" -*- nroff -*- .ad l .nh .SH NAME QwtPlotGrid \- .SH SYNOPSIS .br .PP .PP \fC#include \fP .PP Inherits \fBQwtPlotItem\fP\&. .SS "Public Member Functions" .in +1c .ti -1c .RI "\fBQwtPlotGrid\fP ()" .br .ti -1c .RI "virtual \fB~QwtPlotGrid\fP ()" .br .ti -1c .RI "virtual void \fBdraw\fP (QPainter *p, const \fBQwtScaleMap\fP &xMap, const \fBQwtScaleMap\fP &yMap, const QRect &rect) const " .br .ti -1c .RI "void \fBenableX\fP (bool tf)" .br .ti -1c .RI "void \fBenableXMin\fP (bool tf)" .br .ti -1c .RI "void \fBenableY\fP (bool tf)" .br .ti -1c .RI "void \fBenableYMin\fP (bool tf)" .br .ti -1c .RI "const QPen & \fBmajPen\fP () const " .br .ti -1c .RI "const QPen & \fBminPen\fP () const " .br .ti -1c .RI "virtual int \fBrtti\fP () const " .br .ti -1c .RI "void \fBsetMajPen\fP (const QPen &p)" .br .ti -1c .RI "void \fBsetMinPen\fP (const QPen &p)" .br .ti -1c .RI "void \fBsetPen\fP (const QPen &p)" .br .ti -1c .RI "void \fBsetXDiv\fP (const \fBQwtScaleDiv\fP &sx)" .br .ti -1c .RI "void \fBsetYDiv\fP (const \fBQwtScaleDiv\fP &sy)" .br .ti -1c .RI "virtual void \fBupdateScaleDiv\fP (const \fBQwtScaleDiv\fP &xMap, const \fBQwtScaleDiv\fP &yMap)" .br .ti -1c .RI "bool \fBxEnabled\fP () const " .br .ti -1c .RI "bool \fBxMinEnabled\fP () const " .br .ti -1c .RI "const \fBQwtScaleDiv\fP & \fBxScaleDiv\fP () const " .br .ti -1c .RI "bool \fByEnabled\fP () const " .br .ti -1c .RI "bool \fByMinEnabled\fP () const " .br .ti -1c .RI "const \fBQwtScaleDiv\fP & \fByScaleDiv\fP () const " .br .in -1c .SS "Additional Inherited Members" .SH "Detailed Description" .PP A class which draws a coordinate grid\&. The \fBQwtPlotGrid\fP 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 \fBsetXDiv()\fP and \fBsetYDiv()\fP\&. The \fBdraw()\fP member draws the grid within a bounding rectangle\&. .SH "Member Function Documentation" .PP .SS "void QwtPlotGrid::draw (QPainter *painter, const \fBQwtScaleMap\fP &xMap, const \fBQwtScaleMap\fP &yMap, const QRect &canvasRect) const\fC [virtual]\fP" .PP Draw 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 \fIpainter\fP Painter .br \fIxMap\fP X axis map .br \fIyMap\fP Y axis .br \fIcanvasRect\fP Contents rect of the plot canvas .RE .PP .PP Implements \fBQwtPlotItem\fP\&. .SS "void QwtPlotGrid::enableX (booltf)" .PP Enable or disable vertical gridlines\&. \fBParameters:\fP .RS 4 \fItf\fP Enable (true) or disable .RE .PP \fBSee also:\fP .RS 4 Minor gridlines can be enabled or disabled with \fBenableXMin()\fP .RE .PP .SS "void QwtPlotGrid::enableXMin (booltf)" .PP Enable or disable minor vertical gridlines\&. \fBParameters:\fP .RS 4 \fItf\fP Enable (true) or disable .RE .PP \fBSee also:\fP .RS 4 \fBenableX()\fP .RE .PP .SS "void QwtPlotGrid::enableY (booltf)" .PP Enable or disable horizontal gridlines\&. \fBParameters:\fP .RS 4 \fItf\fP Enable (true) or disable .RE .PP \fBSee also:\fP .RS 4 Minor gridlines can be enabled or disabled with \fBenableYMin()\fP .RE .PP .SS "void QwtPlotGrid::enableYMin (booltf)" .PP Enable or disable minor horizontal gridlines\&. \fBParameters:\fP .RS 4 \fItf\fP Enable (true) or disable .RE .PP \fBSee also:\fP .RS 4 \fBenableY()\fP .RE .PP .SS "const QPen & QwtPlotGrid::majPen () const" \fBReturns:\fP .RS 4 the pen for the major gridlines .RE .PP \fBSee also:\fP .RS 4 \fBsetMajPen()\fP, \fBsetMinPen()\fP, \fBsetPen()\fP .RE .PP .SS "const QPen & QwtPlotGrid::minPen () const" \fBReturns:\fP .RS 4 the pen for the minor gridlines .RE .PP \fBSee also:\fP .RS 4 \fBsetMinPen()\fP, \fBsetMajPen()\fP, \fBsetPen()\fP .RE .PP .SS "int QwtPlotGrid::rtti () const\fC [virtual]\fP" \fBReturns:\fP .RS 4 QwtPlotItem::Rtti_PlotGrid .RE .PP .PP Reimplemented from \fBQwtPlotItem\fP\&. .SS "void QwtPlotGrid::setMajPen (const QPen &pen)" Assign a pen for the major gridlines .PP The width of non cosmetic pens is scaled according to the resolution of the paint device\&. .PP \fBParameters:\fP .RS 4 \fIpen\fP Pen .RE .PP \fBSee also:\fP .RS 4 \fBmajPen()\fP, \fBsetMinPen()\fP, \fBsetPen()\fP, \fBQwtPainter::scaledPen()\fP .RE .PP .SS "void QwtPlotGrid::setMinPen (const QPen &pen)" Assign a pen for the minor gridlines .PP The width of non cosmetic pens is scaled according to the resolution of the paint device\&. .PP \fBParameters:\fP .RS 4 \fIpen\fP Pen .RE .PP \fBSee also:\fP .RS 4 \fBminPen()\fP, \fBsetMajPen()\fP, \fBsetPen()\fP, \fBQwtPainter::scaledPen()\fP .RE .PP .SS "void QwtPlotGrid::setPen (const QPen &pen)" Assign a pen for both major and minor gridlines .PP The width of non cosmetic pens is scaled according to the resolution of the paint device\&. .PP \fBParameters:\fP .RS 4 \fIpen\fP Pen .RE .PP \fBSee also:\fP .RS 4 \fBsetMajPen()\fP, \fBsetMinPen()\fP, \fBQwtPainter::scaledPen()\fP .RE .PP .SS "void QwtPlotGrid::setXDiv (const \fBQwtScaleDiv\fP &scaleDiv)" Assign an x axis scale division .PP \fBParameters:\fP .RS 4 \fIscaleDiv\fP Scale division .RE .PP .SS "void QwtPlotGrid::setYDiv (const \fBQwtScaleDiv\fP &scaleDiv)" Assign a y axis division .PP \fBParameters:\fP .RS 4 \fIscaleDiv\fP Scale division .RE .PP .SS "void QwtPlotGrid::updateScaleDiv (const \fBQwtScaleDiv\fP &xScaleDiv, const \fBQwtScaleDiv\fP &yScaleDiv)\fC [virtual]\fP" Update the grid to changes of the axes scale division .PP \fBParameters:\fP .RS 4 \fIxScaleDiv\fP Scale division of the x-axis .br \fIyScaleDiv\fP Scale division of the y-axis .RE .PP \fBSee also:\fP .RS 4 \fBQwtPlot::updateAxes()\fP .RE .PP .PP Reimplemented from \fBQwtPlotItem\fP\&. .SS "bool QwtPlotGrid::xEnabled () const" \fBReturns:\fP .RS 4 true if vertical gridlines are enabled .RE .PP \fBSee also:\fP .RS 4 \fBenableX()\fP .RE .PP .SS "bool QwtPlotGrid::xMinEnabled () const" \fBReturns:\fP .RS 4 true if minor vertical gridlines are enabled .RE .PP \fBSee also:\fP .RS 4 \fBenableXMin()\fP .RE .PP .SS "const \fBQwtScaleDiv\fP & QwtPlotGrid::xScaleDiv () const" \fBReturns:\fP .RS 4 the scale division of the x axis .RE .PP .SS "bool QwtPlotGrid::yEnabled () const" \fBReturns:\fP .RS 4 true if horizontal gridlines are enabled .RE .PP \fBSee also:\fP .RS 4 \fBenableY()\fP .RE .PP .SS "bool QwtPlotGrid::yMinEnabled () const" \fBReturns:\fP .RS 4 true if minor horizontal gridlines are enabled .RE .PP \fBSee also:\fP .RS 4 \fBenableYMin()\fP .RE .PP .SS "const \fBQwtScaleDiv\fP & QwtPlotGrid::yScaleDiv () const" \fBReturns:\fP .RS 4 the scale division of the y axis .RE .PP .SH "Author" .PP Generated automatically by Doxygen for Qwt User's Guide from the source code\&.