QWT API (中文)
7.0.1
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
41
class
QWT_EXPORT
QwtPolarRenderer
:
public
QObject
42
{
43
Q_OBJECT
44
45
public
:
47
explicit
QwtPolarRenderer
( QObject* parent =
nullptr
);
49
virtual
~QwtPolarRenderer
();
50
52
void
renderDocument(
QwtPolarPlot
*,
const
QString& format,
53
const
QSizeF& sizeMM,
int
resolution = 85 );
54
56
void
renderDocument(
QwtPolarPlot
*,
57
const
QString& title,
const
QString& format,
58
const
QSizeF& sizeMM,
int
resolution = 85 );
59
60
#ifndef QWT_NO_SVG
61
#ifdef QT_SVG_LIB
63
void
renderTo(
QwtPolarPlot
*, QSvgGenerator& )
const
;
64
#endif
65
#endif
66
67
#ifndef QT_NO_PRINTER
69
void
renderTo(
QwtPolarPlot
*, QPrinter& )
const
;
70
#endif
71
73
void
renderTo(
QwtPolarPlot
*, QPaintDevice& )
const
;
74
76
virtual
void
render(
QwtPolarPlot
*,
77
QPainter*,
const
QRectF& rect )
const
;
78
80
bool
exportTo(
QwtPolarPlot
*,
const
QString& documentName,
81
const
QSizeF& sizeMM = QSizeF( 200, 200 ),
int
resolution = 85 );
82
84
virtual
void
renderTitle( QPainter*,
const
QRectF& )
const
;
85
87
virtual
void
renderLegend(
88
const
QwtPolarPlot
*, QPainter*,
const
QRectF& )
const
;
89
90
private
:
91
class
PrivateData;
92
PrivateData* m_data;
93
};
94
95
#endif
QwtPolarPlot
显示极坐标系的绘图控件
Definition
qwt_polar_plot.h:61
QwtPolarRenderer
用于将极坐标图导出到文档、打印机或其他支持 QPainter/QPaintDevice 的设备的渲染器
Definition
qwt_polar_renderer.h:42
制作者
1.9.8