QWT API (中文) 7.3.0
Qt绘图库 - 中文API文档
载入中...
搜索中...
未找到
qwt_polar_renderer.h
1/******************************************************************************
2 * QwtPolar Widget Library
3 * Copyright (C) 2008 Uwe Rathmann
4 *
5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the Qwt License, Version 1.0
7 *****************************************************************************/
8
9#ifndef QWT_POLAR_RENDERER_H
10#define QWT_POLAR_RENDERER_H
11
12#include "qwt_global.h"
13#include <qobject.h>
14#include <qsize.h>
15
16class QwtPolarPlot;
17class QRectF;
18class QPainter;
19class QPaintDevice;
20
21#ifndef QT_NO_PRINTER
22class QPrinter;
23#endif
24
25#ifndef QWT_NO_SVG
26#ifdef QT_SVG_LIB
27class QSvgGenerator;
28#endif
29#endif
30
35class QWT_EXPORT QwtPolarRenderer : public QObject
36{
37 Q_OBJECT
38
39public:
41 explicit QwtPolarRenderer(QObject* parent = nullptr);
44
46 void renderDocument(QwtPolarPlot*, const QString& format, const QSizeF& sizeMM, int resolution = 85);
47
49 void renderDocument(QwtPolarPlot*, const QString& title, const QString& format, const QSizeF& sizeMM, int resolution = 85);
50
51#ifndef QWT_NO_SVG
52#ifdef QT_SVG_LIB
54 void renderTo(QwtPolarPlot*, QSvgGenerator&) const;
55#endif
56#endif
57
58#ifndef QT_NO_PRINTER
60 void renderTo(QwtPolarPlot*, QPrinter&) const;
61#endif
62
64 void renderTo(QwtPolarPlot*, QPaintDevice&) const;
65
67 virtual void render(QwtPolarPlot*, QPainter*, const QRectF& rect) const;
68
70 bool exportTo(QwtPolarPlot*, const QString& documentName, const QSizeF& sizeMM = QSizeF(200, 200), int resolution = 85);
71
73 virtual void renderTitle(QPainter*, const QRectF&) const;
74
76 virtual void renderLegend(const QwtPolarPlot*, QPainter*, const QRectF&) const;
77
78private:
79 QWT_DECLARE_PRIVATE(QwtPolarRenderer)
80};
81
82#endif
A plotting widget, displaying a polar coordinate system
Definition qwt_polar_plot.h:46
Renderer for exporting a polar plot to a document, a printer or anything else, that is supported by Q...
Definition qwt_polar_renderer.h:36
~QwtPolarRenderer() override
Destructor