QwtPolarCanvas(3)
π 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 ofPaintAttributevalues. 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 attributeonβ 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
- alpine 3.24: qwt-doc 6.3.0-r0 Β· custom
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms