QwtPlotGrid(3)

πŸ“¦ version 5.2.3a, in epel 9, fedora 43, fedora 44

✨ 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) const
  • void enableX (bool tf)
  • void enableXMin (bool tf)
  • void enableY (bool tf)
  • void enableYMin (bool tf)
  • const QPen & majPen () const
  • const QPen & minPen () const
  • virtual int rtti () const
  • void 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 () const
  • bool xMinEnabled () const
  • const QwtScaleDiv & xScaleDiv () const
  • bool yEnabled () const
  • bool yMinEnabled () const
  • const 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 β€” Painter
  • xMap β€” X axis map
  • yMap β€” Y axis
  • canvasRect β€” 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-axis
  • yScaleDiv β€” 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