1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151
|
.TH "QwtPlotPrintFilter" 3 "Mon Aug 1 2011" "Version 5.2.2" "Qwt User's Guide" \" -*- nroff -*-
.ad l
.nh
.SH NAME
QwtPlotPrintFilter \-
.PP
A base class for plot print filters.
.SH SYNOPSIS
.br
.PP
.PP
\fC#include <qwt_plot_printfilter.h>\fP
.SS "Public Types"
.in +1c
.ti -1c
.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 }"
.br
.ti -1c
.RI "enum \fBOptions\fP { \fBPrintMargin\fP = 1, \fBPrintTitle\fP = 2, \fBPrintLegend\fP = 4, \fBPrintGrid\fP = 8, \fBPrintBackground\fP = 16, \fBPrintFrameWithScales\fP = 32, \fBPrintAll\fP = ~PrintFrameWithScales }"
.br
.in -1c
.SS "Public Member Functions"
.in +1c
.ti -1c
.RI "virtual void \fBapply\fP (\fBQwtPlot\fP *) const "
.br
.ti -1c
.RI "virtual void \fBapply\fP (\fBQwtPlotItem\fP *) const "
.br
.ti -1c
.RI "virtual QColor \fBcolor\fP (const QColor &, \fBItem\fP item) const "
.br
.ti -1c
.RI "virtual QFont \fBfont\fP (const QFont &, \fBItem\fP item) const "
.br
.ti -1c
.RI "int \fBoptions\fP () const "
.br
.ti -1c
.RI "\fBQwtPlotPrintFilter\fP ()"
.br
.ti -1c
.RI "virtual void \fBreset\fP (\fBQwtPlotItem\fP *) const "
.br
.ti -1c
.RI "virtual void \fBreset\fP (\fBQwtPlot\fP *) const "
.br
.ti -1c
.RI "void \fBsetOptions\fP (int options)"
.br
.ti -1c
.RI "virtual \fB~QwtPlotPrintFilter\fP ()"
.br
.in -1c
.SH "Detailed Description"
.PP
A base class for plot print filters.
A print filter can be used to customize \fBQwtPlot::print()\fP.
.PP
\fBDeprecated\fP
.RS 4
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.
.RE
.PP
.SH "Member Enumeration Documentation"
.PP
.SS "enum \fBQwtPlotPrintFilter::Item\fP"
.PP
Print items.
.SS "enum \fBQwtPlotPrintFilter::Options\fP"
.PP
Print options.
.SH "Constructor & Destructor Documentation"
.PP
.SS "QwtPlotPrintFilter::QwtPlotPrintFilter ()\fC [explicit]\fP"Sets filter options to PrintAll
.SS "QwtPlotPrintFilter::~QwtPlotPrintFilter ()\fC [virtual]\fP"
.PP
Destructor.
.SH "Member Function Documentation"
.PP
.SS "void QwtPlotPrintFilter::apply (\fBQwtPlot\fP *plot) const\fC [virtual]\fP"Change color and fonts of a plot
.PP
\fBSee also:\fP
.RS 4
\fBapply()\fP
.RE
.PP
.SS "QColor QwtPlotPrintFilter::color (const QColor &c, \fBItem\fPitem) const\fC [virtual]\fP"
.PP
Modifies a color for printing. \fBParameters:\fP
.RS 4
\fIc\fP Color to be modified
.br
\fIitem\fP Type of item where the color belongs
.RE
.PP
\fBReturns:\fP
.RS 4
Modified color.
.RE
.PP
In case of !(\fBQwtPlotPrintFilter::options()\fP & PrintBackground) MajorGrid is modified to Qt::darkGray, MinorGrid to Qt::gray. All other colors are returned unmodified.
.SS "QFont QwtPlotPrintFilter::font (const QFont &f, \fBItem\fPitem) const\fC [virtual]\fP"
.PP
Modifies a font for printing. \fBParameters:\fP
.RS 4
\fIf\fP Font to be modified
.br
\fIitem\fP Type of item where the font belongs
.RE
.PP
All fonts are returned unmodified
.SS "int QwtPlotPrintFilter::options () const"
.PP
Get plot print options. \fBSee also:\fP
.RS 4
\fBsetOptions()\fP
.RE
.PP
.SS "void QwtPlotPrintFilter::reset (\fBQwtPlot\fP *plot) const\fC [virtual]\fP"Reset color and fonts of a plot
.PP
\fBSee also:\fP
.RS 4
\fBapply()\fP
.RE
.PP
.SS "void QwtPlotPrintFilter::setOptions (intoptions)"
.PP
Set plot print options. \fBParameters:\fP
.RS 4
\fIoptions\fP Or'd \fBQwtPlotPrintFilter::Options\fP values
.RE
.PP
\fBSee also:\fP
.RS 4
\fBoptions()\fP
.RE
.PP
.SH "Author"
.PP
Generated automatically by Doxygen for Qwt User's Guide from the source code.
|