3rdparty
qwt
src
qwt_polar_renderer.h
Go to the documentation of this file.
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
:
40
explicit
QwtPolarRenderer
( QObject* parent = NULL );
41
virtual
~
QwtPolarRenderer
();
42
43
void
renderDocument(
QwtPolarPlot
*,
const
QString&
format
,
44
const
QSizeF& sizeMM,
int
resolution = 85 );
45
46
void
renderDocument(
QwtPolarPlot
*,
47
const
QString& title,
const
QString&
format
,
48
const
QSizeF& sizeMM,
int
resolution = 85 );
49
50
#ifndef QWT_NO_SVG
51
#ifdef QT_SVG_LIB
52
void
renderTo(
QwtPolarPlot
*, QSvgGenerator& )
const
;
53
#endif
54
#endif
55
56
#ifndef QT_NO_PRINTER
57
void
renderTo(
QwtPolarPlot
*, QPrinter& )
const
;
58
#endif
59
60
void
renderTo(
QwtPolarPlot
*, QPaintDevice& )
const
;
61
62
virtual
void
render(
QwtPolarPlot
*,
63
QPainter*,
const
QRectF& rect )
const
;
64
65
bool
exportTo(
QwtPolarPlot
*,
const
QString& documentName,
66
const
QSizeF& sizeMM = QSizeF( 200, 200 ),
int
resolution = 85 );
67
68
virtual
void
renderTitle( QPainter*,
const
QRectF& )
const
;
69
70
virtual
void
renderLegend(
71
const
QwtPolarPlot
*, QPainter*,
const
QRectF& )
const
;
72
73
private
:
74
class
PrivateData
;
75
PrivateData
*
m_data
;
76
};
77
78
#endif
QwtPolarPlot
A plotting widget, displaying a polar coordinate system.
Definition:
qwt_polar_plot.h:46
QwtPolarRenderer::PrivateData
Definition:
qwt_polar_renderer.cpp:75
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:35
qwt_global.h
QwtPolarRenderer::m_data
PrivateData * m_data
Definition:
qwt_polar_renderer.h:74
format
auto format(const text_style &ts, const S &format_str, const Args &... args) -> std::basic_string< Char >
Definition:
color.h:543
QWT_EXPORT
#define QWT_EXPORT
Definition:
qwt_global.h:38
plotjuggler
Author(s): Davide Faconti
autogenerated on Mon Nov 11 2024 03:23:46