68 DiscardBackground = 0x01,
77 DiscardCanvasBackground = 0x08,
89 DiscardCanvasFrame = 0x20
93 Q_DECLARE_FLAGS( DiscardFlags, DiscardFlag )
102 DefaultLayout = 0x00,
108 FrameWithScales = 0x01
111 Q_DECLARE_FLAGS( LayoutFlags, LayoutFlag )
116 void setDiscardFlag( DiscardFlag flag,
bool on =
true );
117 bool testDiscardFlag( DiscardFlag flag )
const;
119 void setDiscardFlags( DiscardFlags flags );
120 DiscardFlags discardFlags()
const;
122 void setLayoutFlag( LayoutFlag flag,
bool on =
true );
123 bool testLayoutFlag( LayoutFlag flag )
const;
125 void setLayoutFlags( LayoutFlags flags );
126 LayoutFlags layoutFlags()
const;
128 void renderDocument(
QwtPlot*,
const QString& fileName,
129 const QSizeF& sizeMM,
int resolution = 85 );
132 const QString& fileName,
const QString& format,
133 const QSizeF& sizeMM,
int resolution = 85 );
137 void renderTo(
QwtPlot*, QSvgGenerator& )
const;
142 void renderTo(
QwtPlot*, QPrinter& )
const;
145 void renderTo(
QwtPlot*, QPaintDevice& )
const;
148 QPainter*,
const QRectF& plotRect )
const;
150 virtual void renderTitle(
const QwtPlot*,
151 QPainter*,
const QRectF& titleRect )
const;
153 virtual void renderFooter(
const QwtPlot*,
154 QPainter*,
const QRectF& footerRect )
const;
156 virtual void renderScale(
const QwtPlot*, QPainter*,
157 QwtAxisId,
int startDist,
int endDist,
158 int baseDist,
const QRectF& scaleRect )
const;
160 virtual void renderCanvas(
const QwtPlot*,
161 QPainter*,
const QRectF& canvasRect,
164 virtual void renderLegend(
165 const QwtPlot*, QPainter*,
const QRectF& legendRect )
const;
167 bool exportTo(
QwtPlot*,
const QString& documentName,
168 const QSizeF& sizeMM = QSizeF( 300, 200 ),
int resolution = 85 );
171 void buildCanvasMaps(
const QwtPlot*,
174 bool updateCanvasMargins(
QwtPlot*,
Renderer for exporting a plot to a document, a printer or anything else, that is supported by QPainte...
Definition qwt_plot_renderer.h:57