QwtPlotPrintFilter(3)
π QwtPlotPrintFilter π
okay bestie, welcome to the Qwt User's Guide β¨ this one's a lil vintage, a lil deprecated, but we're gonna stan her anyway π
π NAME
QwtPlotPrintFilter β and that's literally it. the original page leaves the little dash-description blank, so no cap, the name is the whole vibe here π
πΈ SYNOPSIS πΈ
#include <qwt_plot_printfilter.h>
β¨ Public Types β¨
the Item enum, i.e. all the lil things a filter can care about:
enum Item { Title, Legend, Curve, CurveSymbol, Marker, MarkerSymbol,
MajorGrid, MinorGrid, CanvasBackground, AxisScale, AxisTitle,
WidgetBackground }
and the Options enum, the bitfield of print toggles π«Ά
enum Options { PrintMargin = 1, PrintTitle = 2, PrintLegend = 4,
PrintGrid = 8, PrintBackground = 16, PrintFrameWithScales = 32,
PrintAll = ~PrintFrameWithScales }
lowkey iconic thatPrintAllis defined as the bitwise-NOT ofPrintFrameWithScales. she's clever like that π
π¦ Public Member Functions π¦
here's the whole roster, bestie, every single one:
QwtPlotPrintFilter ()
virtual ~QwtPlotPrintFilter ()
virtual void apply (QwtPlot *) const
virtual void apply (QwtPlotItem *) const
virtual QColor color (const QColor &, Item item) const
virtual QFont font (const QFont &, Item item) const
int options () const
virtual void reset (QwtPlot *) const
virtual void reset (QwtPlotItem *) const
void setOptions (int options)
π Detailed Description π
so what is she? a base class for plot print filters β¨
a print filter can be used to customize QwtPlot::print(). that's the whole job. that's the assignment. periodt π
Deprecated π β in Qwt 5.0 the design ofQwtPlotallows/recommends writing individualQwtPlotItems, that are not known toQwtPlotPrintFilter. so this whole concept is outdated, andQwtPlotPrintFilterwill be removed/replaced in Qwt 6.x. she's on her way out, bestie, we're just here to appreciate her while she lasts π₯
π§ Constructor & Destructor Documentation π§
QwtPlotPrintFilter::QwtPlotPrintFilter () [explicit]
sets filter options to PrintAll. that's it, that's the constructor, she comes out the gate printing EVERYTHING π
β Member Function Documentation β
void QwtPlotPrintFilter::apply (QwtPlot *plot) const [virtual]
change color and fonts of a plot π«
See also: apply()
QColor QwtPlotPrintFilter::color (const QColor &c, Itemitem) const [virtual]
modifies a color for printing π¨
Parameters:
cβ color to be modifieditemβ type of item where the color belongs
Returns: the modified color.
and here's the actual tea β: in case of !(QwtPlotPrintFilter::options() & PrintBackground), MajorGrid is modified to Qt::darkGray, and MinorGrid to Qt::gray. all other colors are returned unmodified. no cap, that's the whole rule π«‘
QFont QwtPlotPrintFilter::font (const QFont &f, Itemitem) const [virtual]
modifies a font for printing βοΈ
Parameters:
fβ font to be modifieditemβ type of item where the font belongs
all fonts are returned unmodified β yeah, she takes the font and hands it right back, zero notes π
int QwtPlotPrintFilter::options () const
get plot print options π
See also: setOptions()
void QwtPlotPrintFilter::reset (QwtPlot *plot) const [virtual]
reset color and fonts of a plot π
See also: apply()
void QwtPlotPrintFilter::setOptions (intoptions)
set plot print options βοΈ
Parameters:
optionsβ or'dQwtPlotPrintFilter::Optionsvalues
See also: options()
π Author π
generated automatically by Doxygen for Qwt User's Guide from the source code. so technically Doxygen wrote this, not a human, which is very much giving "the compiler did my homework" energy π
okay that's the whole page bestie, you ate that ππ and just so we're keeping receipts: this was Version 5.2.3, dated Tue Nov 20 2012 β a lil vintage moment, fr fr πβ¨π¦ mwah, go customize those prints, ily π
π¦ where this page comes from
- opensuse-leap 16.0: qwt-devel 5.2.3_qt5+git20181129.2819734-bp160.1.13 Β· SUSE-QWT-1.0
- opensuse-leap 16.0: qwt-devel 5.2.3_qt5+git20181129.2819734-bp160.1.13 Β· SUSE-QWT-1.0
- opensuse-leap 16.0: qwt-devel 5.2.3_qt5+git20181129.2819734-bp160.1.13 Β· SUSE-QWT-1.0
- opensuse-leap 16.0: qwt-devel 5.2.3_qt5+git20181129.2819734-bp160.1.13 Β· SUSE-QWT-1.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms