QwtPolarCanvas(3)

πŸ“¦
version 6.3.0 Β· 2 versions
, in alpine 3.24

πŸ’… QwtPolarCanvas(3) β€” Library Functions Manual ✨

Okay so bestie, welcome to the group chat for QwtPolarCanvas β€” the absolute main character of polar plotting widgets. This page is giving full manual energy but make it cute. Let's get into it. πŸŽ€


✨ NAME ✨

QwtPolarCanvas β€” the canvas of a QwtPolarPlot. That's it. That's the vibe. It's the widget where all your polar dreams get painted. 🌈


πŸ¦‹ SYNOPSIS πŸ¦‹

#include <qwt_polar_canvas.h>

Inherits QFrame.

Lowkey inherits from QFrame so it's already coming from good stock. πŸ’…

Public Types

  • enum PaintAttribute { BackingStore = 0x01 } β€” Paint attributes. The little switches that control how painting happens. 🎨
  • typedef QFlags< PaintAttribute > PaintAttributes β€” An ORed combo of PaintAttribute values. Like a little bitmask buffet. πŸ“

Public Member Functions

  • QwtPolarCanvas(QwtPolarPlot *) β€” Constructor. It's giving new canvas energy. ✨
  • virtual ~QwtPolarCanvas() β€” Destructor. Saying bye with style. 🫢
  • QwtPolarPlot * plot() β€” Gets the parent plot. The main squeeze. πŸ‘‘
  • const QwtPolarPlot * plot() const β€” The const version. Same plot, read-only. No touching. πŸ™ˆ
  • void setPaintAttribute(PaintAttribute, bool on = true) β€” Changing the paint attributes. Flipping switches like a DJ. πŸŽ›οΈ
  • bool testPaintAttribute(PaintAttribute) const β€” Checks if a paint attribute is enabled. The vibe check. βœ…
  • const QPixmap * backingStore() const β€” Returns the backing store, might be null. It's giving maybe there, maybe not. 😭
  • void invalidateBackingStore() β€” Invalidates the internal backing store. Basically saying "forget what you thought you knew". πŸ’€
  • QwtPointPolar invTransform(const QPoint &) const β€” Translates a point from widget into plot coordinates. Glow-up for coordinates. ✨
  • QPoint transform(const QwtPointPolar &) const β€” Translates a point from plot into widget coordinates. The reverse glow-up. πŸ”

Protected Member Functions

  • virtual void paintEvent(QPaintEvent *) override β€” Paint event. The actual painting moment. πŸ–ŒοΈ
  • virtual void resizeEvent(QResizeEvent *) override β€” Resize event. When things change shape. πŸ¦‹

🌸 Detailed Description 🌸

So like, QwtPolarCanvas is the canvas of a QwtPolarPlot. It's the widget where all polar items are painted to. Periodt. πŸ’…

Note: In opposite to QwtPlot all axes are painted on the canvas. So yeah, axes are on the canvas. Not off to the side. Iconic behavior. πŸ‘‘

See also: QwtPolarPlot

Definition: line 27 of file qwt_polar_canvas.h.

πŸŽ€ Member Typedef Documentation πŸŽ€

typedef QFlags<PaintAttribute > QwtPolarCanvas::PaintAttributes

An ORed combination of PaintAttribute values. Like mixing and matching your fave accessories. 🎨

Definition: line 50 of file qwt_polar_canvas.h.

πŸ’– Member Enumeration Documentation πŸ’–

enum QwtPolarCanvas::PaintAttribute

Paint attributes. The default setting enables BackingStore. So it's already on unless you mess with it. Slay. πŸ’…

See also: setPaintAttribute(), testPaintAttribute(), backingStore()

Enumerator

  • BackingStore β€” Paint double buffered and reuse the content of the pixmap buffer for some spontaneous repaints that happen when a plot gets unhidden, deiconified or changes the focus. It's giving reuse, reduce, recycle but for pixels. πŸ“
