Qwt User's Guide 6.3.0
Loading...
Searching...
No Matches
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
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
A plotting widget, displaying a polar coordinate system.
Renderer for exporting a polar plot to a document, a printer or anything else, that is supported by Q...