QWT API (中文)
7.3.0
Qt绘图库 - 中文API文档
载入中...
搜索中...
未找到
src
plot
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
16
class
QwtPolarPlot
;
17
class
QRectF;
18
class
QPainter;
19
class
QPaintDevice;
20
21
#ifndef QT_NO_PRINTER
22
class
QPrinter;
23
#endif
24
25
#ifndef QWT_NO_SVG
26
#ifdef QT_SVG_LIB
27
class
QSvgGenerator;
28
#endif
29
#endif
30
35
class
QWT_EXPORT
QwtPolarRenderer
:
public
QObject
36
{
37
Q_OBJECT
38
39
public
:
41
explicit
QwtPolarRenderer
(QObject* parent =
nullptr
);
43
~QwtPolarRenderer
()
override
;
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
78
private
:
79
QWT_DECLARE_PRIVATE(
QwtPolarRenderer
)
80
};
81
82
#endif
QwtPolarPlot
A plotting widget, displaying a polar coordinate system
Definition
qwt_polar_plot.h:46
QwtPolarRenderer
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::~QwtPolarRenderer
~QwtPolarRenderer() override
Destructor
制作者
1.9.8