|
QWT API (中文) 7.0.1
Qt绘图库 - 中文API文档
|
用于将绘图导出到文档、打印机或其他受 QPainter/QPaintDevice 支持的对象的渲染器 更多...
#include <qwt_plot_renderer.h>
类 | |
| class | PrivateData |
Public 类型 | |
| enum | DiscardFlag { DiscardNone = 0x00 , DiscardBackground = 0x01 , DiscardTitle = 0x02 , DiscardLegend = 0x04 , DiscardCanvasBackground = 0x08 , DiscardFooter = 0x10 , DiscardCanvasFrame = 0x20 } |
| 丢弃标志 更多... | |
| enum | LayoutFlag { DefaultLayout = 0x00 , FrameWithScales = 0x01 } |
| 布局标志 更多... | |
Public 成员函数 | |
| QwtPlotRenderer (QObject *=nullptr) | |
| 构造函数 | |
| virtual | ~QwtPlotRenderer () |
| 析构函数 | |
| 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 |
| 将绘图渲染到 QPrinter | |
| void | renderTo (QwtPlot *, QPaintDevice &) const |
| 将绘图渲染到 QPaintDevice | |
| virtual void | render (QwtPlot *, QPainter *, const QRectF &plotRect) const |
| 将 QwtPlot 实例的内容绘制到给定矩形中 | |
| 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 *, QwtAxisId, int startDist, int endDist, int baseDist, const QRectF &scaleRect) const |
| 将比例尺绘制到给定矩形中 | |
| 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) |
| 执行文件对话框并将绘图渲染到选定文件 | |
用于将绘图导出到文档、打印机或其他受 QPainter/QPaintDevice 支持的对象的渲染器
丢弃标志
|
explicit |
构造函数
|
virtual |
析构函数
| QwtPlotRenderer::DiscardFlags QwtPlotRenderer::discardFlags | ( | ) | const |
获取指示渲染时丢弃内容的标志
| bool QwtPlotRenderer::exportTo | ( | QwtPlot * | plot, |
| const QString & | documentName, | ||
| const QSizeF & | sizeMM = QSizeF( 300, 200 ), |
||
| int | resolution = 85 |
||
| ) |
执行文件对话框并将绘图渲染到选定文件
| QwtPlotRenderer::LayoutFlags QwtPlotRenderer::layoutFlags | ( | ) | const |
获取布局标志
|
virtual |
将 QwtPlot 实例的内容绘制到给定矩形中
|
virtual |
将画布渲染到给定矩形中
| void QwtPlotRenderer::renderDocument | ( | QwtPlot * | plot, |
| const QString & | fileName, | ||
| const QSizeF & | sizeMM, | ||
| int | resolution = 85 |
||
| ) |
将绘图渲染到文件
| void QwtPlotRenderer::renderDocument | ( | QwtPlot * | plot, |
| const QString & | fileName, | ||
| const QString & | format, | ||
| const QSizeF & | sizeMM, | ||
| int | resolution = 85 |
||
| ) |
将绘图渲染到指定格式的文件
|
virtual |
将页脚渲染到给定矩形中
|
virtual |
将图例渲染到给定矩形中
|
virtual |
将比例尺绘制到给定矩形中
|
virtual |
将标题渲染到给定矩形中
| void QwtPlotRenderer::renderTo | ( | QwtPlot * | plot, |
| QPaintDevice & | paintDevice | ||
| ) | const |
将绘图渲染到 QPaintDevice
| void QwtPlotRenderer::renderTo | ( | QwtPlot * | plot, |
| QPrinter & | printer | ||
| ) | const |
将绘图渲染到 QPrinter
| void QwtPlotRenderer::setDiscardFlag | ( | DiscardFlag | flag, |
| bool | on = true |
||
| ) |
更改指示渲染时丢弃内容的标志
| void QwtPlotRenderer::setDiscardFlags | ( | DiscardFlags | flags | ) |
设置指示渲染时丢弃内容的标志
| void QwtPlotRenderer::setLayoutFlag | ( | LayoutFlag | flag, |
| bool | on = true |
||
| ) |
更改布局标志
| void QwtPlotRenderer::setLayoutFlags | ( | LayoutFlags | flags | ) |
设置布局标志
| bool QwtPlotRenderer::testDiscardFlag | ( | DiscardFlag | flag | ) | const |
测试丢弃标志是否启用
| bool QwtPlotRenderer::testLayoutFlag | ( | LayoutFlag | flag | ) | const |
测试布局标志是否启用