QwtPlotRenderer::DiscardFlagsQwtPlotRenderer::discardFlags()constReturns:
Flags, indicating what to discard from rendering
Seealso:DiscardFlag, setDiscardFlags(), setDiscardFlag(), testDiscardFlag()boolQwtPlotRenderer::exportTo(QwtPlot*plot,constQString&documentName,constQSizeF&sizeMM=QSizeF(300,200),intresolution=85)
Execute a file dialog and render the plot to the selected file.
Parameters:plot Plot widget
documentName Default document name
sizeMM Size for the document in millimeters.
resolution Resolution in dots per Inch (dpi)
Returns:
True, when exporting was successful
Seealso:renderDocument()QwtPlotRenderer::LayoutFlagsQwtPlotRenderer::layoutFlags()constReturns:
Layout flags
Seealso:LayoutFlag, setLayoutFlags(), setLayoutFlag(), testLayoutFlag()voidQwtPlotRenderer::render(QwtPlot*plot,QPainter*painter,constQRectF&plotRect)const[virtual]
Paint the contents of a QwtPlot instance into a given rectangle.
Parameters:plot Plot to be rendered
painter Painter
plotRect Bounding rectangle
Seealso:renderDocument(), renderTo(), QwtPainter::setRoundingAlignment()voidQwtPlotRenderer::renderCanvas(constQwtPlot*plot,QPainter*painter,constQRectF&canvasRect,constQwtScaleMap*maps)const[virtual]
Render the canvas into a given rectangle.
Parameters:plot Plot widget
painter Painter
maps Maps mapping between plot and paint device coordinates
canvasRect Canvas rectangle
voidQwtPlotRenderer::renderDocument(QwtPlot*plot,constQString&fileName,constQSizeF&sizeMM,intresolution=85)
Render a plot to a file
The format of the document will be auto-detected from the suffix of the file name.
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)
voidQwtPlotRenderer::renderDocument(QwtPlot*plot,constQString&fileName,constQString&format,constQSizeF&sizeMM,intresolution=85)
Render a plot to a file
Supported formats are:
• pdf
Portable Document Format PDF
• ps
Postcript
• svg
Scalable Vector Graphics SVG
• all image formats supported by Qt
see QImageWriter::supportedImageFormats()
Scalable vector graphic formats like PDF or SVG are superior to raster graphics formats.
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)
Seealso:renderTo(), render(), QwtPainter::setRoundingAlignment()voidQwtPlotRenderer::renderFooter(constQwtPlot*plot,QPainter*painter,constQRectF&footerRect)const[virtual]
Render the footer into a given rectangle.
Parameters:plot Plot widget
painter Painter
footerRect Bounding rectangle for the footer
voidQwtPlotRenderer::renderLegend(constQwtPlot*plot,QPainter*painter,constQRectF&legendRect)const[virtual]
Render the legend into a given rectangle.
Parameters:plot Plot widget
painter Painter
legendRect Bounding rectangle for the legend
voidQwtPlotRenderer::renderScale(constQwtPlot*plot,QPainter*painter,intaxisId,intstartDist,intendDist,intbaseDist,constQRectF&scaleRect)const[virtual]
Paint a scale into a given rectangle. Paint the scale into a given rectangle.
Parameters:plot Plot widget
painter Painter
axisId Axis
startDist Start border distance
endDist End border distance
baseDist Base distance
scaleRect Bounding rectangle for the scale
voidQwtPlotRenderer::renderTitle(constQwtPlot*plot,QPainter*painter,constQRectF&titleRect)const[virtual]
Render the title into a given rectangle.
Parameters:plot Plot widget
painter Painter
titleRect Bounding rectangle for the title
voidQwtPlotRenderer::renderTo(QwtPlot*plot,QPrinter&printer)const
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:plot Plot to be rendered
printer Printer to paint on
Seealso:renderDocument(), render(), QwtPainter::setRoundingAlignment()voidQwtPlotRenderer::renderTo(QwtPlot*plot,QPaintDevice&paintDevice)const
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:plot Plot to be rendered
paintDevice device to paint on, f.e a QImage
Seealso:renderDocument(), render(), QwtPainter::setRoundingAlignment()voidQwtPlotRenderer::setDiscardFlag(DiscardFlagflag,boolon=true)
Change a flag, indicating what to discard from rendering
Parameters:flag Flag to change
on On/Off
Seealso:DiscardFlag, testDiscardFlag(), setDiscardFlags(), discardFlags()voidQwtPlotRenderer::setDiscardFlags(DiscardFlagsflags)
Set the flags, indicating what to discard from rendering
Parameters:flags Flags
Seealso:DiscardFlag, setDiscardFlag(), testDiscardFlag(), discardFlags()voidQwtPlotRenderer::setLayoutFlag(LayoutFlagflag,boolon=true)
Change a layout flag
Parameters:flag Flag to change
on On/Off
Seealso:LayoutFlag, testLayoutFlag(), setLayoutFlags(), layoutFlags()voidQwtPlotRenderer::setLayoutFlags(LayoutFlagsflags)
Set the layout flags
Parameters:flags Flags
Seealso:LayoutFlag, setLayoutFlag(), testLayoutFlag(), layoutFlags()boolQwtPlotRenderer::testDiscardFlag(DiscardFlagflag)constReturns:
True, if flag is enabled.
Parameters:flag Flag to be tested
Seealso:DiscardFlag, setDiscardFlag(), setDiscardFlags(), discardFlags()boolQwtPlotRenderer::testLayoutFlag(LayoutFlagflag)constReturns:
True, if flag is enabled.
Parameters:flag Flag to be tested
Seealso:LayoutFlag, setLayoutFlag(), setLayoutFlags(), layoutFlags()