|
QWT API (English) 7.0.1
Qt Widget Library for Technical Applications - English API Documentation
|
Renderer for exporting a plot to a document, a printer or anything else, that is supported by QPainter/QPaintDevice . More...
#include <qwt_plot_renderer.h>
Classes | |
| class | PrivateData |
Public Types | |
| enum | DiscardFlag { DiscardNone = 0x00 , DiscardBackground = 0x01 , DiscardTitle = 0x02 , DiscardLegend = 0x04 , DiscardCanvasBackground = 0x08 , DiscardFooter = 0x10 , DiscardCanvasFrame = 0x20 } |
| Discard flags. More... | |
| enum | LayoutFlag { DefaultLayout = 0x00 , FrameWithScales = 0x01 } |
| Layout flags. More... | |
Public Member Functions | |
| QwtPlotRenderer (QObject *=nullptr) | |
| Constructor. | |
| virtual | ~QwtPlotRenderer () |
| Destructor . | |
| void | setDiscardFlag (DiscardFlag flag, bool on=true) |
| Change a flag, indicating what to discard from rendering. | |
| bool | testDiscardFlag (DiscardFlag flag) const |
| Test if a discard flag is enabled. | |
| void | setDiscardFlags (DiscardFlags flags) |
| Set the flags, indicating what to discard from rendering. | |
| DiscardFlags | discardFlags () const |
| Get the flags indicating what to discard from rendering. | |
| void | setLayoutFlag (LayoutFlag flag, bool on=true) |
| Change a layout flag. | |
| bool | testLayoutFlag (LayoutFlag flag) const |
| Test if a layout flag is enabled. | |
| void | setLayoutFlags (LayoutFlags flags) |
| Set the layout flags. | |
| LayoutFlags | layoutFlags () const |
| Get the layout flags. | |
| void | renderDocument (QwtPlot *, const QString &fileName, const QSizeF &sizeMM, int resolution=85) |
| Render a plot to a file. | |
| void | renderDocument (QwtPlot *, const QString &fileName, const QString &format, const QSizeF &sizeMM, int resolution=85) |
| Render a plot to a file with specified format. | |
| void | renderTo (QwtPlot *, QPrinter &) const |
| Render the plot to a QPrinter. | |
| void | renderTo (QwtPlot *, QPaintDevice &) const |
| Render the plot to a QPaintDevice. | |
| virtual void | render (QwtPlot *, QPainter *, const QRectF &plotRect) const |
| Paint the contents of a QwtPlot instance into a given rectangle. | |
| virtual void | renderTitle (const QwtPlot *, QPainter *, const QRectF &titleRect) const |
| Render the title into a given rectangle. | |
| virtual void | renderFooter (const QwtPlot *, QPainter *, const QRectF &footerRect) const |
| Render the footer into a given rectangle. | |
| virtual void | renderScale (const QwtPlot *, QPainter *, QwtAxisId, int startDist, int endDist, int baseDist, const QRectF &scaleRect) const |
| Paint a scale into a given rectangle. | |
| virtual void | renderCanvas (const QwtPlot *, QPainter *, const QRectF &canvasRect, const QwtScaleMap *maps) const |
| Render the canvas into a given rectangle. | |
| virtual void | renderLegend (const QwtPlot *, QPainter *, const QRectF &legendRect) const |
| Render the legend into a given rectangle. | |
| bool | exportTo (QwtPlot *, const QString &documentName, const QSizeF &sizeMM=QSizeF(300, 200), int resolution=85) |
| Execute a file dialog and render the plot to the selected file. | |
Renderer for exporting a plot to a document, a printer or anything else, that is supported by QPainter/QPaintDevice
.
Discard flags.
|
explicit |
Constructor.
|
virtual |
Destructor .
| QwtPlotRenderer::DiscardFlags QwtPlotRenderer::discardFlags | ( | ) | const |
Get the flags indicating what to discard from rendering.
| bool QwtPlotRenderer::exportTo | ( | QwtPlot * | plot, |
| const QString & | documentName, | ||
| const QSizeF & | sizeMM = QSizeF( 300, 200 ), |
||
| int | resolution = 85 |
||
| ) |
Execute a file dialog and render the plot to the selected file.
| QwtPlotRenderer::LayoutFlags QwtPlotRenderer::layoutFlags | ( | ) | const |
Get the layout flags.
|
virtual |
Paint the contents of a QwtPlot instance into a given rectangle.
|
virtual |
Render the canvas into a given rectangle.
| void QwtPlotRenderer::renderDocument | ( | QwtPlot * | plot, |
| const QString & | fileName, | ||
| const QSizeF & | sizeMM, | ||
| int | resolution = 85 |
||
| ) |
Render a plot to a file.
| void QwtPlotRenderer::renderDocument | ( | QwtPlot * | plot, |
| const QString & | fileName, | ||
| const QString & | format, | ||
| const QSizeF & | sizeMM, | ||
| int | resolution = 85 |
||
| ) |
Render a plot to a file with specified format.
|
virtual |
Render the footer into a given rectangle.
|
virtual |
Render the legend into a given rectangle.
|
virtual |
Paint a scale into a given rectangle.
|
virtual |
Render the title into a given rectangle.
| void QwtPlotRenderer::renderTo | ( | QwtPlot * | plot, |
| QPaintDevice & | paintDevice | ||
| ) | const |
Render the plot to a QPaintDevice.
| void QwtPlotRenderer::renderTo | ( | QwtPlot * | plot, |
| QPrinter & | printer | ||
| ) | const |
Render the plot to a QPrinter.
| void QwtPlotRenderer::setDiscardFlag | ( | DiscardFlag | flag, |
| bool | on = true |
||
| ) |
Change a flag, indicating what to discard from rendering.
| void QwtPlotRenderer::setDiscardFlags | ( | DiscardFlags | flags | ) |
Set the flags, indicating what to discard from rendering.
| void QwtPlotRenderer::setLayoutFlag | ( | LayoutFlag | flag, |
| bool | on = true |
||
| ) |
Change a layout flag.
| void QwtPlotRenderer::setLayoutFlags | ( | LayoutFlags | flags | ) |
Set the layout flags.
| bool QwtPlotRenderer::testDiscardFlag | ( | DiscardFlag | flag | ) | const |
Test if a discard flag is enabled.
| bool QwtPlotRenderer::testLayoutFlag | ( | LayoutFlag | flag | ) | const |
Test if a layout flag is enabled.