QwtPolarRenderer(3)

πŸ“¦
version 6.3.0 Β· 2 versions
, in alpine 3.24

πŸ’… QwtPolarRenderer(3) β€” the polar plot glow-up station ✨

okay so this page lives in the Library Functions Manual, and it's literally all about QwtPolarRenderer β€” the renderer that takes your polar plot and exports it to a document, a printer, or honestly anything else that QPainter/QPaintDevice can handle. bestie, it's giving "professional printer of pretty circles" and we're obsessed πŸŽ€


🌸 NAME 🌸

QwtPolarRenderer β€” Renderer for exporting a polar plot to a document, a printer or anything else, that is supported by QPainter/QPaintDevice. no cap, that's the whole vibe πŸ’–


✨ SYNOPSIS ✨

#include <qwt_polar_renderer.h>

Inherits QObject. yep, it's a QObject girlie, so it gets all that parent/child main-character energy πŸ‘‘

🫢 Public Member Functions

  • QwtPolarRenderer(QObject *parent=NULL) β€” constructor, with an optional parent to keep it company
  • virtual ~QwtPolarRenderer() β€” Destructor.
  • void renderDocument(QwtPolarPlot *, const QString &format, const QSizeF &sizeMM, int resolution=85) β€” render it out to a document, format specified
  • void renderDocument(QwtPolarPlot *, const QString &title, const QString &format, const QSizeF &sizeMM, int resolution=85) β€” same deal, but with a title argument too
  • void renderTo(QwtPolarPlot *, QPrinter &) const β€” Render the plot to a QPrinter.
  • void renderTo(QwtPolarPlot *, QPaintDevice &) const β€” Render the plot to a QPaintDevice.
  • virtual void render(QwtPolarPlot *, QPainter *, const QRectF &rect) const β€” Render the plot to a given rectangle ( f.e QPrinter, QSvgRenderer ).
  • bool exportTo(QwtPolarPlot *, const QString &documentName, const QSizeF &sizeMM=QSizeF(200, 200), int resolution=85) β€” Execute a file dialog and render the plot to the selected file.
  • virtual void renderTitle(QPainter *, const QRectF &) const β€” puts the title in its little rectangle
  • virtual void renderLegend(const QwtPolarPlot *, QPainter *, const QRectF &) const β€” puts the legend in its little rectangle

πŸ¦‹ Detailed Description πŸ¦‹

Renderer for exporting a polar plot to a document, a printer or anything else, that is supported by QPainter/QPaintDevice.

Definition at line 35 of file qwt_polar_renderer.h. πŸ“


πŸŽ€ Constructor & Destructor Documentation πŸŽ€

QwtPolarRenderer::QwtPolarRenderer(QObject * parent = NULL) [explicit]

Constructor. it's explicit, so no sneaky implicit conversions, we love boundaries πŸ’…

Parameters

  • parent β€” Parent object

Definition at line 90 of file qwt_polar_renderer.cpp. πŸ“

QwtPolarRenderer::~QwtPolarRenderer() [virtual]

Destructor. say bye bestie πŸ‘‹πŸ˜­

Definition at line 97 of file qwt_polar_renderer.cpp. πŸ“


πŸ”₯ Member Function Documentation πŸ”₯

bool QwtPolarRenderer::exportTo(QwtPolarPlot * plot, const QString & documentName, const QSizeF & sizeMM = QSizeF( 200, 200 ), int resolution = 85)

Execute a file dialog and render the plot to the selected file. The document will be rendered in 85 dpi for a size 30x30 cm. (yes, the defaults are in millimeters but the prose says 30x30 cm β€” that's the original's math, not mine, iykyk πŸ™ˆ)

Parameters

  • plot β€” Plot widget
  • documentName β€” Default document name
  • sizeMM β€” Size for the document in millimeters.
  • resolution β€” Resolution in dots per Inch (dpi)

See also: renderDocument()

Definition at line 430 of file qwt_polar_renderer.cpp. πŸ“

void QwtPolarRenderer::render(QwtPolarPlot * plot, QPainter * painter, const QRectF & plotRect) const [virtual]

