|
Qwt User's Guide 6.3.0
|
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>
Public Member Functions | |
| QwtPolarRenderer (QObject *parent=NULL) | |
| virtual | ~QwtPolarRenderer () |
| Destructor. | |
| void | renderDocument (QwtPolarPlot *, const QString &format, const QSizeF &sizeMM, int resolution=85) |
| void | renderDocument (QwtPolarPlot *, const QString &title, const QString &format, const QSizeF &sizeMM, int resolution=85) |
| 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 |
| virtual void | renderLegend (const QwtPolarPlot *, QPainter *, const QRectF &) const |
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.
|
explicit |
|
virtual |
Destructor.
Definition at line 97 of file qwt_polar_renderer.cpp.
| 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
| plot | Plot widget |
| documentName | Default document name |
| sizeMM | Size for the document in millimeters. |
| resolution | Resolution in dots per Inch (dpi) |
Definition at line 430 of file qwt_polar_renderer.cpp.
|
virtual |
Render the plot to a given rectangle ( f.e QPrinter, QSvgRenderer )
| 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.
| 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:
| 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) |
Definition at line 138 of file qwt_polar_renderer.cpp.
|
virtual |
Render the legend into a given rectangle.
| plot | Plot widget |
| painter | Painter |
| rect | Bounding rectangle |
Definition at line 411 of file qwt_polar_renderer.cpp.
|
virtual |
Render the title into a given rectangle.
| 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.
| plot | Plot to be rendered |
| paintDevice | device to paint on, f.e a QImage |
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.
| plot | Plot to be rendered |
| printer | Printer to paint on |
Definition at line 273 of file qwt_polar_renderer.cpp.