1
.TH "QwtPlotPrintFilter" 3 "1 May 2008" "Version 5.1.0" "Qwt User's Guide" \" -*- nroff -*-
9
.SH "Detailed Description"
11
A base class for plot print filters.
13
A print filter can be used to customize \fBQwtPlot::print()\fP.
17
In Qwt 5.0 the design of \fBQwtPlot\fP allows/recommends writing individual QwtPlotItems, that are not known to \fBQwtPlotPrintFilter\fP. So this concept is outdated and \fBQwtPlotPrintFilter\fP will be removed/replaced in Qwt 6.x.
22
Definition at line 30 of file qwt_plot_printfilter.h.
27
.RI "enum \fBOptions\fP { \fBAlignScales\fP = 1, \fBIgnoreScrollbars\fP = 2, \fBIgnoreFrames\fP = 4, \fBIgnoreMargin\fP = 8, \fBIgnoreLegend\fP = 16, \fBPrintMargin\fP = 1, \fBPrintTitle\fP = 2, \fBPrintLegend\fP = 4, \fBPrintGrid\fP = 8, \fBPrintBackground\fP = 16, \fBPrintFrameWithScales\fP = 32, \fBPrintAll\fP = ~PrintFrameWithScales }"
30
.RI "enum \fBItem\fP { \fBTitle\fP, \fBLegend\fP, \fBCurve\fP, \fBCurveSymbol\fP, \fBMarker\fP, \fBMarkerSymbol\fP, \fBMajorGrid\fP, \fBMinorGrid\fP, \fBCanvasBackground\fP, \fBAxisScale\fP, \fBAxisTitle\fP, \fBWidgetBackground\fP }"
33
.SS "Public Member Functions"
37
.RI "\fBQwtPlotPrintFilter\fP ()"
40
.RI "virtual \fB~QwtPlotPrintFilter\fP ()"
43
.RI "virtual QColor \fBcolor\fP (const QColor &, \fBItem\fP item) const"
46
.RI "virtual QFont \fBfont\fP (const QFont &, \fBItem\fP item) const"
49
.RI "void \fBsetOptions\fP (int options)"
52
.RI "int \fBoptions\fP () const"
55
.RI "virtual void \fBapply\fP (\fBQwtPlot\fP *) const"
58
.RI "virtual void \fBreset\fP (\fBQwtPlot\fP *) const"
61
.RI "virtual void \fBapply\fP (\fBQwtPlotItem\fP *) const "
64
.RI "virtual void \fBreset\fP (\fBQwtPlotItem\fP *) const "
67
.SH "Member Enumeration Documentation"
69
.SS "enum \fBQwtPlotPrintFilter::Options\fP"
73
Definition at line 34 of file qwt_plot_printfilter.h.
74
.SS "enum \fBQwtPlotPrintFilter::Item\fP"
78
Definition at line 47 of file qwt_plot_printfilter.h.
79
.SH "Constructor & Destructor Documentation"
81
.SS "QwtPlotPrintFilter::QwtPlotPrintFilter ()\fC [explicit]\fP"
83
Sets filter options to PrintAll
85
Definition at line 82 of file qwt_plot_printfilter.cpp.
86
.SS "QwtPlotPrintFilter::~QwtPlotPrintFilter ()\fC [virtual]\fP"
90
Definition at line 88 of file qwt_plot_printfilter.cpp.
91
.SH "Member Function Documentation"
93
.SS "QColor QwtPlotPrintFilter::color (const QColor & c, \fBItem\fP item) const\fC [virtual]\fP"
95
Modifies a color for printing.
99
\fIc\fP Color to be modified
101
\fIitem\fP Type of item where the color belongs
109
In case of !(\fBQwtPlotPrintFilter::options()\fP & PrintBackground) MajorGrid is modified to Qt::darkGray, MinorGrid to Qt::gray. All other colors are returned unmodified.
111
Definition at line 124 of file qwt_plot_printfilter.cpp.
113
References options().
115
Referenced by apply().
116
.SS "QFont QwtPlotPrintFilter::font (const QFont & f, \fBItem\fP item) const\fC [virtual]\fP"
118
Modifies a font for printing.
122
\fIf\fP Font to be modified
124
\fIitem\fP Type of item where the font belongs
127
All fonts are returned unmodified
129
Definition at line 148 of file qwt_plot_printfilter.cpp.
131
Referenced by apply().
132
.SS "void QwtPlotPrintFilter::setOptions (int options)"
134
Set plot print options.
138
\fIoptions\fP Or'd \fBQwtPlotPrintFilter::Options\fP values
148
Definition at line 99 of file qwt_plot_printfilter.cpp.
149
.SS "int QwtPlotPrintFilter::options () const"
151
Get plot print options.
160
Definition at line 108 of file qwt_plot_printfilter.cpp.
162
Referenced by color(), QwtPlot::drawItems(), QwtPlot::print(), and QwtPlot::printCanvas().
163
.SS "void QwtPlotPrintFilter::apply (\fBQwtPlot\fP * plot) const\fC [virtual]\fP"
165
Change color and fonts of a plot
174
Definition at line 157 of file qwt_plot_printfilter.cpp.
176
References QwtPlot::autoReplot(), QwtPlot::axisWidget(), QwtSymbol::brush(), QwtPlot::canvasBackground(), QwtText::color(), color(), QwtText::font(), font(), QwtPlotDict::itemList(), QwtPlot::legend(), QwtLegend::legendItems(), QwtSymbol::pen(), QwtPlot::setAutoReplot(), QwtSymbol::setBrush(), QwtPlot::setCanvasBackground(), QwtText::setColor(), QwtText::setFont(), QwtSymbol::setPen(), QwtText::testPaintAttribute(), QwtScaleWidget::title(), and QwtPlot::titleLabel().
178
Referenced by QwtPlot::print().
179
.SS "void QwtPlotPrintFilter::reset (\fBQwtPlot\fP * plot) const\fC [virtual]\fP"
181
Reset color and fonts of a plot
190
Definition at line 366 of file qwt_plot_printfilter.cpp.
192
References QwtPlot::autoReplot(), QwtPlot::axisWidget(), QwtSymbol::brush(), QwtLegend::find(), QwtPlotDict::itemList(), QwtPlot::legend(), QwtLegend::legendItems(), QwtSymbol::pen(), QwtPlot::setAutoReplot(), QwtSymbol::setBrush(), QwtPlot::setCanvasBackground(), QwtText::setColor(), QwtSymbol::setPen(), QwtScaleWidget::setTitle(), QwtTextLabel::text(), and QwtPlot::titleLabel().
194
Referenced by QwtPlot::print().
198
Generated automatically by Doxygen for Qwt User's Guide from the source code.