QwtPlotCanvas(3)
π QwtPlotCanvas(3) π
okay bestie, welcome to the QwtPlotCanvas page from the Qwt User's Guide β yes it's a section 3 manual page, and yes it's lowkey iconic. grab a boba, we're doing this π§β¨
πΈ NAME πΈ
QwtPlotCanvas β that's it, that's the name. it's a class, she's mysterious, she's the canvas of a QwtPlot.
β¨ SYNOPSIS β¨
#include <qwt_plot_canvas.h>
π Public Types
enum FocusIndicator { NoFocusIndicator, CanvasFocusIndicator,
ItemFocusIndicator }
enum PaintAttribute { PaintCached = 1, PaintPacked = 2 }
π¦ Public Member Functions
QwtPlotCanvas (QwtPlot *)
virtual ~QwtPlotCanvas ()
FocusIndicator focusIndicator () const
void invalidatePaintCache ()
QPixmap * paintCache ()
const QPixmap * paintCache () const
QwtPlot * plot ()
const QwtPlot * plot () const
void replot ()
void setFocusIndicator (FocusIndicator)
void setPaintAttribute (PaintAttribute, bool on=true)
bool testPaintAttribute (PaintAttribute) const
π Protected Member Functions
void drawCanvas (QPainter *painter=NULL)
virtual void drawContents (QPainter *)
virtual void drawFocusIndicator (QPainter *)
virtual void hideEvent (QHideEvent *)
virtual void paintEvent (QPaintEvent *)
π Detailed Description π
Canvas of a QwtPlot. she IS the moment, fr fr. π
See also:
QwtPlot
π Member Enumeration Documentation π
enum QwtPlotCanvas::FocusIndicator
Focus indicator. the way this enum has exactly three moods:
NoFocusIndicatorβ don't paint a focus indicator. simply not participating. πCanvasFocusIndicatorβ the focus is related to the complete canvas. paint the focus indicator usingpaintFocus()ItemFocusIndicatorβ the focus is related to an item (curve, point, ...) on the canvas. it is up to the application to display a focus indication using f.e. highlighting.
See also:
setFocusIndicator(),focusIndicator(),paintFocus()
enum QwtPlotCanvas::PaintAttribute
Paint attributes. two of them, both bangers:
PaintCachedβ 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. disabling the cache will improve the performance for incremental paints (usingQwtPlotCurve::draw). no cap, turning the cache off genuinely helps incremental paints. β‘PaintPackedβ suppress system background repaints and paint it together with the canvas contents. painting packed might avoid flickering for expensive repaints, when there is a notable gap between painting the background and the plot contents.
The default setting enables PaintCached and PaintPacked. π«Ά
See also:
setPaintAttribute(),testPaintAttribute(),paintCache()
π Member Function Documentation π
void QwtPlotCanvas::drawCanvas (QPainter *painter = NULL) [protected]
Draw the the canvas. (yes, "the the", we're keeping it exactly as written, she's got a lil typo and we love her anyway π)
Paints all plot items to the contentsRect(), using QwtPlot::drawCanvas and updates the paint cache. she does the work AND updates the receipts. multitasking queen.
Parameters:
- painter β Painter
See also:
QwtPlot::drawCanvas(),setPaintAttributes(),testPaintAttributes()
void QwtPlotCanvas::drawContents (QPainter *painter) [protected], [virtual]
Redraw the canvas, and focus rect.
Parameters:
- painter β Painter
void QwtPlotCanvas::drawFocusIndicator (QPainter *painter) [protected], [virtual]
Draw the focus indication.
Parameters:
- painter β Painter
QwtPlotCanvas::FocusIndicator QwtPlotCanvas::focusIndicator () const
Returns:
- Focus indicator
See also:
FocusIndicator,setFocusIndicator()
void QwtPlotCanvas::hideEvent (QHideEvent *event) [protected], [virtual]
Hide event.
Parameters:
- event β Hide event
void QwtPlotCanvas::paintEvent (QPaintEvent *event) [protected], [virtual]
Paint event.
Parameters:
- event β Paint event
void QwtPlotCanvas::replot ()
Invalidate the paint cache and repaint the canvas. out with the old pixels, in with the new. β¨
See also:
invalidatePaintCache()
void QwtPlotCanvas::setFocusIndicator (FocusIndicatorfocusIndicator)
Set the focus indicator.
See also:
FocusIndicator,focusIndicator()
void QwtPlotCanvas::setPaintAttribute (PaintAttributeattribute, boolon = true)
Changing the paint attributes.
Parameters:
- attribute β Paint attribute
- on β On/Off
The default setting enables PaintCached and PaintPacked.
See also:
testPaintAttribute(),drawCanvas(),drawContents(),paintCache()
bool QwtPlotCanvas::testPaintAttribute (PaintAttributeattribute) const
Test wether a paint attribute is enabled. (again, "wether", leaving it exactly as-is, periodt π)
Parameters:
- attribute β Paint attribute
Returns:
trueif the attribute is enabled
See also:
setPaintAttribute()
π Author π
Generated automatically by Doxygen for Qwt User's Guide from the source code. so technically the author is a robot and honestly? she ate. π€π
aaand that's the whole page bestie, you made it to the end, so proud of you π₯Ήβ¨
this was Version 5.2.3, dated Tue Nov 20 2012 β a vintage queen serving looks since 2012. mwah, go forth and paint your canvas. π π¦πΈ
π¦ where this page comes from
- epel 9: qwt5-qt5-devel 5.2.3a-12.20210522gita2b11e3.el9 Β· LGPLv2+ with exceptions
- fedora 43: qwt5-qt5-devel 5.2.3a-22.20210522gita2b11e3.fc43 Β· LGPL-2.1-or-later WITH Qwt-exception-1.0
- fedora 43: qwt5-qt5-devel 5.2.3a-22.20210522gita2b11e3.fc43 Β· LGPL-2.1-or-later WITH Qwt-exception-1.0
- fedora 44: qwt5-qt5-devel 5.2.3a-23.20210522gita2b11e3.fc44 Β· LGPL-2.1-or-later WITH Qwt-exception-1.0
- fedora 44: qwt5-qt5-devel 5.2.3a-23.20210522gita2b11e3.fc44 Β· LGPL-2.1-or-later WITH Qwt-exception-1.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms