Renderer for exporting a polar plot to a document, a printer or anything else, that is supported by QPainter/QPaintDevice.
More...
#include <qwt_polar_renderer.h>
|
| | QwtPolarRenderer (QObject *parent=NULL) |
| | Constructor.
|
| |
|
virtual | ~QwtPolarRenderer () |
| | Destructor.
|
| |
| void | renderDocument (QwtPolarPlot *, const QString &format, const QSizeF &sizeMM, int resolution=85) |
| | Render a polar plot to a file.
|
| |
| void | renderDocument (QwtPolarPlot *, const QString &title, const QString &format, const QSizeF &sizeMM, int resolution=85) |
| | Render a plot to a file.
|
| |
| 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 |
| | Render the title into a given rectangle.
|
| |
| virtual void | renderLegend (const QwtPolarPlot *, QPainter *, const QRectF &) const |
| | Render the legend into a given rectangle.
|
| |
Renderer for exporting a polar plot to a document, a printer or anything else, that is supported by QPainter/QPaintDevice.
◆ QwtPolarRenderer()
| QwtPolarRenderer::QwtPolarRenderer |
( |
QObject * |
parent = NULL | ) |
|
|
explicit |
◆ exportTo()
| 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
- 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()
◆ render()
| void QwtPolarRenderer::render |
( |
QwtPolarPlot * |
plot, |
|
|
QPainter * |
painter, |
|
|
const QRectF & |
plotRect |
|
) |
| const |
|
virtual |
Render the plot to a given rectangle ( f.e QPrinter, QSvgRenderer )
- Parameters
-
| plot | Plot widget to be rendered |
| painter | Painter |
| plotRect | Bounding rectangle for the plot |
◆ renderDocument() [1/2]
| 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.
- 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) |
◆ renderDocument() [2/2]
| 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()
◆ renderLegend()
| void QwtPolarRenderer::renderLegend |
( |
const QwtPolarPlot * |
plot, |
|
|
QPainter * |
painter, |
|
|
const QRectF & |
rect |
|
) |
| const |
|
virtual |
Render the legend into a given rectangle.
- Parameters
-
| plot | Plot widget |
| painter | Painter |
| rect | Bounding rectangle |
◆ renderTitle()
| void QwtPolarRenderer::renderTitle |
( |
QPainter * |
painter, |
|
|
const QRectF & |
rect |
|
) |
| const |
|
virtual |
Render the title into a given rectangle.
- Parameters
-
| painter | Painter |
| rect | Bounding rectangle |
◆ renderTo() [1/2]
| void QwtPolarRenderer::renderTo |
( |
QwtPolarPlot * |
plot, |
|
|
QPaintDevice & |
paintDevice |
|
) |
| const |
◆ renderTo() [2/2]
| void QwtPolarRenderer::renderTo |
( |
QwtPolarPlot * |
plot, |
|
|
QPrinter & |
printer |
|
) |
| const |
The documentation for this class was generated from the following files:
- /home/runner/work/QWT/QWT/src/qwt_polar_renderer.h
- /home/runner/work/QWT/QWT/src/qwt_polar_renderer.cpp