10 #ifndef QWT_PLOT_RENDERER_H 11 #define QWT_PLOT_RENDERER_H 50 DiscardBackground = 0x01,
59 DiscardCanvasBackground = 0x08,
71 DiscardCanvasFrame = 0x20
91 FrameWithScales = 0x01
100 void setDiscardFlag(
DiscardFlag flag,
bool on =
true );
103 void setDiscardFlags( DiscardFlags flags );
104 DiscardFlags discardFlags()
const;
106 void setLayoutFlag(
LayoutFlag flag,
bool on =
true );
109 void setLayoutFlags( LayoutFlags flags );
110 LayoutFlags layoutFlags()
const;
112 void renderDocument(
QwtPlot *,
const QString &fileName,
113 const QSizeF &sizeMM,
int resolution = 85 );
115 void renderDocument(
QwtPlot *,
116 const QString &fileName,
const QString &
format,
117 const QSizeF &sizeMM,
int resolution = 85 );
121 void renderTo(
QwtPlot *, QSvgGenerator & )
const;
125 #ifndef QT_NO_PRINTER 126 void renderTo(
QwtPlot *, QPrinter & )
const;
129 void renderTo(
QwtPlot *, QPaintDevice & )
const;
131 virtual void render(
QwtPlot *,
132 QPainter *,
const QRectF &plotRect )
const;
134 virtual void renderTitle(
const QwtPlot *,
135 QPainter *,
const QRectF &titleRect )
const;
137 virtual void renderFooter(
const QwtPlot *,
138 QPainter *,
const QRectF &footerRect )
const;
140 virtual void renderScale(
const QwtPlot *, QPainter *,
141 int axisId,
int startDist,
int endDist,
142 int baseDist,
const QRectF &scaleRect )
const;
144 virtual void renderCanvas(
const QwtPlot *,
145 QPainter *,
const QRectF &canvasRect,
148 virtual void renderLegend(
149 const QwtPlot *, QPainter *,
const QRectF &legendRect )
const;
151 bool exportTo(
QwtPlot *,
const QString &documentName,
152 const QSizeF &sizeMM = QSizeF( 300, 200 ),
int resolution = 85 );
155 void buildCanvasMaps(
const QwtPlot *,
158 bool updateCanvasMargins(
QwtPlot *,
FMT_INLINE std::basic_string< Char > format(const S &format_str, Args &&...args)
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.