QwtPlotPrintFilter(3)

πŸ“¦
version 5.2.3_qt5+git20181129.2819734 Β· 2 versions
, in opensuse-leap 16.0

πŸ’– 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 that PrintAll is defined as the bitwise-NOT of PrintFrameWithScales. 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 of QwtPlot allows/recommends writing individual QwtPlotItems, that are not known to QwtPlotPrintFilter. so this whole concept is outdated, and QwtPlotPrintFilter will 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 modified
  • item β€” 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 modified
  • item β€” 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'd QwtPlotPrintFilter::Options values

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 πŸ’–