QwtPlotGrid(3)
β¨ QwtPlotGrid π
okay bestie, welcome to the QwtPlotGrid(3) page from the Qwt User's Guide β this is the class that draws your coordinate grid, and honestly? she's iconic. no cap.
πΈ NAME πΈ
QwtPlotGrid β the class that draws a coordinate grid. that's the whole vibe. π
π¦ SYNOPSIS π¦
#include <qwt_plot_grid.h>
Inherits QwtPlotItem.
π Public Member Functions π
QwtPlotGrid ()virtual ~QwtPlotGrid ()virtual void draw (QPainter *p, const QwtScaleMap &xMap, const QwtScaleMap &yMap, const QRect &rect) constvoid enableX (bool tf)void enableXMin (bool tf)void enableY (bool tf)void enableYMin (bool tf)const QPen & majPen () constconst QPen & minPen () constvirtual int rtti () constvoid setMajPen (const QPen &p)void setMinPen (const QPen &p)void setPen (const QPen &p)void setXDiv (const QwtScaleDiv &sx)void setYDiv (const QwtScaleDiv &sy)virtual void updateScaleDiv (const QwtScaleDiv &xMap, const QwtScaleDiv &yMap)bool xEnabled () constbool xMinEnabled () constconst QwtScaleDiv & xScaleDiv () constbool yEnabled () constbool yMinEnabled () constconst QwtScaleDiv & yScaleDiv () const
π Additional Inherited Members π
(yes bestie, she comes with extras from QwtPlotItem β inherited members are right there waiting for you.)
π Detailed Description π
A class which draws a coordinate grid. literally her whole personality. β¨
The QwtPlotGrid 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 setXDiv() and setYDiv(). The draw() member draws the grid within a bounding rectangle.
π Member Function Documentation π
π void QwtPlotGrid::draw (QPainter *painter, const QwtScaleMap &xMap, const QwtScaleMap &yMap, const QRect &canvasRect) const [virtual]
Draw the grid. she gets 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.
Parameters:
painterβ PainterxMapβ X axis mapyMapβ Y axiscanvasRectβ Contents rect of the plot canvas
Implements QwtPlotItem.
π void QwtPlotGrid::enableX (bool tf)
Enable or disable vertical gridlines.
Parameters:
tfβ Enable (true) or disable
See also:
Minor gridlines can be enabled or disabled with enableXMin()
π void QwtPlotGrid::enableXMin (bool tf)
Enable or disable minor vertical gridlines.
Parameters:
tfβ Enable (true) or disable
See also:
enableX()
π void QwtPlotGrid::enableY (bool tf)
Enable or disable horizontal gridlines.
Parameters:
tfβ Enable (true) or disable
See also:
Minor gridlines can be enabled or disabled with enableYMin()
π void QwtPlotGrid::enableYMin (bool tf)
Enable or disable minor horizontal gridlines.
Parameters:
tfβ Enable (true) or disable
See also:
enableY()
π const QPen & QwtPlotGrid::majPen () const
Returns:
the pen for the major gridlines
See also:
setMajPen(), setMinPen(), setPen()
π const QPen & QwtPlotGrid::minPen () const
Returns:
the pen for the minor gridlines
See also:
setMinPen(), setMajPen(), setPen()
π int QwtPlotGrid::rtti () const [virtual]
Returns:
QwtPlotItem::Rtti_PlotGrid
Reimplemented from QwtPlotItem.
π void QwtPlotGrid::setMajPen (const QPen &pen)
Assign a pen for the major gridlines π
The width of non cosmetic pens is scaled according to the resolution of the paint device.
Parameters:
penβ Pen
See also:
majPen(), setMinPen(), setPen(), QwtPainter::scaledPen()
π void QwtPlotGrid::setMinPen (const QPen &pen)
Assign a pen for the minor gridlines π
The width of non cosmetic pens is scaled according to the resolution of the paint device.
Parameters:
penβ Pen
See also:
minPen(), setMajPen(), setPen(), QwtPainter::scaledPen()
π void QwtPlotGrid::setPen (const QPen &pen)
Assign a pen for both major and minor gridlines π (one pen to serve them all, periodt)
The width of non cosmetic pens is scaled according to the resolution of the paint device.
Parameters:
penβ Pen
See also:
setMajPen(), setMinPen(), QwtPainter::scaledPen()
π void QwtPlotGrid::setXDiv (const QwtScaleDiv &scaleDiv)
Assign an x axis scale division
Parameters:
scaleDivβ Scale division
π void QwtPlotGrid::setYDiv (const QwtScaleDiv &scaleDiv)
Assign a y axis division
Parameters:
scaleDivβ Scale division
π void QwtPlotGrid::updateScaleDiv (const QwtScaleDiv &xScaleDiv, const QwtScaleDiv &yScaleDiv) [virtual]
Update the grid to changes of the axes scale division
Parameters:
xScaleDivβ Scale division of the x-axisyScaleDivβ Scale division of the y-axis
See also:
QwtPlot::updateAxes()
Reimplemented from QwtPlotItem.
π bool QwtPlotGrid::xEnabled () const
Returns:
true if vertical gridlines are enabled
See also:
enableX()
π bool QwtPlotGrid::xMinEnabled () const
Returns:
true if minor vertical gridlines are enabled
See also:
enableXMin()
π const QwtScaleDiv & QwtPlotGrid::xScaleDiv () const
Returns:
the scale division of the x axis
π bool QwtPlotGrid::yEnabled () const
Returns:
true if horizontal gridlines are enabled
See also:
enableY()
π bool QwtPlotGrid::yMinEnabled () const
Returns:
true if minor horizontal gridlines are enabled
See also:
enableYMin()
π const QwtScaleDiv & QwtPlotGrid::yScaleDiv () const
Returns:
the scale division of the y axis
π Author π
Generated automatically by Doxygen for Qwt User's Guide from the source code. (not a human, just doxygen doing its lil thing π«Ά)
okay that's the whole page bestie, you ate that π stay grid-obsessed, and remember: this was Version 5.2.3, dated Tue Nov 20 2012 β a true vintage icon πβ¨ no cap, periodt. ππ¦π
π¦ where this page comes from
- epel 9: qwt5-qt5-devel 5.2.3a-12.20210522gita2b11e3.el9 Β· LGPLv2+ with exceptions
- fedora 43: qwt5-qt5-devel 5.2.3a-22.20210522gita2b11e3.fc43 Β· LGPL-2.1-or-later WITH Qwt-exception-1.0
- fedora 43: qwt5-qt5-devel 5.2.3a-22.20210522gita2b11e3.fc43 Β· LGPL-2.1-or-later WITH Qwt-exception-1.0
- fedora 44: qwt5-qt5-devel 5.2.3a-23.20210522gita2b11e3.fc44 Β· LGPL-2.1-or-later WITH Qwt-exception-1.0
- fedora 44: qwt5-qt5-devel 5.2.3a-23.20210522gita2b11e3.fc44 Β· LGPL-2.1-or-later WITH Qwt-exception-1.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms