QwtPlotRenderer(3) | Qwt User's Guide | QwtPlotRenderer(3) |
QwtPlotRenderer - Renderer for exporting a plot to a document, a printer or anything else, that is supported by QPainter/QPaintDevice.
#include <qwt_plot_renderer.h>
Inherits QObject.
enum DiscardFlag { DiscardNone = 0x00,
DiscardBackground = 0x01, DiscardTitle = 0x02,
DiscardLegend = 0x04, DiscardCanvasBackground = 0x08,
DiscardFooter = 0x10, DiscardCanvasFrame = 0x20 }
Disard flags. enum LayoutFlag { DefaultLayout = 0x00,
FrameWithScales = 0x01 }
Layout flags. typedef QFlags< DiscardFlag > DiscardFlags
Disard flags. typedef QFlags< LayoutFlag > LayoutFlags
Layout flags.
QwtPlotRenderer (QObject *=NULL)
virtual ~QwtPlotRenderer ()
Destructor. void setDiscardFlag (DiscardFlag flag, bool on=true)
bool testDiscardFlag (DiscardFlag flag) const
void setDiscardFlags (DiscardFlags flags)
DiscardFlags discardFlags () const
void setLayoutFlag (LayoutFlag flag, bool on=true)
bool testLayoutFlag (LayoutFlag flag) const
void setLayoutFlags (LayoutFlags flags)
LayoutFlags layoutFlags () const
void renderDocument (QwtPlot *, const QString &fileName,
const QSizeF &sizeMM, int resolution=85)
void renderDocument (QwtPlot *, const QString &fileName,
const QString &format, const QSizeF &sizeMM, int resolution=85)
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
virtual void renderTitle (const QwtPlot *, QPainter *, const
QRectF &titleRect) const
virtual void renderFooter (const QwtPlot *, QPainter *, const
QRectF &footerRect) const
virtual void renderScale (const QwtPlot *, QPainter *, int
axisId, int startDist, int endDist, int baseDist, const QRectF
&scaleRect) const
Paint a scale into a given rectangle. Paint the scale into a given rectangle.
virtual void renderCanvas (const QwtPlot *, QPainter *, const
QRectF &canvasRect, const QwtScaleMap *maps) const
virtual void renderLegend (const QwtPlot *, QPainter *, const
QRectF &legendRect) const
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.
Disard flags.
Enumerator
Note:
Layout flags.
See also:
Enumerator
Constructor
Parameters:
Returns:
See also:
Execute a file dialog and render the plot to the selected file.
Parameters:
Returns:
See also:
Returns:
See also:
Paint the contents of a QwtPlot instance into a given rectangle.
Parameters:
See also:
Render the canvas into a given rectangle.
Parameters:
Render a plot to a file
The format of the document will be auto-detected from the suffix of the file name.
Parameters:
Render a plot to a file
Supported formats are:
Scalable vector graphic formats like PDF or SVG are superior to raster graphics formats.
Parameters:
See also:
Render the footer into a given rectangle.
Parameters:
Render the legend into a given rectangle.
Parameters:
Paint a scale into a given rectangle. Paint the scale into a given rectangle.
Parameters:
Render the title into a given rectangle.
Parameters:
Render the plot to a QPrinter. This function renders the contents of a QwtPlot instance to QPaintDevice object. The size is derived from the printer metrics.
Parameters:
See also:
Render the plot to a QPaintDevice. This function renders the contents of a QwtPlot instance to QPaintDevice object. The target rectangle is derived from its device metrics.
Parameters:
See also:
Change a flag, indicating what to discard from rendering
Parameters:
See also:
Set the flags, indicating what to discard from rendering
Parameters:
See also:
Change a layout flag
Parameters:
See also:
Set the layout flags
Parameters:
See also:
Returns:
Parameters:
See also:
Returns:
Parameters:
See also:
Generated automatically by Doxygen for Qwt User's Guide from the source code.
Wed Jan 2 2019 | Version 6.1.4 |