10#ifndef QWT_PLOT_RENDERER_H 
   11#define QWT_PLOT_RENDERER_H 
   13#include "qwt_global.h" 
   14#include "qwt_axis_id.h" 
   51        DiscardBackground       = 0x01,
 
   60        DiscardCanvasBackground = 0x08,
 
   72        DiscardCanvasFrame           = 0x20
 
 
   91        FrameWithScales = 0x01
 
 
   99    void setDiscardFlag( 
DiscardFlag flag, 
bool on = 
true );
 
  105    void setLayoutFlag( 
LayoutFlag flag, 
bool on = 
true );
 
  111    void renderDocument( 
QwtPlot*, 
const QString& fileName,
 
  112        const QSizeF& sizeMM, 
int resolution = 85 );
 
  115        const QString& fileName, 
const QString& format,
 
  116        const QSizeF& sizeMM, 
int resolution = 85 );
 
  120    void renderTo( 
QwtPlot*, QSvgGenerator& ) 
const;
 
  125    void renderTo( 
QwtPlot*, QPrinter& ) 
const;
 
  128    void renderTo( 
QwtPlot*, QPaintDevice& ) 
const;
 
  131        QPainter*, 
const QRectF& plotRect ) 
const;
 
  133    virtual void renderTitle( 
const QwtPlot*,
 
  134        QPainter*, 
const QRectF& titleRect ) 
const;
 
  136    virtual void renderFooter( 
const QwtPlot*,
 
  137        QPainter*, 
const QRectF& footerRect ) 
const;
 
  139    virtual void renderScale( 
const QwtPlot*, QPainter*,
 
  140        QwtAxisId, 
int startDist, 
int endDist,
 
  141        int baseDist, 
const QRectF& scaleRect ) 
const;
 
  143    virtual void renderCanvas( 
const QwtPlot*,
 
  144        QPainter*, 
const QRectF& canvasRect,
 
  147    virtual void renderLegend(
 
  148        const QwtPlot*, QPainter*, 
const QRectF& legendRect ) 
const;
 
  150    bool exportTo( 
QwtPlot*, 
const QString& documentName,
 
  151        const QSizeF& sizeMM = QSizeF( 300, 200 ), 
int resolution = 85 );
 
  154    void buildCanvasMaps( 
const QwtPlot*,
 
  157    bool updateCanvasMargins( 
QwtPlot*,
 
 
Renderer for exporting a plot to a document, a printer or anything else, that is supported by QPainte...
DiscardFlag
Discard flags.
QFlags< LayoutFlag > LayoutFlags
QFlags< DiscardFlag > DiscardFlags