10 #ifndef QWT_PLOT_RENDERER_H
11 #define QWT_PLOT_RENDERER_H
13 #include "qwt_global.h"
49 DiscardBackground = 0x01,
58 DiscardCanvasBackground = 0x08
83 FrameWithScales = 0x02
92 void setDiscardFlag(
DiscardFlag flag,
bool on =
true );
98 void setLayoutFlag(
LayoutFlag flag,
bool on =
true );
104 void renderDocument(
QwtPlot *,
const QString &fileName,
105 const QSizeF &sizeMM,
int resolution = 85 );
107 void renderDocument(
QwtPlot *,
108 const QString &fileName,
const QString &format,
109 const QSizeF &sizeMM,
int resolution = 85 );
113 #if QT_VERSION >= 0x040500
114 void renderTo(
QwtPlot *, QSvgGenerator & )
const;
119 #ifndef QT_NO_PRINTER
120 void renderTo(
QwtPlot *, QPrinter & )
const;
123 void renderTo(
QwtPlot *, QPaintDevice &p )
const;
125 virtual void render(
QwtPlot *,
126 QPainter *,
const QRectF &rect )
const;
128 virtual void renderLegendItem(
const QwtPlot *,
129 QPainter *,
const QWidget *,
const QRectF & )
const;
131 virtual void renderTitle(
const QwtPlot *,
132 QPainter *,
const QRectF & )
const;
134 virtual void renderScale(
const QwtPlot *, QPainter *,
135 int axisId,
int startDist,
int endDist,
136 int baseDist,
const QRectF & )
const;
138 virtual void renderCanvas(
const QwtPlot *,
139 QPainter *,
const QRectF &canvasRect,
142 virtual void renderLegend(
143 const QwtPlot *, QPainter *,
const QRectF & )
const;
146 void buildCanvasMaps(
const QwtPlot *,