10 #ifndef QWT_PLOT_RENDERER_H 11 #define QWT_PLOT_RENDERER_H 29 #if QT_VERSION >= 0x040500 51 DiscardBackground = 0x01,
60 DiscardCanvasBackground = 0x08,
72 DiscardCanvasFrame = 0x20
92 FrameWithScales = 0x01
101 void setDiscardFlag(
DiscardFlag flag,
bool on =
true );
104 void setDiscardFlags( DiscardFlags flags );
105 DiscardFlags discardFlags()
const;
107 void setLayoutFlag(
LayoutFlag flag,
bool on =
true );
110 void setLayoutFlags( LayoutFlags flags );
111 LayoutFlags layoutFlags()
const;
113 void renderDocument(
QwtPlot *,
const QString &fileName,
114 const QSizeF &sizeMM,
int resolution = 85 );
116 void renderDocument(
QwtPlot *,
117 const QString &fileName,
const QString &format,
118 const QSizeF &sizeMM,
int resolution = 85 );
122 #if QT_VERSION >= 0x040500 123 void renderTo(
QwtPlot *, QSvgGenerator & )
const;
128 #ifndef QT_NO_PRINTER 129 void renderTo(
QwtPlot *, QPrinter & )
const;
132 void renderTo(
QwtPlot *, QPaintDevice &p )
const;
134 virtual void render(
QwtPlot *,
135 QPainter *,
const QRectF &rect )
const;
137 virtual void renderTitle(
const QwtPlot *,
138 QPainter *,
const QRectF & )
const;
140 virtual void renderFooter(
const QwtPlot *,
141 QPainter *,
const QRectF & )
const;
143 virtual void renderScale(
const QwtPlot *, QPainter *,
144 int axisId,
int startDist,
int endDist,
145 int baseDist,
const QRectF & )
const;
147 virtual void renderCanvas(
const QwtPlot *,
148 QPainter *,
const QRectF &canvasRect,
151 virtual void renderLegend(
152 const QwtPlot *, QPainter *,
const QRectF & )
const;
154 bool exportTo(
QwtPlot *,
const QString &documentName,
155 const QSizeF &sizeMM = QSizeF( 300, 200 ),
int resolution = 85 );
158 void buildCanvasMaps(
const QwtPlot *,
161 bool updateCanvasMargins(
QwtPlot *,
Renderer for exporting a plot to a document, a printer or anything else, that is supported by QPainte...
QFlags< DiscardFlag > DiscardFlags
Disard flags.
QFlags< LayoutFlag > LayoutFlags
Layout flags.