84 DiscardBackground = 0x01,
93 DiscardCanvasBackground = 0x08,
113 DiscardCanvasFrame = 0x20
117 Q_DECLARE_FLAGS( DiscardFlags, DiscardFlag )
135 DefaultLayout = 0x00,
147 FrameWithScales = 0x01
150 Q_DECLARE_FLAGS( LayoutFlags, LayoutFlag )
158 void setDiscardFlag( DiscardFlag flag,
bool on =
true );
160 bool testDiscardFlag( DiscardFlag flag )
const;
163 void setDiscardFlags( DiscardFlags flags );
165 DiscardFlags discardFlags()
const;
168 void setLayoutFlag( LayoutFlag flag,
bool on =
true );
170 bool testLayoutFlag( LayoutFlag flag )
const;
173 void setLayoutFlags( LayoutFlags flags );
175 LayoutFlags layoutFlags()
const;
178 void renderDocument(
QwtPlot*,
const QString& fileName,
179 const QSizeF& sizeMM,
int resolution = 85 );
183 const QString& fileName,
const QString& format,
184 const QSizeF& sizeMM,
int resolution = 85 );
189 void renderTo(
QwtPlot*, QSvgGenerator& )
const;
195 void renderTo(
QwtPlot*, QPrinter& )
const;
199 void renderTo(
QwtPlot*, QPaintDevice& )
const;
203 QPainter*,
const QRectF& plotRect )
const;
206 virtual void renderTitle(
const QwtPlot*,
207 QPainter*,
const QRectF& titleRect )
const;
210 virtual void renderFooter(
const QwtPlot*,
211 QPainter*,
const QRectF& footerRect )
const;
214 virtual void renderScale(
const QwtPlot*, QPainter*,
215 QwtAxisId,
int startDist,
int endDist,
216 int baseDist,
const QRectF& scaleRect )
const;
219 virtual void renderCanvas(
const QwtPlot*,
220 QPainter*,
const QRectF& canvasRect,
224 virtual void renderLegend(
225 const QwtPlot*, QPainter*,
const QRectF& legendRect )
const;
228 bool exportTo(
QwtPlot*,
const QString& documentName,
229 const QSizeF& sizeMM = QSizeF( 300, 200 ),
int resolution = 85 );
237 void buildCanvasMaps(
const QwtPlot*,
245 bool updateCanvasMargins(
QwtPlot*,