10 #ifndef QWT_PLOT_RENDERER_H    11 #define QWT_PLOT_RENDERER_H    13 #include "qwt_global.h"    49         DiscardBackground       = 0x01,
    58         DiscardCanvasBackground = 0x08,
    70         DiscardCanvasFrame           = 0x20
    90         FrameWithScales = 0x01
    99     void setDiscardFlag( 
DiscardFlag flag, 
bool on = 
true );
   102     void setDiscardFlags( DiscardFlags flags );
   103     DiscardFlags discardFlags() 
const;
   105     void setLayoutFlag( 
LayoutFlag flag, 
bool on = 
true );
   108     void setLayoutFlags( LayoutFlags flags );
   109     LayoutFlags layoutFlags() 
const;
   111     void renderDocument( 
QwtPlot *, 
const QString &fileName,
   112         const QSizeF &sizeMM, 
int resolution = 85 );
   114     void renderDocument( 
QwtPlot *,
   115         const QString &fileName, 
const QString &format,
   116         const QSizeF &sizeMM, 
int resolution = 85 );
   120 #if QT_VERSION >= 0x040500   121     void renderTo( 
QwtPlot *, QSvgGenerator & ) 
const;
   126 #ifndef QT_NO_PRINTER   127     void renderTo( 
QwtPlot *, QPrinter & ) 
const;
   130     void renderTo( 
QwtPlot *, QPaintDevice &p ) 
const;
   132     virtual void render( 
QwtPlot *,
   133         QPainter *, 
const QRectF &rect ) 
const;
   135     virtual void renderTitle( 
const QwtPlot *,
   136         QPainter *, 
const QRectF & ) 
const;
   138     virtual void renderFooter( 
const QwtPlot *,
   139         QPainter *, 
const QRectF & ) 
const;
   141     virtual void renderScale( 
const QwtPlot *, QPainter *,
   142         int axisId, 
int startDist, 
int endDist,
   143         int baseDist, 
const QRectF & ) 
const;
   145     virtual void renderCanvas( 
const QwtPlot *,
   146         QPainter *, 
const QRectF &canvasRect,
   149     virtual void renderLegend( 
   150         const QwtPlot *, QPainter *, 
const QRectF & ) 
const;
   152     bool exportTo( 
QwtPlot *, 
const QString &documentName,
   153         const QSizeF &sizeMM = QSizeF( 300, 200 ), 
int resolution = 85 );
   156     void buildCanvasMaps( 
const QwtPlot *,
   159     bool updateCanvasMargins( 
QwtPlot *,
 DiscardFlag
Disard flags. 
Definition: qwt_plot_renderer.h:43
A scale map. 
Definition: qwt_scale_map.h:30
QFlags< DiscardFlag > DiscardFlags
Disard flags. 
Definition: qwt_plot_renderer.h:75
A 2-D plotting widget. 
Definition: qwt_plot.h:74
QFlags< LayoutFlag > LayoutFlags
Layout flags. 
Definition: qwt_plot_renderer.h:94
Renderer for exporting a plot to a document, a printer or anything else, that is supported by QPainte...
Definition: qwt_plot_renderer.h:37
LayoutFlag
Layout flags. 
Definition: qwt_plot_renderer.h:81