Definition: line 40 of file qwt_polar_canvas.h.

🌈 Constructor & Destructor Documentation 🌈

QwtPolarCanvas::QwtPolarCanvas(QwtPolarPlot * plot) [explicit]

Constructor. It's giving new canvas energy. ✨

Definition: line 77 of file qwt_polar_canvas.cpp.

QwtPolarCanvas::~QwtPolarCanvas() [virtual]

Destructor. Saying bye with style. 🫢

Definition: line 91 of file qwt_polar_canvas.cpp.

🌟 Member Function Documentation 🌟

const QPixmap * QwtPolarCanvas::backingStore() const

Returns: Backing store, might be null. It's giving maybe there, maybe not. 😭

Definition: line 170 of file qwt_polar_canvas.cpp.

void QwtPolarCanvas::invalidateBackingStore()

Invalidate the internal backing store. Basically saying "forget what you thought you knew". πŸ’€

Definition: line 176 of file qwt_polar_canvas.cpp.

QwtPointPolar QwtPolarCanvas::invTransform(const QPoint & pos) const

Translate a point from widget into plot coordinates. Glow-up for coordinates. ✨

Parameters:

  • pos β€” Point in widget coordinates of the plot canvas

Returns: Point in plot coordinates

See also: transform()

Definition: line 267 of file qwt_polar_canvas.cpp.

void QwtPolarCanvas::paintEvent(QPaintEvent * event) [override], [protected], [virtual]

Paint event. The actual painting moment. πŸ–ŒοΈ

Parameters:

  • event β€” Paint event
Definition: line 186 of file qwt_polar_canvas.cpp.

QwtPolarPlot * QwtPolarCanvas::plot()

Returns: Parent plot widget. The main squeeze. πŸ‘‘

Definition: line 97 of file qwt_polar_canvas.cpp.

const QwtPolarPlot * QwtPolarCanvas::plot() const

Returns: Parent plot widget. Same plot, read-only. No touching. πŸ™ˆ

Definition: line 103 of file qwt_polar_canvas.cpp.

void QwtPolarCanvas::resizeEvent(QResizeEvent * event) [override], [protected], [virtual]

Resize event. When things change shape. πŸ¦‹

Parameters:

  • event β€” Resize event
Definition: line 251 of file qwt_polar_canvas.cpp.

void QwtPolarCanvas::setPaintAttribute(PaintAttribute attribute, bool on = true)

Changing the paint attributes. Flipping switches like a DJ. πŸŽ›οΈ

Parameters:

  • attribute β€” Paint attribute
  • on β€” On/Off

The default setting enables BackingStore. So yeah, it's already on. πŸ’…

See also: testPaintAttribute(), paintCache()

Definition: line 118 of file qwt_polar_canvas.cpp.

bool QwtPolarCanvas::testPaintAttribute(PaintAttribute attribute) const

Test whether a paint attribute is enabled. The vibe check. βœ…

Parameters:

  • attribute β€” Paint attribute

Returns: true if the attribute is enabled

See also: setPaintAttribute()

Definition: line 164 of file qwt_polar_canvas.cpp.

QPoint QwtPolarCanvas::transform(const QwtPointPolar & polarPos) const

Translate a point from plot into widget coordinates. The reverse glow-up. πŸ”

Parameters:

  • polarPos β€” Point in plot coordinates

Returns: Point in widget coordinates

See also: transform()

Definition: line 310 of file qwt_polar_canvas.cpp.

πŸ‘‘ Author πŸ‘‘

Generated automatically by Doxygen for Qwt User's Guide from the source code. So it's not a human author, it's a robot. Still iconic though. πŸ€–βœ¨


πŸ’– Okay bestie, that's the whole manual. Source/version: Qwt User's Guide, page: QwtPolarCanvas(3). Stay slay, and may your backing store always be valid. πŸ’…πŸŽ€

πŸ“¦ where this page comes from