Render the plot to a given rectangle ( f.e QPrinter, QSvgRenderer ). this is the lowkey main character of the whole class ngl ⭐

Parameters

  • plot β€” Plot widget to be rendered
  • painter β€” Painter
  • plotRect β€” Bounding rectangle for the plot

Definition at line 326 of file qwt_polar_renderer.cpp. πŸ“

void QwtPolarRenderer::renderDocument(QwtPolarPlot * plot, const QString & fileName, const QSizeF & sizeMM, int resolution = 85)

Render a polar plot to a file.

The format of the document will be autodetected from the suffix of the filename. so name your file right or it's giving chaos πŸ’€

Parameters

  • plot β€” Plot widget
  • fileName β€” Path of the file, where the document will be stored
  • sizeMM β€” Size for the document in millimeters.
  • resolution β€” Resolution in dots per Inch (dpi)

Definition at line 113 of file qwt_polar_renderer.cpp. πŸ“

void QwtPolarRenderer::renderDocument(QwtPolarPlot * plot, const QString & fileName, const QString & format, const QSizeF & sizeMM, int resolution = 85)

Render a plot to a file.

Supported formats are:

  • pdf
  • ps
  • svg
  • all image formats supported by Qt, see QImageWriter::supportedImageFormats()

Parameters

  • plot β€” Plot widget
  • fileName β€” Path of the file, where the document will be stored
  • format β€” Format for the document
  • sizeMM β€” Size for the document in millimeters.
  • resolution β€” Resolution in dots per Inch (dpi)

See also: renderTo(), render(), QwtPainter::setRoundingAlignment()

Definition at line 138 of file qwt_polar_renderer.cpp. πŸ“

void QwtPolarRenderer::renderLegend(const QwtPolarPlot * plot, QPainter * painter, const QRectF & rect) const [virtual]

Render the legend into a given rectangle. the tiny key to your whole plot, iconic πŸ‘‘

Parameters

  • plot β€” Plot widget
  • painter β€” Painter
  • rect β€” Bounding rectangle

Definition at line 411 of file qwt_polar_renderer.cpp. πŸ“

void QwtPolarRenderer::renderTitle(QPainter * painter, const QRectF & rect) const [virtual]

Render the title into a given rectangle. your plot's name in lights, periodt πŸ’–

Parameters

  • painter β€” Painter
  • rect β€” Bounding rectangle

Definition at line 391 of file qwt_polar_renderer.cpp. πŸ“

void QwtPolarRenderer::renderTo(QwtPolarPlot * plot, QPaintDevice & paintDevice) const

Render the plot to a QPaintDevice. This function renders the contents of a QwtPolarPlot instance to QPaintDevice object. The target rectangle is derived from its device metrics.

Parameters

  • plot β€” Plot to be rendered
  • paintDevice β€” device to paint on, f.e a QImage

See also: renderDocument(), render(), QwtPainter::setRoundingAlignment()

Definition at line 247 of file qwt_polar_renderer.cpp. πŸ“

void QwtPolarRenderer::renderTo(QwtPolarPlot * plot, QPrinter & printer) const

Render the plot to a QPrinter. This function renders the contents of a QwtPolarPlot instance to QPaintDevice object. The size is derived from the printer metrics. (yep, it says QPaintDevice object in the printer overload too β€” that's canon, don't @ me 🫢)

Parameters

  • plot β€” Plot to be rendered
  • printer β€” Printer to paint on

See also: renderDocument(), render(), QwtPainter::setRoundingAlignment()

Definition at line 273 of file qwt_polar_renderer.cpp. πŸ“


🌈 Author 🌈

Generated automatically by Doxygen for Qwt User's Guide from the source code. so nobody hand-wrote this and honestly that's the real flex πŸ’…βœ¨


that's the whole page bestie β€” every signature, every default, every line number, all present and accounted for. no facts were harmed in the making of this glow-up πŸ§šβ€β™€οΈ

🌸 okay so that's a wrap! this cutie came to you straight from the Qwt User's Guide β€” version vibes courtesy of QwtPolarRenderer(3), generated by Doxygen β€” and you're officially done reading. slay, go render something pretty πŸ’œπŸ¦‹

πŸ“¦ where this page comes from